Music player working

This commit is contained in:
√(noham)²
2024-03-01 17:27:54 +01:00
parent 55253bec44
commit 694a2ebf1d
4 changed files with 94 additions and 17 deletions

View File

@@ -47,6 +47,7 @@ def main():
if currentsong['status'] == 'playing':
if currentsong['persistent ID'] != persistendId:
persistendId = currentsong['persistent ID']
currentsong['timestamp'] = time.time()
(currentsong['artwork_url'], currentsong['itunes_url'], currentsong['artist_url']) = get_track_extras(currentsong['name'], currentsong['artist'], currentsong['album'])
print(post(currentsong))
timets = float(currentsong['duration'].replace(",", "."))-float(currentsong['pPosition'].replace(",", ".")) + 3