aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/megaphone.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/megaphone.py')
-rw-r--r--hypervideo_dl/extractor/megaphone.py11
1 files changed, 1 insertions, 10 deletions
diff --git a/hypervideo_dl/extractor/megaphone.py b/hypervideo_dl/extractor/megaphone.py
index 5bafa6c..af80523 100644
--- a/hypervideo_dl/extractor/megaphone.py
+++ b/hypervideo_dl/extractor/megaphone.py
@@ -1,8 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-import re
-
from .common import InfoExtractor
from ..utils import js_to_json
@@ -11,6 +6,7 @@ class MegaphoneIE(InfoExtractor):
IE_NAME = 'megaphone.fm'
IE_DESC = 'megaphone.fm embedded players'
_VALID_URL = r'https://player\.megaphone\.fm/(?P<id>[A-Z0-9]+)'
+ _EMBED_REGEX = [rf'<iframe[^>]*?\ssrc=["\'](?P<url>{_VALID_URL})']
_TEST = {
'url': 'https://player.megaphone.fm/GLT9749789991?"',
'md5': '4816a0de523eb3e972dc0dda2c191f96',
@@ -48,8 +44,3 @@ class MegaphoneIE(InfoExtractor):
'duration': episode_data['duration'],
'formats': formats,
}
-
- @classmethod
- def _extract_urls(cls, webpage):
- return [m[0] for m in re.findall(
- r'<iframe[^>]*?\ssrc=["\'](%s)' % cls._VALID_URL, webpage)]