Added source code link + back to main page button

This commit is contained in:
Halhadus 2024-12-07 01:05:37 +03:00
parent a0efdb1d79
commit 9d3684f894

View file

@ -40,6 +40,8 @@ def generatehtmlcode(url):
html += '<meta property="og:description" content="Halhadus\' Local Wrapped">\n<meta property="og:image" content="assets/favicon.png">\n'
html += '<meta property="og:url" content="https://halhadus.rocks/localwrapped.html">\n'
html += '<h1>Halhadus\' Local Wrapped</h1>\n'
html += '<a href="https://git.halhadus.rocks/Halhadus/my-local-wrapped" style="color: #ffffff;">Source Code</a>\n'
html += '<form action="index.html">\n<input type="submit" value="Back to main page" style="background-color: #1f1f1f; color: #ffffff; border: 2px solid #ffffff; border-radius: 5px; padding: 10px 20px; margin: 10px 0px;">\n</form>\n'
html += '<h2>Total Play Time: ' + str(int(total_play_time(url)/60)) + ' minutes</h2>\n'
html += '<h2>Last Updated: ' + datetime.datetime.utcfromtimestamp(os.path.getmtime("assets/localwrapped/music.db")).strftime('%Y-%m-%d %H:%M:%S') + ' (server time)</h2>\n'
html += '<h3>Most Played Musics</h3>\n'