Change youtube secrets file path

This commit is contained in:
Maks Snegov 2024-10-14 22:38:13 -07:00
parent fd65bf91a5
commit 120700eec3
2 changed files with 2 additions and 4 deletions

4
.gitignore vendored
View File

@ -1,7 +1,5 @@
.idea/
__pycache__/
.python-version
client_secrets_file.json
token.json
*.json
playlists.csv
db.json

View File

@ -34,7 +34,7 @@ def _truncate_title(title: str, length: int = 30) -> str:
def get_yt_creds():
""" Get YouTube API credentials """
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"]
# The file token.json stores the user's access and refresh tokens, and is