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:
auouymous 2021-06-30 22:22:42 -06:00
parent 73a83f7a4e
commit 8c56e71b0b
1 changed files with 3 additions and 0 deletions

View File

@ -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...")