pystardust / ani-cli

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

VLC tries to load all files from directory if $video_url is null #334

Closed galloway closed 2 years ago

galloway commented 2 years ago

When trying to play an episode through ani-cli and the $video_url is empty, the command that launches the player loads all files in the working directory:

nohup vlc --http-referrer=https://sbplay2.com > /dev/null 2>&1 &

Please note that running the above command directly from the terminal does not seem to have the same effect on my system.

EDIT:
nohup vlc --http-referrer=https://sbplay2.com "" > /dev/null 2>&1 &
instead recreates the issue.

galloway commented 2 years ago

I've created a simple PR #335 to check for this and error out instead.

galloway commented 2 years ago

I just realized this is actually a duplicate of #323 .