-
Notifications
You must be signed in to change notification settings - Fork 576
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
feat: m3u8 parsing for quality selection,auto-update base-url, optimizations #638
Conversation
feat:m3u8 parsing, auto-update base-url, optimizations
ani-cli
Outdated
@@ -98,8 +97,8 @@ download () { | |||
case $2 in | |||
*mp4*) | |||
aria2c --summary-interval=0 -x 16 -s 16 --referer="$1" "$2" --dir="$download_dir" -o "${3}-${4}.mp4" --download-result=hide ;; | |||
*) | |||
ffmpeg -loglevel error -stats -referer "$1" -i "$2" -c copy "$download_dir/${3}-${4}.mp4" ;; | |||
*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Whitespaces
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops..
Readme should also be updated according to the last stable version... |
Also as a general rule of thumb for maintainers, prefer doing development on pystardust/ani-cli on a seperate branch, rather than developing on a fork. |
Oky.. will take care of it.. |
Ok noted👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I only read trough the code this time, haven't tested anything.
get_video_quality_m3u8() { | ||
case $quality in | ||
worst|360) | ||
idx=2 ;; | ||
480) | ||
idx=3 ;; | ||
720) | ||
idx=4 ;; | ||
1080|best) | ||
idx=5 ;; | ||
*) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know there was an earlier commit by @CoolnsX that aimed to deduplicate, but it still seems like this is redundant, am I missing sth?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is just because we have people put in worst, 360, 480, 720, 1080, best
as the optarg to -q
.
Doesn't seem like there is an easy way to deduplicate it further, but maybe someone has an idea?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems unlikely
I also only read through the code this time |
good call to bump to 2.1.0 |
#630