Support video title in url

This commit is contained in:
wolfy1339 2019-03-17 02:56:48 -04:00
parent 5f38adfd04
commit 242a37a26f
No known key found for this signature in database
GPG Key ID: FAE9C95324A3FE57

View File

@ -15,7 +15,7 @@ class CorusIE(ThePlatformFeedIE):
(?:globaltv|etcanada)\.com|
(?:hgtv|foodnetwork|slice|history|showcase|bigbrothercanada)\.ca
)
/(?:video/|(?:[^/]+/)+(?:videos/[a-z0-9-]+-|video\.html\?.*?\bv=))
/(?:(?:video/[a-z0-9-]+/)|video/|(?:[^/]+/)+(?:videos/[a-z0-9-]+-|video\.html\?.*?\bv=))
(?P<id>\d+)
'''
_TESTS = [{
@ -45,6 +45,9 @@ class CorusIE(ThePlatformFeedIE):
}, {
'url': 'http://www.bigbrothercanada.ca/video/1457812035894/',
'only_matching': True
}, {
'url': 'https://www.bigbrothercanada.ca/video/big-brother-canada-704/1457812035894/',
'only_matching': True
}]
_TP_FEEDS = {