Don't parse youtube feed URLs.
This fixes a bug where the feed URL is parsed to the channel URL, potentially causing issues subscribing to feed URLs, but causing gpo failures when enabling or disabling youtube channels.
This commit is contained in:
parent
73a83f7a4e
commit
8c56e71b0b
|
@ -486,6 +486,9 @@ def parse_youtube_url(url):
|
|||
logger.debug("Analyzing URL: {}".format(" ".join([scheme, netloc, path, query, fragment])))
|
||||
|
||||
if 'youtube.com' in netloc:
|
||||
if path == '/feeds/videos.xml' and re.search(r'^(user|channel|playlist)_id=.*', query):
|
||||
return url
|
||||
|
||||
if '/user/' in path or '/channel/' in path or 'list=' in query:
|
||||
logger.debug("Valid Youtube URL detected. Parsing...")
|
||||
|
||||
|
|
Loading…
Reference in New Issue