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.
This commit is contained in:
auouymous 2023-05-23 14:13:24 -06:00
parent 43eb6ca5f5
commit b53ba83d22
1 changed files with 1 additions and 1 deletions

View File

@ -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'<meta itemprop="channelId" content="([^"]+)">', r.text)
m = re.search(r'channel_id=([^"]+)">', r.text)
if m:
channel_id = m.group(1)
else: