1
0
Fork 0
mirror of https://github.com/Findus23/RadioStats.git synced 2024-09-19 16:03:48 +02:00
RadioStats/parser/kronehit.py

14 lines
421 B
Python
Raw Normal View History

from utils import *
URL = "https://www.kronehit.at/alles-ueber-kronehit/hitsuche/?format=json&channel=1"
def get(channel):
for track in fetch(URL, True)["items"]:
artist = track["ArtistName"]
title = track["TrackName"]
2018-02-23 20:18:37 +01:00
print(track["PlayTime"])
time = time_to_date(string_to_time(track["PlayTime"]))
2018-02-23 20:18:37 +01:00
print(string_to_time(track["PlayTime"]))
yield time, artist, title