Debugging#
Run with --log-level debug to show all log messages, often too much information for
normal operation but useful when investigating a specific problem.
ytdl-sub builds on yt-dlp, which is in itself a complex tool. It performs an intricate and fragile task, web scraping, which in turn is subject to the whims of external services outside its control. Finally, because ytdl-sub is a lower-level tool, many users, if not most, will have problems getting their configuration working and it can be difficult to determine when the root cause is their configuration, just a limit imposed by the services, or, least likely, a bug in one of the tools involved.
To expedite resolution and conserve the limited resources of both yourself and volunteers, do as much investigation yourself as you can:
Start by assuming the issue is your configuration:
Review the guides to confirm your understanding. Increase output using the
--log-levelCLI option and read the output carefully for hints and clues. Use those clues to search the docs. Read the reference docs of the involvedytdl-subcomponents.Try to determine if the issue is happening in
yt-dlporytdl-sub:The user’s configuration tells
ytdl-subhow to runyt-dlp.yt-dlphandles all the web scraping and downloading.ytdl-subthen assembles the files and metadata produced byyt-dlpand places them in your library.If the issue is happening while scraping or downloading from the external service, then it’s happening in the running of
yt-dlp. Look for output showing failed downloads,403errors, or signs of throttles. That doesn’t mean it’s a bug inyt-dlp, it could be in how your configuration tellsytdl-subto runyt-dlpor limits imposed by the service that are constantly changing, but you may be able to find answers from otheryt-dlpusers running into similar issues.See the yt-dlp known issues and search their issues for clues and hints. Read the comments for more understanding, workarounds, and maybe even fixes. If you still don’t understand the cause after reading everything you can find there, try to find help in the yt-dlp Discord.
If the issue is happening in
ytdl-sub, reach out for help:Once you’ve done everything you can to get your configuration working and you’ve determined that the issue isn’t happening in
yt-dlp, look for answers inytdl-sub:Cut your configuration and subscriptions down to the minimum that reproduces the issue.
Run with the
--log-level debugCLI option and copy the full output.Search the ytdl-sub issues using clues and hints from the output.
Open a support post in Discord with those details and all other relevant details.
If someone from the Discord discussion directs you to, then open a new issue with those same details.