[A-Z] is not needed in URL patterns with re.IGNORECASE.

Organize feed URLs.
This commit is contained in:
auouymous 2020-07-13 02:25:19 -06:00
parent c71c8fb834
commit 5e8b62d248
1 changed files with 2 additions and 2 deletions

View File

@ -288,11 +288,11 @@ def for_each_feed_pattern(func, url, fallback_result):
CHANNEL_MATCH_PATTERNS = [
'http[s]?://(?:[a-z]+\.)?youtube\.com/user/([a-z0-9]+)',
'http[s]?://(?:[a-z]+\.)?youtube\.com/profile?user=([a-z0-9]+)',
'http[s]?://(?:[a-z]+\.)?youtube\.com/channel/([-_a-zA-Z0-9]+)',
'http[s]?://(?:[a-z]+\.)?youtube\.com/rss/user/([a-z0-9]+)/videos\.rss',
'http[s]?://(?:[a-z]+\.)?youtube\.com/channel/([-_a-z0-9]+)',
'http[s]?://(?:[a-z]+\.)?youtube\.com/feeds/videos.xml\?channel_id=([-_a-z0-9]+)',
'http[s]?://gdata.youtube.com/feeds/users/([^/]+)/uploads',
'http[s]?://gdata.youtube.com/feeds/base/users/([^/]+)/uploads',
'http[s]?://(?:[a-z]+\.)?youtube\.com/feeds/videos.xml\?channel_id=([-_a-zA-Z0-9]+)',
]
for pattern in CHANNEL_MATCH_PATTERNS: