ytdlrc
ytdlrc copied to clipboard
youtube-dl: You must provide at least one URL
This error seems to be from get_video_value()
. I double checked, the URL gets passed in correctly.
$video_value
in that function seems to return an empty string though.
I tried that same command on my shell and it worked. I even hardcoded a working example in get_video_value()
and I still get this error.
This is my output:
[YTDLRC] [Debug] Lock file doesn't exist. Attempting to create '/tmp/ytdlrc.lock'...
[YTDLRC] [Debug] [OK] Creating '/tmp/ytdlrc.lock' succeeded. Continuing...
[YTDLRC] [Debug] Checking required commands...
[YTDLRC] [Debug] [OK] Command found: youtube-dl
[YTDLRC] [Debug] [OK] Command found: rclone
[YTDLRC] [Debug] Checking if rclone meets minimum required version (1.43)...
[YTDLRC] [Debug] [OK] Installed version: 1.49.5
[YTDLRC] [Debug] Checking if rclone configuration file exists...
[YTDLRC] [Debug] [OK] Using rclone configuration: /home/shayan/.rclone.conf
[YTDLRC] [Debug] Checking rclone remote for any issues...
[YTDLRC] [Debug] [OK] Remote exists. No issues found.
[YTDLRC] Processing ytuser:kurzgesagt...
[YTDLRC] [Debug] Grabbing 'uploader' '1' from 'ytuser:kurzgesagt'...
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
[YTDLRC] [Debug] Failed to grab 'uploader' from 'ytuser:kurzgesagt'. Trying 2nd video instead...
[YTDLRC] [Debug] Grabbing 'uploader' '2' from 'ytuser:kurzgesagt'...
Usage: youtube-dl [OPTIONS] URL [URL...]
youtube-dl: error: You must provide at least one URL.
Type youtube-dl --help to see a list of all options.
[YTDLRC] [Debug] Failed to grab 'uploader' from 'ytuser:kurzgesagt' after 2 attempts. Skipping...
[YTDLRC] Process completed at 2019-11-07T15:58:39+01:00.
[YTDLRC] [Debug] Removing lock file...
[YTDLRC] [Debug] [OK] Lock file deleted.