Open YamatoRyou opened 3 weeks ago
I take advantage from this issue also for address the problem of the metadata setter not using cookies.
The mismatch with logs came from a wrong error handling in the metadata setter.
Thanks for pointing it out!
the config file as said: log_path: /home/your_user/yt-dlp-webui-workingdir
But when I actually config it, this is not a "workingdir" , it should be the real log file name.
Version running 2024.08.06
marcobaobao/yt-dlp-webui:latest
Describe the bug Trying to download some age-restricted videos with the Template Editor by passing in the specific parameter
--cookies /cookies/cookies-for-x.txt
, it failed. Log:level=ERROR msg="failed to retrieve metadata" id=******** err="ERROR: [twitter] *********: NSFW tweet requires authentication. Use --cookies, --cookies-from-browser, --username and --password, --netrc-cmd, or --netrc (twitter) to provide account credentials\n"
I thought my cookies were invalid after seeing this, but it took me a long time to find out that it was related to the title length of the target webpage. In other words, the error message in the log does not match the actual error message.
Verification method:
yt-dlp --cookies /cookies/cookies-for-x.txt -o "/downloads/%(title)s.%(ext)s" https://x.com/************/status/******************
[download] Destination: /downloads/**************.mp4 ERROR: Unable to download video: [Errno 36] Filename too long: '******************************'
To Reproduce n/a
Expected behavior n/a
Screenshots n/a
Additional context n/a