Change youtube secrets file path
This commit is contained in:
parent
fd65bf91a5
commit
120700eec3
4
.gitignore
vendored
4
.gitignore
vendored
@ -1,7 +1,5 @@
|
|||||||
.idea/
|
.idea/
|
||||||
__pycache__/
|
__pycache__/
|
||||||
.python-version
|
.python-version
|
||||||
client_secrets_file.json
|
*.json
|
||||||
token.json
|
|
||||||
playlists.csv
|
playlists.csv
|
||||||
db.json
|
|
||||||
|
|||||||
@ -34,7 +34,7 @@ def _truncate_title(title: str, length: int = 30) -> str:
|
|||||||
def get_yt_creds():
|
def get_yt_creds():
|
||||||
""" Get YouTube API credentials """
|
""" Get YouTube API credentials """
|
||||||
creds = None
|
creds = None
|
||||||
client_secrets_file = os.path.join(program_dir, "client_secrets_file.json")
|
client_secrets_file = os.path.join(program_dir, "secrets_python.json")
|
||||||
scopes = ["https://www.googleapis.com/auth/youtube.force-ssl"]
|
scopes = ["https://www.googleapis.com/auth/youtube.force-ssl"]
|
||||||
|
|
||||||
# The file token.json stores the user's access and refresh tokens, and is
|
# The file token.json stores the user's access and refresh tokens, and is
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user