wolfswolke / aniworld_scraper

Aniworld.to mp4 scraper for animes.
MIT License
49 stars 16 forks source link

[ERROR] I get Python Exception while trying to download #51

Closed KemMuammer closed 1 month ago

KemMuammer commented 1 month ago

I get this when I try to download something. Is this normal can I somehow fix this?

Exception in thread Thread-1 (download_and_convert_hls_stream):
Traceback (most recent call last):
  File "C:\Users\kemmuammer\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner
    self.run()
  File "C:\Users\kemmuammer\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Users\kemmuammer\Downloads\aniworld_scraper-main\aniworld_scraper-main\src\logic\downloader.py", line 60, in download_and_convert_hls_stream
    subprocess.run(ffmpeg_cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
  File "C:\Users\kemmuammer\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 548, in run
    with Popen(*popenargs, **kwargs) as process:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\kemmuammer\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1026, in __init__
    self._execute_child(args, executable, preexec_fn, close_fds,
  File "C:\Users\kemmuammer\AppData\Local\Programs\Python\Python312\Lib\subprocess.py", line 1538, in _execute_child
    hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
wolfswolke commented 1 month ago

@KemMuammer subprocess.run(ffmpeg_cmd, check=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) Did you download FFMPEG and either installed it or placed the portable version in the folder?

KemMuammer commented 1 month ago

@wolfswolke image I did and added to the src folder. Should I rename it to only ffmpeg?

wolfswolke commented 1 month ago

no you need the exe or have it installed @KemMuammer image

KemMuammer commented 1 month ago

@wolfswolke Yeah that worked thanks and also I dont know why but the ffmpeg download I have does not come with the exe variant. I dont know why. But that is a different issue.