Browse Source

[tnaflixnetwork:embed] Add _extract_urls

totalwebcasting
Sergey M․ 9 years ago
parent
commit
63719a8ac3
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      youtube_dl/extractor/tnaflix.py

+ 6
- 0
youtube_dl/extractor/tnaflix.py View File

@ -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+)'


Loading…
Cancel
Save