Skip to content

Commit

Permalink
Disable googleapiclient discovery cache
Browse files Browse the repository at this point in the history
Greatly reduces extracted program size by not including unnecessary discovery cache files
  • Loading branch information
ThioJoe committed Jan 1, 2024
1 parent 85ef51d commit 91816f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Scripts/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def get_authenticated_service():
# Save the credentials for the next run
with open(TOKEN_FILE_NAME, 'w') as token:
token.write(creds.to_json())
YOUTUBE = build(API_SERVICE_NAME, API_VERSION, credentials=creds, discoveryServiceUrl=DISCOVERY_SERVICE_URL)
YOUTUBE = build(API_SERVICE_NAME, API_VERSION, credentials=creds, discoveryServiceUrl=DISCOVERY_SERVICE_URL, cache_discovery=False, cache=None)
return YOUTUBE


Expand Down

2 comments on commit 91816f3

@shudhanshu841428
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abhishek bkl

@shudhanshu841428
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abhishek bkl

Please sign in to comment.