niemands / StashPlugins

A collection of python plugins for stash
GNU Affero General Public License v3.0
62 stars 17 forks source link

[Plugin / Youtube-dl Downloader] TypeError: expected str, bytes or os.PathLike object, not bool #27

Open MrRandoMan opened 2 years ago

MrRandoMan commented 2 years ago

Hello. Not sure what's going on here.

Python 3.10.5 Stash v0.16.0

The plugin crashes when clicking [Download Video]. This is in the logs:


Plugin returned error: exit status 1
[Plugin / Youtube-dl Downloader] TypeError: expected str, bytes or os.PathLike object, not bool
[Plugin / Youtube-dl Downloader]     path = os.fspath(path)
[Plugin / Youtube-dl Downloader]   File "C:\Python\Python310\lib\ntpath.py", line 293, in expanduser
[Plugin / Youtube-dl Downloader]     return os.path.expandvars(compat_expanduser(s))
[Plugin / Youtube-dl Downloader]   File "C:\Python\Python310\lib\site-packages\youtube_dl\utils.py", line 2163, in expand_path
[Plugin / Youtube-dl Downloader]     opts_cookiefile = expand_path(opts_cookiefile)
[Plugin / Youtube-dl Downloader]   File "C:\Python\Python310\lib\site-packages\youtube_dl\YoutubeDL.py", line 2376, in _setup_opener
[Plugin / Youtube-dl Downloader]     self._setup_opener()
[Plugin / Youtube-dl Downloader]   File "C:\Python\Python310\lib\site-packages\youtube_dl\YoutubeDL.py", line 422, in __init__
[Plugin / Youtube-dl Downloader]     ydl = youtube_dl.YoutubeDL({
[Plugin / Youtube-dl Downloader]   File "C:\stash\plugins\py_plugins\yt-dl_downloader.py", line 166, in download
[Plugin / Youtube-dl Downloader]     download(url.strip(), downloaded)
[Plugin / Youtube-dl Downloader]   File "C:\stash\plugins\py_plugins\yt-dl_downloader.py", line 134, in read_urls_and_download
[Plugin / Youtube-dl Downloader]     read_urls_and_download(client)
[Plugin / Youtube-dl Downloader]   File "C:\stash\plugins\py_plugins\yt-dl_downloader.py", line 39, in run
[Plugin / Youtube-dl Downloader]     run(json_input, output)
[Plugin / Youtube-dl Downloader]   File "C:\stash\plugins\py_plugins\yt-dl_downloader.py", line 22, in main
[Plugin / Youtube-dl Downloader]     main()
[Plugin / Youtube-dl Downloader]   File "C:\stash\plugins\py_plugins\yt-dl_downloader.py", line 241, in <module>
[Plugin / Youtube-dl Downloader] Traceback (most recent call last):