mirror of
https://github.com/Shabinder/SpotiFlyer.git
synced 2024-12-22 20:57:54 +01:00
Added Logging
This commit is contained in:
parent
02d137588f
commit
d8415b52ca
@ -52,6 +52,7 @@ class GaanaProvider(
|
||||
link
|
||||
)
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
null
|
||||
}
|
||||
}
|
||||
|
@ -99,6 +99,7 @@ class SpotifyProvider(
|
||||
link
|
||||
)
|
||||
}catch (e: Exception){
|
||||
e.printStackTrace()
|
||||
// Try Reinitialising Client // Handle 401 Token Expiry ,etc Exceptions
|
||||
authenticateSpotifyClient(true)
|
||||
// Retry Search
|
||||
@ -108,6 +109,7 @@ class SpotifyProvider(
|
||||
link
|
||||
)
|
||||
} catch (e:Exception){
|
||||
e.printStackTrace()
|
||||
null
|
||||
}
|
||||
}
|
||||
|
@ -38,6 +38,7 @@ class YoutubeMp3(
|
||||
else it
|
||||
}
|
||||
} catch (e: Exception) {
|
||||
e.printStackTrace()
|
||||
null
|
||||
}
|
||||
}
|
||||
|
@ -56,6 +56,7 @@ class YoutubeMusic constructor(
|
||||
).keys.firstOrNull()
|
||||
} catch (e:Exception) {
|
||||
// All Internet/Client Related Errors
|
||||
e.printStackTrace()
|
||||
null
|
||||
}
|
||||
}
|
||||
|
@ -34,6 +34,7 @@ suspend fun authenticateSpotify(): TokenData? {
|
||||
body = FormDataContent(Parameters.build { append("grant_type", "client_credentials") })
|
||||
} else null
|
||||
}catch (e:Exception) {
|
||||
e.printStackTrace()
|
||||
null
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user