Skip to content

Commit

Permalink
Change TCM url
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas committed Mar 7, 2024
1 parent a79b7ac commit a829190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions add_tcm.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def update_turner_classic_movies_extras(app_config: dict):
# Download playlist titles - delete this os.path.exists check to update playlist
if not os.path.exists("/tmp/tcm"):
os.mkdir("/tmp/tcm")
os.system("cd /tmp/tcm && youtube-dl --ignore-errors --write-info-json --skip-download 'https://www.youtube.com/@tcmintrosandwrap-ups1994/videos'")
os.system("cd /tmp/tcm && youtube-dl --ignore-errors --write-info-json --skip-download 'https://www.youtube.com/playlist?list=PLFMh2v5Jx1kEvXqvbPGAWz0BiUBU9xAgT'")

for fn in glob.glob("/tmp/tcm/*.json"):

Expand Down Expand Up @@ -77,7 +77,7 @@ def update_turner_classic_movies_extras(app_config: dict):
os.system("youtube-dl -i https://youtube.com/watch?v="+data["id"] + f" --output '{movie_filepath}/{extra_title}'")
else:
print("\tIntro already Exists")

if __name__ == "__main__":
app_config = load_app_config()
update_turner_classic_movies_extras(app_config)

0 comments on commit a829190

Please sign in to comment.