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

feat: m3u8 parsing for quality selection,auto-update base-url, optimizations #638

Merged
merged 21 commits into from
Apr 17, 2022
Merged

feat: m3u8 parsing for quality selection,auto-update base-url, optimizations #638

merged 21 commits into from
Apr 17, 2022

Conversation

RaynardGerraldo
Copy link
Contributor

@port19x port19x linked an issue Apr 12, 2022 that may be closed by this pull request
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" ;;
*)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whitespaces

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops..

ani-cli Show resolved Hide resolved
ani-cli Outdated Show resolved Hide resolved
@Derisis13
Copy link
Collaborator

Readme should also be updated according to the last stable version...

README.md Outdated Show resolved Hide resolved
ani-cli Outdated Show resolved Hide resolved
ani-cli Show resolved Hide resolved
ani-cli Outdated Show resolved Hide resolved
@port19x
Copy link
Collaborator

port19x commented Apr 14, 2022

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.
Makes collaborating marginally easier

@CoolnsX
Copy link
Collaborator

CoolnsX commented Apr 14, 2022

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. Makes collaborating marginally easier

Oky.. will take care of it..

@RaynardGerraldo
Copy link
Contributor Author

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. Makes collaborating marginally easier

Ok noted👍

@RaynardGerraldo RaynardGerraldo requested a review from port19x April 16, 2022 11:12
Copy link
Collaborator

@Derisis13 Derisis13 left a 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.

ani-cli Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
Comment on lines +217 to +227
get_video_quality_m3u8() {
case $quality in
worst|360)
idx=2 ;;
480)
idx=3 ;;
720)
idx=4 ;;
1080|best)
idx=5 ;;
*)
Copy link
Collaborator

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?

Copy link
Collaborator

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems unlikely

@port19x
Copy link
Collaborator

port19x commented Apr 16, 2022

I also only read through the code this time

@RaynardGerraldo RaynardGerraldo requested a review from port19x April 16, 2022 23:36
@port19x
Copy link
Collaborator

port19x commented Apr 17, 2022

good call to bump to 2.1.0

@port19x port19x merged commit 6a61169 into pystardust:master Apr 17, 2022
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

Successfully merging this pull request may close these issues.

Stream Quality Choice option not working
6 participants