Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

split.py not idemptotent #42

Open
ldang opened this issue Mar 21, 2024 · 0 comments
Open

split.py not idemptotent #42

ldang opened this issue Mar 21, 2024 · 0 comments

Comments

@ldang
Copy link
Collaborator

ldang commented Mar 21, 2024

One of the annoying things about trying to cut the videos incrementally is that I have to edit the resulting JSON file to remove videos and rooms I've already cut.

The upload.py script actually has some smarts and keeps track of my uploads using progress.json. So it won't upload talks I've already uploaded.

But the split.py seems to still try to download the room streams, even though they've already been processed. split.py makes a working directory for the room stream before it does its work. It should ideally skip over processing that room stream if the working directory already exists.

./split.py talks.json 
[youtube] Extracting URL: https://youtube.com/watch?v=PTSUj50N1Dw
[youtube] PTSUj50N1Dw: Downloading webpage
[youtube] PTSUj50N1Dw: Downloading ios player API JSON
[youtube] PTSUj50N1Dw: Downloading android player API JSON
ERROR: [youtube] PTSUj50N1Dw: Private video. Sign in if you've been granted access to this video
WARNING: Failed to download Room 105 Friday video PTSUj50N1Dw.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant