mirror of
https://github.com/NohamR/AM-Exporter.git
synced 2026-05-24 19:58:34 +00:00
change css + bug fix
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -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
|
||||
@@ -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>
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
box-sizing: border-box;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
text-align:left;
|
||||
}
|
||||
|
||||
body {
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user