]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[parliamentliveuk] Recognize lower case URLs
authorYen Chi Hsuan <yan12125@gmail.com>
Thu, 13 Oct 2016 16:44:28 +0000 (00:44 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Thu, 13 Oct 2016 16:44:28 +0000 (00:44 +0800)
Closes #10912

Seems parliamentliveuk matches URLs case-insentive. For example this URL
also works:
http://parliamentlive.tv/EvEnt/Index/3F24936f-130f-40bf-9a5d-b3d6479da6a4

ChangeLog
youtube_dl/extractor/parliamentliveuk.py

index e3a733410b9e237ef75a6b8c15447d64d46df82a..d2b78a4891f849c44ca029662d88345fa6f28114 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [parliamentliveuk] Lower case URLs are now recognized (#10912)
+
+
 version 2016.10.12
 
 Core
index 874aacc55253e69190361f63f8e165cbf1342764..ebdab8db9faa0c8911c53c5764a18456926b6a55 100644 (file)
@@ -6,9 +6,9 @@ from .common import InfoExtractor
 class ParliamentLiveUKIE(InfoExtractor):
     IE_NAME = 'parliamentlive.tv'
     IE_DESC = 'UK parliament videos'
-    _VALID_URL = r'https?://(?:www\.)?parliamentlive\.tv/Event/Index/(?P<id>[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12})'
+    _VALID_URL = r'(?i)https?://(?:www\.)?parliamentlive\.tv/Event/Index/(?P<id>[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12})'
 
-    _TEST = {
+    _TESTS = [{
         'url': 'http://parliamentlive.tv/Event/Index/c1e9d44d-fd6c-4263-b50f-97ed26cc998b',
         'info_dict': {
             'id': 'c1e9d44d-fd6c-4263-b50f-97ed26cc998b',
@@ -18,7 +18,10 @@ class ParliamentLiveUKIE(InfoExtractor):
             'timestamp': 1422696664,
             'upload_date': '20150131',
         },
-    }
+    }, {
+        'url': 'http://parliamentlive.tv/event/index/3f24936f-130f-40bf-9a5d-b3d6479da6a4',
+        'only_matching': True,
+    }]
 
     def _real_extract(self, url):
         video_id = self._match_id(url)