Log URL when youtube.py can't get channel ID.
This commit is contained in:
parent
7c2b8621a3
commit
92c741b02f
|
@ -453,14 +453,14 @@ def get_channel_id_url(url, feed_data=None):
|
||||||
if m:
|
if m:
|
||||||
channel_id = m.group(1)
|
channel_id = m.group(1)
|
||||||
if channel_id is None:
|
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)
|
channel_url = 'https://www.youtube.com/channel/{}'.format(channel_id)
|
||||||
return channel_url
|
return channel_url
|
||||||
|
|
||||||
except Exception:
|
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):
|
def get_cover(url, feed_data=None):
|
||||||
|
|
Loading…
Reference in New Issue