mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-29 19:47:54 +01:00
[grooveshark] Fix extraction
This commit is contained in:
parent
98f02fdde2
commit
b1337948eb
@ -140,9 +140,9 @@ class GroovesharkIE(InfoExtractor):
|
|||||||
|
|
||||||
if webpage is not None:
|
if webpage is not None:
|
||||||
o = GroovesharkHtmlParser.extract_object_tags(webpage)
|
o = GroovesharkHtmlParser.extract_object_tags(webpage)
|
||||||
return (webpage, [x for x in o if x['attrs']['id'] == 'jsPlayerEmbed'])
|
return webpage, [x for x in o if x['attrs']['id'] == 'jsPlayerEmbed']
|
||||||
|
|
||||||
return (webpage, None)
|
return webpage, None
|
||||||
|
|
||||||
def _real_initialize(self):
|
def _real_initialize(self):
|
||||||
self.ts = int(time.time() * 1000) # timestamp in millis
|
self.ts = int(time.time() * 1000) # timestamp in millis
|
||||||
@ -154,7 +154,7 @@ class GroovesharkIE(InfoExtractor):
|
|||||||
swf_referer = None
|
swf_referer = None
|
||||||
if self.do_playerpage_request:
|
if self.do_playerpage_request:
|
||||||
(_, player_objs) = self._get_playerpage(url)
|
(_, player_objs) = self._get_playerpage(url)
|
||||||
if player_objs is not None:
|
if player_objs:
|
||||||
swf_referer = self._build_swf_referer(url, player_objs[0])
|
swf_referer = self._build_swf_referer(url, player_objs[0])
|
||||||
self.to_screen('SWF Referer: %s' % swf_referer)
|
self.to_screen('SWF Referer: %s' % swf_referer)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user