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:
parent
43eb6ca5f5
commit
b53ba83d22
|
@ -440,7 +440,7 @@ def get_channel_id_url(url, feed_data=None):
|
||||||
else:
|
else:
|
||||||
r = feed_data
|
r = feed_data
|
||||||
# video page may contain corrupt HTML/XML, search for tag to avoid exception
|
# 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:
|
if m:
|
||||||
channel_id = m.group(1)
|
channel_id = m.group(1)
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in New Issue