aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/tnaflix.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2016-02-27 17:15:06 +0600
committerSergey M․ <dstftw@gmail.com>2016-02-27 17:15:06 +0600
commit63719a8ac3054f702238632495e291dd6f81e6b1 (patch)
treeff77ef28bab70fd8939cecbd78b990d577a9ddf2 /youtube_dl/extractor/tnaflix.py
parent8fab62482abf8e75f2dd98fedbe95d81ce767382 (diff)
[tnaflixnetwork:embed] Add _extract_urls
Diffstat (limited to 'youtube_dl/extractor/tnaflix.py')
-rw-r--r--youtube_dl/extractor/tnaflix.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/youtube_dl/extractor/tnaflix.py b/youtube_dl/extractor/tnaflix.py
index e8c272704..79f036fe4 100644
--- a/youtube_dl/extractor/tnaflix.py
+++ b/youtube_dl/extractor/tnaflix.py
@@ -175,6 +175,12 @@ class TNAFlixNetworkEmbedIE(TNAFlixNetworkBaseIE):
'only_matching': True,
}]
+ @staticmethod
+ def _extract_urls(webpage):
+ return [url for _, url in re.findall(
+ r'<iframe[^>]+?src=(["\'])(?P<url>(?:https?:)?//player\.(?:tna|emp)flix\.com/video/\d+)\1',
+ webpage)]
+
class TNAFlixIE(TNAFlixNetworkBaseIE):
_VALID_URL = r'https?://(?:www\.)?tnaflix\.com/[^/]+/(?P<display_id>[^/]+)/video(?P<id>\d+)'