aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dlc/extractor/spike.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dlc/extractor/spike.py')
-rw-r--r--youtube_dlc/extractor/spike.py16
1 files changed, 13 insertions, 3 deletions
diff --git a/youtube_dlc/extractor/spike.py b/youtube_dlc/extractor/spike.py
index aabff7a3c..3cee331f6 100644
--- a/youtube_dlc/extractor/spike.py
+++ b/youtube_dlc/extractor/spike.py
@@ -20,8 +20,18 @@ class BellatorIE(MTVServicesInfoExtractor):
_FEED_URL = 'http://www.bellator.com/feeds/mrss/'
_GEO_COUNTRIES = ['US']
- def _extract_mgid(self, webpage):
- return self._extract_triforce_mgid(webpage)
+ def _extract_mgid(self, webpage, url):
+ mgid = None
+
+ if not mgid:
+ mgid = self._extract_triforce_mgid(webpage)
+
+ if not mgid:
+ mgid = self._extract_new_triforce_mgid(webpage, url)
+
+ return mgid
+
+# TODO Remove - Reason: Outdated Site
class ParamountNetworkIE(MTVServicesInfoExtractor):
@@ -43,7 +53,7 @@ class ParamountNetworkIE(MTVServicesInfoExtractor):
_FEED_URL = 'http://www.paramountnetwork.com/feeds/mrss/'
_GEO_COUNTRIES = ['US']
- def _extract_mgid(self, webpage):
+ def _extract_mgid(self, webpage, url):
root_data = self._parse_json(self._search_regex(
r'window\.__DATA__\s*=\s*({.+})',
webpage, 'data'), None)