panmona / switchtube-dl Goto Github PK
View Code? Open in Web Editor NEWSimple CLI for downloading videos from SwitchTube
License: MIT License
Simple CLI for downloading videos from SwitchTube
License: MIT License
Information
Describe the bug
The metadata download failed with the error that the duration_in_milliseconds
field couldn't be found.
This field is apparently not present when the video is not yet fully processed (which isn't documented). More specific details about the video can't be fetched when this occurs.
To Reproduce
Try to download a channel that contains a published video, that is not yet fully processed.
Expected behavior
The metadata download works but doesn't include this video.
Is your feature request related to a problem? Please describe.
Some channels do not consistently name their videos, this can result in incorrect ordering if one doesn't rename the videos. When it is renamed, the file will be not considered for --skip though.
Describe the solution you'd like
Files that are considered for skip should be based on the video id in the file name and not on an exact match.
A regex can be used for this. Something like: https://regex101.com/r/9owqbZ/5
Or even better: https://regex101.com/r/lmlBZZ/1 ( thanks @manrel )
Describe alternatives you've considered
None
Additional context
None
Information
Describe the bug
A specific video was downloaded with black video content, even though it displays normally on Switchtube.
This both happens with -c and -v.
To Reproduce
switchtube-dl -v "YZXIaohdhH" -t $SWITCHTUBE_TOKEN
(only reproducible with a token that has access to the channels of organization 86)
Expected behavior
The video is downloaded with the correct video content.
Screenshots
N/A
Additional context
N/A
Is your feature request related to a problem? Please describe.
Downloading just recently uploaded videos requires interactive mode.
Describe the solution you'd like
Videos can be filtered by their upload date using the options --date, --datebefore or --dateafter. They accept dates in two formats:
(now|today|-[1-9](day|week|month|year)(s)?)
(e.g.: -2weeks
, now
)These are additional filter options. If multiple conflicting ones are provided, follow the following prio:
Describe alternatives you've considered
Always using -a --skip
is also possible for downloading all recently uploaded lectures when executing it in a regular interval. This seems to work well enough for now, which makes this feature a low priority.
Is your feature request related to a problem? Please describe.
If the token is pasted as plain text into --token, it will appear in the bash_history.
Describe the solution you'd like
If -t / --token is not provided, the CLI should prompt for the token.
Describe alternatives you've considered
None
Additional context
https://spectreconsole.net/prompts/text#secrets
Dear mac users (@YamashitaRen @iamfabio)
My GitHub name and tap name changed.
To keep receiving updates (like the newest 1.0 release) for this software you need to execute the following steps:
brew uninstall switchtube-dl
brew untap panmau/panmau
brew install panmona/panmona/switchtube-dl
If there are any questions, or you have any problems with these steps, let me know.
I am sorry for any inconveniences caused, and wish you a great start into the new semester! ✨
Information
The program does not seem to work on Mac M1. I installed it with homebrew.
% switchtube-dl --help
zsh: killed switchtube-dl
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.