pystardust / ani-cli

A cli tool to browse and play anime
GNU General Public License v3.0
7.63k stars 533 forks source link

MPV player won't launch #1181

Closed ttx99 closed 1 year ago

ttx99 commented 1 year ago

Metadata (please complete the following information) Version: 4.5 OS: Windows 10 Shell: git bash Anime: record of ragnarok

Describe the bug MPV player wont launch Steps To Reproduce

  1. Run ani-cli record of ragnarok
  2. Choose 1
  3. Choose episode 1

Expected behavior mpv should launch 1 2

Additional context

port19x commented 1 year ago

Can't reproduce on linux. Could this be due to installation mistakes? Did you install ani-cli manually or via scoop?

ttx99 commented 1 year ago

from source

IgorFreik commented 1 year ago

same for me on macOS Monterey 12.5.1

Screen Shot 2023-07-30 at 20 09 04
port19x commented 1 year ago

same for me on macOS Monterey 12.5.1

Screen Shot 2023-07-30 at 20 09 04

That was actually due to a mktemp bug I introduced in 4.5.2, I merged the fix an hour ago.

port19x commented 1 year ago

from source

So this is a bit tough to troubleshoot. The problem basically boils down to mpv somehow not being present in your PATH. ani-cli does seem do work fine from the screenshots provided by you, it just fails to open the player. This indicates that our installation instructions for windows from source are incomplete.

If the scoop installation is an option for you, that one should work and is the preferred method.

ttx99 commented 1 year ago

1 2 3

still wont launch

port19x commented 1 year ago

This is very odd

justchokingaround commented 1 year ago

ani-cli uses the mpv.exe executable not mpv, check which mpv.exe and also it would be nice if we could get some logs please

sh -x $(which ani-cli) naruto -N -e 1 &>ani-cli.log

then send ani-cli.log here pls

ShanChar commented 1 year ago

A bit weird posting it here but, why do I keep getting this??

Checking dependencies...
No results found!
ttx99 commented 1 year ago

1

ani-cli.log

justchokingaround commented 1 year ago

@ttx99 can you try this out, and let me know if it fixes the bug?

sh <(curl -s https://raw.githubusercontent.com/pystardust/ani-cli/windows-bug/ani-cli) naruto -N -e 1
ttx99 commented 1 year ago

it just exits 1

justchokingaround commented 1 year ago

what does the log look like?

just add -x &>ani-cli.log to the previous command

ttx99 commented 1 year ago

1 ani-cli.log

justchokingaround commented 1 year ago

my bad, remove the -x at the end and put it directly after the sh at the start, sorry about that

ttx99 commented 1 year ago

it just exits 1

ani-cli.log

justchokingaround commented 1 year ago

does the following command work?

mpv '--force-media-title=Boruto Naruto Next Generations Episode 1' https://video.wixstatic.com/video/e441d9_ee77f7165b384f07a5552b7496e8cc3f/1080p/mp4/file.mp4
ttx99 commented 1 year ago

yes, 1

justchokingaround commented 1 year ago

and with mpv.exe ?

ttx99 commented 1 year ago

i dont know what you mean exactly but that command launches mpv 1

justchokingaround commented 1 year ago

i mean

mpv.exe '--force-media-title=Boruto Naruto Next Generations Episode 1' https://video.wixstatic.com/video/e441d9_ee77f7165b384f07a5552b7496e8cc3f/1080p/mp4/file.mp4
ttx99 commented 1 year ago

it doesnt work 1

port19x commented 1 year ago

A bit weird posting it here but, why do I keep getting this??

Checking dependencies...
No results found!

Update ani-cli. If it still doesn't work, open a separate issue

ttx99 commented 1 year ago

fixed thx ![Uploading 1.png…]()