norkunas / youtube-dl-php

A PHP wrapper for youtube-dl or yt-dlp.
MIT License
450 stars 155 forks source link

Need `-U`, `--update` option to help with debugging when problems happen #217

Closed 9x3l6 closed 6 days ago

9x3l6 commented 9 months ago

Also this option -U, --update is required to be used for when submitting issues with youtube-dl/yt-dlp

Provide verbose output that clearly demonstrates the problem
- [] Run your yt-dlp command with -vU flag added (yt-dlp -vU <your command line>)
- [] If using API, add 'verbose': True to YoutubeDL params instead
- [] Copy the WHOLE output (starting with [debug] Command-line config) and insert it below

https://github.com/9x3l6/youtube-dl-php/pull/3

Thank you!

norkunas commented 9 months ago

I don't think that this tool should run in privileged mode to update itself, you should do that manually or with some cronjob

9x3l6 commented 8 months ago

When I run it it fail, actually and while doing so it prints the version info with a warning. I think it should be fine to add this option since youtube-dl itself has a protection mechanism.

yt-dlp -U

Available version: stable@2023.11.16, Current version: stable@2023.07.06
ERROR: You installed yt-dlp with a package manager or setup.py; Use that to update
norkunas commented 8 months ago

But what's the point, if you can do that directly? :)