diff --git a/websitepart.py b/websitepart.py index 437641f..244b353 100644 --- a/websitepart.py +++ b/websitepart.py @@ -43,6 +43,9 @@ def musicstatus(): history.append(currentbeforereset) html += f'

Currently Playing: {history[-1][0]}

\n' html += f'

Last Update Time: {datetime.datetime.fromtimestamp(int(history[-1][1]), datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S")} (UTC +0)

\n' + if os.path.exists("lyrics/" + history[-1][0] + ".txt"): + with open("lyrics/" + history[-1][0] + ".txt", "r") as f: + html += f'

Lyrics:

\n

{f.read()}

\n' html += '\n\n\n\n\n' for music in history[::-1]: html += '\n\n\n\n'
Music NameTime
' + music[0] + '' + datetime.datetime.fromtimestamp(int(music[1]), datetime.timezone.utc).strftime("%Y-%m-%d %H:%M:%S") + '