-
Notifications
You must be signed in to change notification settings - Fork 593
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
fix: support using non brew IINA as a player on macOS. #1386
Conversation
If IINA was built from source or downloaded directly from iina.io then ani-cli wont find it unless added manually to PATH, this works aroung it without much change to rest of script.
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.
This is way too wordy of a change.
Please decomment and make this smaller
Does |
Because if it does, your fix should comfortably fit into L325 |
which part is wordy? the description or the title?
yeah it works for both. which_iina() only works if iina wasnt in PATH. even though it doesnt make a difference because brew already installs in
it cant fit here because the rest of the script assumes the value to be "iina" in "player_function". do you want to remove the reliance on the variable |
The change is wordy, altough I see now that's a bad adjective to describe it. |
i hope i understood your point and answered adequately. |
I think I'll just need to experiment myself with the iina on my machine at home |
the spell checker didn’t like leaving the which unquoted command to prevent splitting “which” was irrelevant since I’m only looking for the exit status not the output.
Alright, I can confirm that currently, out-of-band iina doesn't work and that your patch fixes that |
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.
let me be more specific with the changes I want.
You know the section where player_function currently gets set to iina?
There you can call a modified version of you where_iina
function that should return the appropriate iina as a string.
dep_ch
can probably remain unchanged, or have a very small iina catch instead of the current thing
If you can do a little testing in my follow up PR, that would be great. |
srry i honestly didnt have the time to revisit this. you cant change integrating Line 113 and 116 would remove the need to reset the |
Good to know. Then I'll explicitly test playing the next episode |
I still included you as co-author, so you'll appear in the next release notes. |
thanks. new account and trying to contribute instead of just keeping them private. |
If IINA was built from source or downloaded directly from iina.io then ani-cli wont find it unless added manually to PATH, this works aroung it without much change to rest of script.