aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2016-01-15 16:18:07 +0100
committerremitamine <remitamine@gmail.com>2016-01-15 16:18:07 +0100
commit587dfd44a4df3fac573e1152ca70f34eabe42611 (patch)
tree3fca34c62a29a390d4b7f4b998fdaeb363f219e2
parent52767c1ba0ddd515f52bfdc9169cd2037d3eb403 (diff)
[ae] Add support for fyi.tv, aetv.com and mylifetime.com(closes #3599)
-rw-r--r--youtube_dl/extractor/ae.py (renamed from youtube_dl/extractor/history.py)13
1 files changed, 11 insertions, 2 deletions
diff --git a/youtube_dl/extractor/history.py b/youtube_dl/extractor/ae.py
index 9ec2e92cf..880c65350 100644
--- a/youtube_dl/extractor/history.py
+++ b/youtube_dl/extractor/ae.py
@@ -4,8 +4,8 @@ from .common import InfoExtractor
from ..utils import smuggle_url
-class HistoryIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?history\.com/(?:[^/]+/)+(?P<id>[^/]+?)(?:$|[?#])'
+class AEIE(InfoExtractor):
+ _VALID_URL = r'https?://(?:www\.)?(?:(?:history|aetv|mylifetime)\.com|fyi.tv)/(?:[^/]+/)+(?P<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',
@@ -33,6 +33,15 @@ class HistoryIE(InfoExtractor):
'skip_download': True,
},
'add_ie': ['ThePlatform'],
+ }, {
+ 'url': 'http://www.aetv.com/shows/duck-dynasty/video/inlawful-entry',
+ 'only_matching': True
+ }, {
+ 'url': 'http://www.fyi.tv/shows/tiny-house-nation/videos/207-sq-ft-minnesota-prairie-cottage',
+ 'only_matching': True
+ }, {
+ 'url': 'http://www.mylifetime.com/shows/project-runway-junior/video/season-1/episode-6/superstar-clients',
+ 'only_matching': True
}]
def _real_extract(self, url):