mirror of
https://github.com/Findus23/RadioStats.git
synced 2024-09-19 16:03:48 +02:00
12 lines
339 B
Python
12 lines
339 B
Python
|
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"]
|
||
|
time = time_to_date(string_to_time(track["PlayTime"]))
|
||
|
yield time, artist, title
|