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