From 92c741b02f87c1ebd76414a12e8bc60fb02b0469 Mon Sep 17 00:00:00 2001 From: auouymous Date: Sun, 22 Jan 2023 17:21:23 -0700 Subject: [PATCH] Log URL when youtube.py can't get channel ID. --- src/gpodder/youtube.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gpodder/youtube.py b/src/gpodder/youtube.py index c2370d46..efdc28f3 100644 --- a/src/gpodder/youtube.py +++ b/src/gpodder/youtube.py @@ -453,14 +453,14 @@ def get_channel_id_url(url, feed_data=None): if m: channel_id = m.group(1) if channel_id is None: - raise Exception('Could not retrieve youtube channel id.') + raise Exception('Could not retrieve YouTube channel ID for URL %s.' % url) channel_url = 'https://www.youtube.com/channel/{}'.format(channel_id) return channel_url except Exception: - logger.warning('Could not retrieve youtube channel id.', exc_info=True) + logger.warning('Could not retrieve YouTube channel ID for URL %s.' % url, exc_info=True) - raise Exception('Could not retrieve youtube channel id.') + raise Exception('Could not retrieve YouTube channel ID for URL %s.' % url) def get_cover(url, feed_data=None):