alexta69 / metube

Self-hosted YouTube downloader (web UI for youtube-dl / yt-dlp)
GNU Affero General Public License v3.0
3.95k stars 259 forks source link

Output file extensions are munged, e.g: .jsonson .webebp #415

Closed prologic closed 3 months ago

prologic commented 3 months ago
          Small issue I've run into though, I'm getting really weird extensions on the files:
$ find Tennis\ TV/
Tennis TV/
Tennis TV/Season 2024
Tennis TV/Season 2024/s2024.e031501 - Men vs Bees | Extended Cut Of Alcaraz & Zverev's Unexpected Interruption! ?.info.jsonson
Tennis TV/Season 2024/s2024.e031501 - Men vs Bees | Extended Cut Of Alcaraz & Zverev's Unexpected Interruption! ?.mp4mp4
Tennis TV/Season 2024/s2024.e031501 - Men vs Bees | Extended Cut Of Alcaraz & Zverev's Unexpected Interruption! ?.webpebp

Where is this "double"? webpebp and .jsonson coming from?!

Originally posted by @prologic in https://github.com/alexta69/metube/issues/414#issuecomment-2016695587

prologic commented 3 months ago

Near as I can tell (from modifying the source and adding some additional logging...), I don't think this is a bug with metube, but possibly a bug with yt-dlp?

INFO:ytdl:adding https://youtu.be/AADUUz2xqos: quality='best' format='any' already=None folder=None custom_name_prefix=''
INFO:ytdl:downloading Men vs Bees | Extended Cut Of Alcaraz & Zverev's Unexpected Interruption! 🐝
| ======== Running on http://0.0.0.0:8081 ========
| (Press CTRL+C to quit)
| INFO:ytdl:downloading "https://www.youtube.com/watch?v=AADUUz2xqos"
 INFO:ytdl:ytdl_opt: "{'format': 'bv+ba/b', 'format_sort': ['codec:avc:m4a'], 'merge_output_format': 'mkv', 'writeinfojson': True, 'writethumbnail': True, 'download_archive': '/youtube/archive.txt', 'outtmpl': '%(uploader)s/Season %(upload_date>%Y)s/s%(upload_date>%Y)s.e%(upload_date>%m%d)s01 - %(title)s.%(ext)s', 'postprocessors': []}"
| INFO:ytdl:waiting for item to download

Everything being passed to yt-dlp looks okay to me. Hmmm

PikuZheng commented 3 months ago

Guess if it just an error of display

prologic commented 3 months ago

Guess if it just an error of display

Huh?

prologic commented 3 months ago

Huh, you're right. It's find that's munging the output 🙄