change css + bug fix

This commit is contained in:
√(noham)²
2024-03-26 18:33:48 +01:00
parent 8ae08cc047
commit bdde9c5e6c
4 changed files with 8 additions and 3 deletions

3
.gitignore vendored
View File

@@ -135,4 +135,5 @@ user/exemple.plist
user/test2.applescript
user/test.applescript
user/test.py
front-noh.am/
front-noh.am/
player-for-noh.am.css

View File

@@ -6,7 +6,7 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="player.css">
<title>Music Player</title>
<script src="player.js"></script>
</head>

View File

@@ -4,6 +4,7 @@
box-sizing: border-box;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align:left;
}
body {

View File

@@ -90,7 +90,10 @@ def main():
persistendId = currentsong['persistent ID']
currentsong['timestamp'] = time.time()
(currentsong['artwork_url'], currentsong['itunes_url'], currentsong['artist_url']) = get_track_extras(currentsong['name'], currentsong['artist'], currentsong['album'])
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
try:
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
except:
currentsong['dominantcolor'] = [0,0,0]
printout(f"{post(currentsong)}")
timets = float(currentsong['duration'].replace(",", "."))-float(currentsong['pPosition'].replace(",", ".")) + 3
prevstatus = 'playing'