Removed get_track_md5 as it doesn't work anymore

This commit is contained in:
RemixDev
2020-07-02 21:57:02 +02:00
parent e51576ab2f
commit 309ac9bd13
4 changed files with 2 additions and 38 deletions

View File

@ -36,27 +36,6 @@ class Deezer:
token_data = self.gw_api_call('deezer.getUserData')
return token_data["results"]["checkForm"]
def get_track_md5(self, sng_id):
try:
site = self.session.post(
"https://api.deezer.com/1.0/gateway.php",
params={
'api_key': "4VCYIJUCDLOUELGD1V8WBVYBNVDYOXEWSLLZDONGBBDFVXTZJRXPR29JRLQFO6ZE",
'sid': self.sid,
'input': '3',
'output': '3',
'method': 'song_getData'
},
timeout=30,
json={'sng_id': sng_id},
headers=self.http_headers
)
except:
time.sleep(2)
return self.get_track_md5(sng_id)
response = site.json()
return response['results']['PUID']
def gw_api_call(self, method, args=None):
if args is None:
args = {}