mirror of
https://github.com/RafaelSolVargas/Vulkan.git
synced 2025-10-29 16:57:23 +00:00
fix(Configs.py): set SPOTIFY_ID and SPOTIFY_SECRET to None if they are set to default values
This commit is contained in:
parent
6cfd188c3b
commit
aa5649bcdc
@ -31,7 +31,13 @@ class VConfigs(Singleton):
|
|||||||
|
|
||||||
self.SPOTIFY_ID = os.getenv('SPOTIFY_ID')
|
self.SPOTIFY_ID = os.getenv('SPOTIFY_ID')
|
||||||
self.SPOTIFY_SECRET = os.getenv('SPOTIFY_SECRET')
|
self.SPOTIFY_SECRET = os.getenv('SPOTIFY_SECRET')
|
||||||
|
|
||||||
|
if self.SPOTIFY_ID =="Your_Own_Spotify_ID":
|
||||||
|
self.SPOTIFY_ID = None
|
||||||
|
|
||||||
|
if self.SPOTIFY_SECRET =="Your_Own_Spotify_Secret":
|
||||||
|
self.SPOTIFY_SECRET = None
|
||||||
|
|
||||||
if self.SPOTIFY_ID is None or self.SPOTIFY_SECRET is None:
|
if self.SPOTIFY_ID is None or self.SPOTIFY_SECRET is None:
|
||||||
print('Spotify will not work')
|
print('Spotify will not work')
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user