summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-07-03 13:01:04 +0700
committerSergey M․ <dstftw@gmail.com>2016-07-03 13:01:04 +0700
commit2cb31d288e945a98a1e23023e17c01c4dc5c1cb0 (patch)
tree94421afdb183f7794c4ce2f2315e003c69dbffda
parentc723d1cd8dad872791ea2abdfb1bdfcbeb477f84 (diff)
downloadyoutube-dl-2cb31d288e945a98a1e23023e17c01c4dc5c1cb0.tar.gz
youtube-dl-2cb31d288e945a98a1e23023e17c01c4dc5c1cb0.tar.xz
youtube-dl-2cb31d288e945a98a1e23023e17c01c4dc5c1cb0.zip
[history:topic] Relax _VALID_URL
-rw-r--r--youtube_dl/extractor/aenetworks.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/youtube_dl/extractor/aenetworks.py b/youtube_dl/extractor/aenetworks.py
index bc58d7b4d..8f53050c9 100644
--- a/youtube_dl/extractor/aenetworks.py
+++ b/youtube_dl/extractor/aenetworks.py
@@ -128,7 +128,7 @@ class AENetworksIE(AENetworksBaseIE):
 class HistoryTopicIE(AENetworksBaseIE):
     IE_NAME = 'history:topic'
     IE_DESC = 'History.com Topic'
-    _VALID_URL = r'https?://(?:www\.)?history\.com/topics/(?:[^/]+/)?(?P<topic_id>[^/]+)/videos(?:/(?P<video_display_id>[^/?#]+))?'
+    _VALID_URL = r'https?://(?:www\.)?history\.com/topics/(?:[^/]+/)?(?P<topic_id>[^/]+)(?:/[^/]+(?:/(?P<video_display_id>[^/?#]+))?)?'
     _TESTS = [{
         'url': 'http://www.history.com/topics/valentines-day/history-of-valentines-day/videos/bet-you-didnt-know-valentines-day?m=528e394da93ae&s=undefined&f=1&free=false',
         'info_dict': {
@@ -156,6 +156,12 @@ class HistoryTopicIE(AENetworksBaseIE):
     }, {
         'url': 'http://www.history.com/topics/world-war-i-history/videos',
         'only_matching': True,
+    }, {
+        'url': 'http://www.history.com/topics/world-war-i/world-war-i-history',
+        'only_matching': True,
+    }, {
+        'url': 'http://www.history.com/topics/world-war-i/world-war-i-history/speeches',
+        'only_matching': True,
     }]
 
     def theplatform_url_result(self, theplatform_url, video_id, query):