Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] youtube-dl and the conf file.
Date: Tue, 27 Oct 2020 23:48:34
Message-Id: 6565de47-dab0-523f-ec00-10cdd4f8736e@gmail.com
In Reply to: Re: [gentoo-user] youtube-dl and the conf file. by Arve Barsnes
1 Arve Barsnes wrote:
2 > On Tue, 27 Oct 2020 at 21:58, Dale <rdalek1967@×××××.com> wrote:
3 >> I'm using the normal youtube-dl <link to video> command. No options or
4 >> anything. This is what I have in the conf file.
5 >>
6 >>
7 >> --format
8 >> bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best
9 >>
10 >> --merge-output-format mp4
11 >>
12 >>
13 >> Those options worked for a long time so I guess something changed with
14 >> youtube-dl. I don't get why it says the options are a URL either. When
15 >> I google, I can't find where anyone is getting this error or using
16 >> different options either, at least not to accomplish the same goal. I
17 > I took a quick look at the commit history, and it seems the
18 > documentation for the format options haven't changed in at least a
19 > year, so it's hard to say if it is actually youtube-dl being the
20 > culprit here.
21 >
22 > Might be a quoting problem. Have you changed or updated anything
23 > regarding your terminal emulator lately?
24 >
25 > Maybe run your command with the verbose flag (-v) and see if it tells
26 > you the full command it is trying to run. Notice in the docs the whole
27 > format string is quoted with single quotes.
28 >
29 > Regards,
30 > Arve
31 >
32 >
33
34
35 Ran with -v but don't see any clues there.  Basically, it's the same
36 error twice. 
37
38
39 ERROR: 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a
40 valid URL. Set --default-search "ytsearch" (or run  youtube-dl
41 "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
42 search YouTube
43 Traceback (most recent call last):
44   File "/usr/lib/python3.7/site-packages/youtube_dl/YoutubeDL.py", line
45 797, in extract_info
46     ie_result = ie.extract(url)
47   File
48 "/usr/lib/python3.7/site-packages/youtube_dl/extractor/common.py", line
49 530, in extract
50     ie_result = self._real_extract(url)
51   File
52 "/usr/lib/python3.7/site-packages/youtube_dl/extractor/generic.py", line
53 2277, in _real_extract
54     % (url, url), expected=True)
55 youtube_dl.utils.ExtractorError:
56 'ytdl-format=bestvideo[height<=?1280]+bestaudio/best' is not a valid
57 URL. Set --default-search "ytsearch" (or run  youtube-dl
58 "ytsearch:ytdl-format=bestvideo[height<=?1280]+bestaudio/best" ) to
59 search YouTube
60
61
62 This is what the conf file looks like now.  I took out the format
63 option.  Add it back later when this current issue is settled. 
64
65
66 --format
67 'bestvideo[ext=webm][width<=?1280]+bestaudio/bestvideo[ext=mp4][width<=?1280]+bestaudio/best'
68
69
70 I use KDE so it could be KDE updated something but if so, I'm not aware
71 of it.  I use Konsole to run the commands.  Nothing else complains but
72 that may not mean much either. 
73
74 I'm going to add single quotes and see if anything changes, as shown
75 above.  Worst it can do is puke on my keyboard.  lol  Single quotes
76 didn't change anything either.  Same output.
77
78 I wonder if the changes in python could be the issue?  Maybe it went
79 from python 2.7 to a newer version and changed something??  Just for
80 giggles. 
81
82
83 [ebuild   R   *] net-misc/youtube-dl-99999999::gentoo  USE="-test"
84 PYTHON_TARGETS="python3_7 -python3_6 -python3_8"
85
86
87 And for a few more giggles.
88
89
90 root@fireball / # genlop -t youtube-dl
91  * net-misc/youtube-dl
92
93      Tue May 12 13:36:32 2020 >>> net-misc/youtube-dl-99999999
94        merge time: 1 minute and 6 seconds.
95
96      Wed May 13 21:24:43 2020 >>> net-misc/youtube-dl-99999999
97        merge time: 40 seconds.
98
99      Fri Jul  3 16:17:21 2020 >>> net-misc/youtube-dl-99999999
100        merge time: 1 minute and 2 seconds.
101
102      Fri Jul  3 16:26:21 2020 >>> net-misc/youtube-dl-99999999
103        merge time: 34 seconds.
104
105      Sun Jul 12 23:11:57 2020 >>> net-misc/youtube-dl-99999999
106        merge time: 6 minutes and 55 seconds.
107
108 root@fireball / #
109
110
111 Keep in mind, I been ignoring the error for a while.  I thought it was a
112 bug or something that would get stomped on eventually.  I wasn't aware
113 that youtube-dl was the one being stomped on by a big foot.  :-( 
114
115 Open to ideas. 
116
117 Dale
118
119 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] youtube-dl and the conf file. David Haller <gentoo@×××××××.de>