Gentoo Archives: gentoo-user

From: Skippy <linuxgn2@××××××××××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] youtube-dl has been very slow
Date: Mon, 22 Nov 2021 18:05:00
Message-Id: c57e3bfd-0d34-76d6-6b14-c36ec734bfbb@204EastSouth.com
In Reply to: Re: [gentoo-user] youtube-dl has been very slow by Ionen Wolkens
1 On 11/15/21 12:02, Ionen Wolkens wrote:
2 > On Mon, Nov 15, 2021 at 11:42:28AM -0700, Skippy wrote:
3 >> On 11/15/21 09:14, tastytea wrote:
4 >>
5 >> snip
6 >>
7 >>>>
8 >>>> When in gPodder i enable use of Youtube-dl I get the message
9 >>>>
10 >>>> Extension cannot be activated.
11 >>>> Python module not found: youtube_dl
12 >>>
13 >>> That looks like it does not use the program, but the python module
14 >>> directly. You could try if symlinking
15 >>> /usr/lib/python3.9/site-packages/yt_dlp to
16 >>> /usr/lib/python3.9/site-packages/youtube_dl helps. Replace python3.9
17 >>> with your version of course.
18 >>> If that works, please file a bug on bugs.gentoo.org.
19 >>>
20 >>>> Anyone know how to make gPodder use yt-dlp?
21 >>>>
22 >>>> Do I simply need a link that sends youtube_dl to yt-dlp?
23 >>>
24 >>> yt-dlp already installs a wrapper script in /usr/bin/youtube-dl.
25 >>>
26 >>> Kind regards, tastytea
27 >>>
28 >>
29 >> I created the symlink as you instructed and it appears to be working.
30 >> When I enable use of youtube-dl in gPodder I get no error messages. I
31 >> just added a youtube feed and am downloading some videos.
32 >>
33 >> Thanks for the assistance.
34 >>
35 >
36 > Hm, slightly surprised it works. I've had a poorer experience with
37 > symlinking the python module (not fully compatible). I considered
38 > having the ebuild do it but ultimately skipped that.
39 >
40 > However, if you say it works I think I'll have a 2nd look a bit later.
41 > It's fairly harmless to add either way.
42 >
43 > (I picked up maintaining yt-dlp in ::gentoo recently)
44 >
45 >> In regards to filing a bug - I'm unclear exactly what the bug is. Is
46 >> the bug the fact that gPodder will not use yt-dlp in place of youtube-dl
47 >> without your work-around?
48 >>
49 >
50 > gpodder's upstream already has a bug report to use yt-dlp
51 >
52 > Mentioned bugs.gentoo.org, so imagine the idea was that gentoo's ebuild
53 > could add the symlink. I got the message anyhow so can skip the bug.
54 >
55
56 Update on what's happening with this - now it's not behaving nicely.
57 I'm not sure what has changed.
58
59
60 With use Youtube-dl enabled updating the feeds is very slow.
61
62 I get this error message under each non-YouTube feed in the main window:
63
64 ERROR: 'str' object has no attriubte 'suitable'
65
66 And I get this for each feed in my log file:
67
68 2021-11-22 07:58:58,085 [gpodder.gtkui.main] ERROR: Error: 'str' object
69 has no attribute 'suitable'
70 Traceback (most recent call last):
71 File "/usr/lib/python3.9/site-packages/gpodder/gtkui/main.py", line
72 2671, in update_feed_cache_proc
73 channel.update(max_episodes=self.config.max_episodes_per_feed)
74 File "/usr/lib/python3.9/site-packages/gpodder/model.py", line 1166,
75 in update
76 self._consume_updated_feed(result.feed, max_episodes)
77 File "/usr/lib/python3.9/site-packages/gpodder/model.py", line 1076,
78 in _consume_updated_feed
79 new_episodes, seen_guids = feed.get_new_episodes(self, existing_guids)
80 File "/usr/lib/python3.9/site-packages/gpodder/model.py", line 155,
81 in get_new_episodes
82 episode = channel.EpisodeClass.from_podcastparser_entry(entry, channel)
83 File "/usr/lib/python3.9/site-packages/gpodder/model.py", line 298,
84 in from_podcastparser_entry
85 link_has_media = registry.custom_downloader.resolve(None, None,
86 episode) is not None
87 File "/usr/lib/python3.9/site-packages/gpodder/registry.py", line 31,
88 in resolve
89 result = resolver(item, *args)
90 File "/usr/share/gpodder/extensions/youtube-dl.py", line 443, in
91 custom_downloader
92 if self.is_supported_url(episode.url):
93 File "/usr/share/gpodder/extensions/youtube-dl.py", line 432, in
94 is_supported_url
95 if ie.suitable(url) and ie.ie_key() not in self.ie_blacklist:
96 AttributeError: 'str' object has no attribute 'suitable'
97 2021-11-22 07:59:40,788 [urllib3.connectionpool] WARNING: Retrying
98 (Retry(total=2, connect=None, read=None, redirect=None, status=None))
99 after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in
100 violation of protocol (_ssl.c:1145)'))': /rss2.xml
101
102
103 All non YouTube files fail to download. For each file I get the error:
104 ERROR: 'str' object has no attriubte 'suitable'
105
106 When I disable using Youtube-dl the non-YouTube files download without
107 problem.
108
109 The work around is simply to turn off 'use Youtube-dl' to download podcasts.
110
111 I just wanted to get this information out to you.

Replies

Subject Author
Re: [gentoo-user] youtube-dl has been very slow Ionen Wolkens <ionen@g.o>