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