You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
with open("data/mlb-youtube-segmented.json", "r") as f:
data = json.load(f)
for key, entry in data.items(): # Modified line
yturl = entry["url"]
ytid = yturl.split("=")[-1]
if os.path.exists(os.path.join(save_dir, ytid + ".mkv")):
continue
cmd = "youtube-dl " + yturl + " -o " + os.path.join(save_dir, ytid + ".mkv")
os.system(cmd)
chage to this code
The text was updated successfully, but these errors were encountered:
with open("data/mlb-youtube-segmented.json", "r") as f:
data = json.load(f)
for key, entry in data.items(): # Modified line
yturl = entry["url"]
ytid = yturl.split("=")[-1]
The text was updated successfully, but these errors were encountered: