-
Notifications
You must be signed in to change notification settings - Fork 554
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
Support for more players and removal of ampersands #256
Conversation
…ases in open_episode function
…ases in open_episode function
Addresses #254 |
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.
change ORIGINAL_DIR="/Users/Tennyson/ani-cli"
this part back to 0
oh and also maybe we are going to support more video players but we are not going to match it by making a case for every video player, try removing |
I caught that on diff and the second commit fixed it. Will try the wildcard thing right now. |
Wildcard worked well. Making a new PR. |
@tennyson-mccalla since this pr now supports all video players that could play streams,you can change the title to something along those lines |
Ok, better name. Thanks for the help here @RaynardGerraldo. |
to make this even better, you can put this Line 386 in 4a94745
o) player_fn=$OPTARG ;; (follow previous indentations) in Line 387 in 4a94745
This way users can specify what media player they want using -o and not change it directly from the code, and make sure that this change works on your end |
@ura43 i noticed that you assigned me to this pr, I can implement the changes now but can I wait for @tennyson-mccalla to do it so that he can test it with IINA? |
Yes, you can |
Testing and reporting back later today. |
I assigned you to do the bulk of the reviewing on this PR @RaynardGerraldo Just curious, could we just have no case statement at all? |
I have been thinking about this ,but with that we're removing the -v(vlc option) ,good? |
The o option with user choice for player works well with mpv (default) and iina. I'm going to push this commit to my fork and add to the PR. Also corrected a few minor whitespace issues. |
I’ll also do a rewrite with the case statement removed just to test and see how it feels. |
But lets not loose hope, this is a highly desireable feature and we're moving fast |
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.
Please bump to latest changes, we may be able to merge this before the end of the month
Got busy once holiday break ended and couldn’t get back to this. Will try. |
Should be better now but I can't help but feel that this is still fragile as I don't know many other players will use the "referrer" format that mpv uses. But I can confirm that mpv, vlc, and iina work with this. Please test it out yourself. |
Tested incompatible with celluloid |
Could you maybe list some players that were tested successful? Because if it's just IINA, I propose we call it -i and actually make it specificly iina |
Right now all I'm testing are MPV, VLC, and IINA. All MPV derivatives should probably work with that default case. I don't have any other players to test with. This piece was definitely simpler before all of the referrer stuff altered things. I feel like coming up with an alphabet soup to support every player is going to be as bad as a huge case statement that does the same. |
When did it last have celluloid compatibility? |
Celluloid is a gtk mpv frontend. Our assumption that caused us supporting iina with a default case was that all, or even most, mpv frontends would share the flags |
I still welcome the change, but in this case I would find a |
Alright, I’ll make the change. If it gets merged in see if you can figure out what it might take to get celluloid working. I don’t have easy access to a Linux machine right now. |
Tested successfully, so at least it didn't break linux+mpv |
hello hello hello |
I'll check this out later today. Thanks for the work. |
This allowed iina to work for me