mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-09-03 04:55:25 +02:00
[gamekings] Stricter checks
This commit is contained in:
parent
eab3c2895c
commit
0e1b1a011d
@ -6,6 +6,7 @@
|
|||||||
xpath_text,
|
xpath_text,
|
||||||
xpath_with_ns,
|
xpath_with_ns,
|
||||||
)
|
)
|
||||||
|
from .youtube import YoutubeIE
|
||||||
|
|
||||||
|
|
||||||
class GamekingsIE(InfoExtractor):
|
class GamekingsIE(InfoExtractor):
|
||||||
@ -47,10 +48,10 @@ def _real_extract(self, url):
|
|||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
playlist_id = self._search_regex(
|
playlist_id = self._search_regex(
|
||||||
r'gogoVideo\(.*,\s*"([^"]+)', webpage, 'playlist id')
|
r'gogoVideo\([^,]+,\s*"([^"]+)', webpage, 'playlist id')
|
||||||
|
|
||||||
# Check if a YouTube embed is used
|
# Check if a YouTube embed is used
|
||||||
if playlist_id.find('youtube') != -1:
|
if YoutubeIE.suitable(playlist_id):
|
||||||
return self.url_result(playlist_id, ie='Youtube')
|
return self.url_result(playlist_id, ie='Youtube')
|
||||||
|
|
||||||
playlist = self._download_xml(
|
playlist = self._download_xml(
|
||||||
|
Loading…
Reference in New Issue
Block a user