mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-03-17 13:32:21 +09:00
changed it a little bit. Removed small useless pieces of code.
This commit is contained in:
parent
6479bb1f42
commit
72ec1d3c2c
@ -4512,7 +4512,7 @@ class HypemIE(InfoExtractor):
|
|||||||
track_list = json.loads(html_tracks)
|
track_list = json.loads(html_tracks)
|
||||||
tracks = track_list[u'tracks']
|
tracks = track_list[u'tracks']
|
||||||
except ValueError:
|
except ValueError:
|
||||||
print "Hypemachine contained invalid JSON."
|
self.to_screen("Hypemachine contained invalid JSON.")
|
||||||
tracks = track_list
|
tracks = track_list
|
||||||
|
|
||||||
for track in tracks:
|
for track in tracks:
|
||||||
@ -4520,9 +4520,6 @@ class HypemIE(InfoExtractor):
|
|||||||
id = track[u"id"]
|
id = track[u"id"]
|
||||||
artist = track[u"artist"]
|
artist = track[u"artist"]
|
||||||
title = track[u"song"]
|
title = track[u"song"]
|
||||||
type = track[u"type"]
|
|
||||||
if type is False:
|
|
||||||
continue
|
|
||||||
serve_url = "http://hypem.com/serve/source/%s/%s"%(str(id), str(key))
|
serve_url = "http://hypem.com/serve/source/%s/%s"%(str(id), str(key))
|
||||||
self.report_extraction(id)
|
self.report_extraction(id)
|
||||||
request = compat_urllib_request.Request(serve_url, "" , {'Content-Type': 'application/json'})
|
request = compat_urllib_request.Request(serve_url, "" , {'Content-Type': 'application/json'})
|
||||||
|
Loading…
Reference in New Issue
Block a user