Arve Barsnes wrote:
> On Tue, 27 Oct 2020 at 21:58, Dale <rdalek1...@gmail.com> wrote:
>> I'm using the normal youtube-dl <link to video> command.  No options or
>> anything.  This is what I have in the conf file.
>>
>>
>> --format
>> bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best
>>
>> --merge-output-format mp4
>>
>>
>> Those options worked for a long time so I guess something changed with
>> youtube-dl.  I don't get why it says the options are a URL either.  When
>> I google, I can't find where anyone is getting this error or using
>> different options either, at least not to accomplish the same goal. I
> I took a quick look at the commit history, and it seems the
> documentation for the format options haven't changed in at least a
> year, so it's hard to say if it is actually youtube-dl being the
> culprit here.
>
> Might be a quoting problem. Have you changed or updated anything
> regarding your terminal emulator lately?
>
> Maybe run your command with the verbose flag (-v) and see if it tells
> you the full command it is trying to run. Notice in the docs the whole
> format string is quoted with single quotes.
>
> Regards,
> Arve
>
>


Ran with -v but don't see any clues there.  Basically, it's the same
error twice. 


ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
valid URL. Set --default-search "ytsearch" (or run  youtube-dl
"ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
search YouTube
Traceback (most recent call last):
  File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line
797, in extract_info
    ie_result = ie.extract(url)
  File
"/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line
530, in extract
    ie_result = self._real_extract(url)
  File
"/usr/lib/python3.7/site-packages/youtube_dl/extractor/generic.py", line
2277, in _real_extract
    % (url, url), expected=True)
youtube_dl.utils.ExtractorError:
'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a valid
URL. Set --default-search "ytsearch" (or run  youtube-dl
"ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
search YouTube


This is what the conf file looks like now.  I took out the format
option.  Add it back later when this current issue is settled. 


--format
'bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best'


I use KDE so it could be KDE updated something but if so, I'm not aware
of it.  I use Konsole to run the commands.  Nothing else complains but
that may not mean much either. 

I'm going to add single quotes and see if anything changes, as shown
above.  Worst it can do is puke on my keyboard.  lol  Single quotes
didn't change anything either.  Same output.

I wonder if the changes in python could be the issue?  Maybe it went
from python 2.7 to a newer version and changed something??  Just for
giggles. 


[ebuild   R   *] net-misc/youtube-dl-99999999::gentoo  USE="-test"
PYTHON_TARGETS="python3_7 -python3_6 -python3_8"


And for a few more giggles.


root@fireball / # genlop -t youtube-dl
 * net-misc/youtube-dl

     Tue May 12 13:36:32 2020 >>> net-misc/youtube-dl-99999999
       merge time: 1 minute and 6 seconds.

     Wed May 13 21:24:43 2020 >>> net-misc/youtube-dl-99999999
       merge time: 40 seconds.

     Fri Jul  3 16:17:21 2020 >>> net-misc/youtube-dl-99999999
       merge time: 1 minute and 2 seconds.

     Fri Jul  3 16:26:21 2020 >>> net-misc/youtube-dl-99999999
       merge time: 34 seconds.

     Sun Jul 12 23:11:57 2020 >>> net-misc/youtube-dl-99999999
       merge time: 6 minutes and 55 seconds.

root@fireball / #


Keep in mind, I been ignoring the error for a while.  I thought it was a
bug or something that would get stomped on eventually.  I wasn't aware
that youtube-dl was the one being stomped on by a big foot.  :-( 

Open to ideas. 

Dale

:-)  :-) 

Reply via email to