From b53ba83d22d6cfcf912d58d8adfe9b2a037a299f Mon Sep 17 00:00:00 2001 From: auouymous Date: Tue, 23 May 2023 14:13:24 -0600 Subject: [PATCH] Fix issue retrieving channel ID for Youtube pages. The channelId meta tag was removed from the HTML. Changing to the channel_id in RSS feed URL tag should be stable. --- src/gpodder/youtube.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gpodder/youtube.py b/src/gpodder/youtube.py index efdc28f3..f0e52f97 100644 --- a/src/gpodder/youtube.py +++ b/src/gpodder/youtube.py @@ -440,7 +440,7 @@ def get_channel_id_url(url, feed_data=None): else: r = feed_data # video page may contain corrupt HTML/XML, search for tag to avoid exception - m = re.search(r'', r.text) + m = re.search(r'channel_id=([^"]+)">', r.text) if m: channel_id = m.group(1) else: