mirror of
https://github.com/NohamR/AM-Exporter.git
synced 2026-05-26 12:17:15 +00:00
change css + bug fix
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -136,3 +136,4 @@ user/test2.applescript
|
|||||||
user/test.applescript
|
user/test.applescript
|
||||||
user/test.py
|
user/test.py
|
||||||
front-noh.am/
|
front-noh.am/
|
||||||
|
player-for-noh.am.css
|
||||||
@@ -6,7 +6,7 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<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>
|
<title>Music Player</title>
|
||||||
<script src="player.js"></script>
|
<script src="player.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -4,6 +4,7 @@
|
|||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-webkit-font-smoothing: antialiased;
|
-webkit-font-smoothing: antialiased;
|
||||||
-moz-osx-font-smoothing: grayscale;
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
text-align:left;
|
||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
@@ -90,7 +90,10 @@ def main():
|
|||||||
persistendId = currentsong['persistent ID']
|
persistendId = currentsong['persistent ID']
|
||||||
currentsong['timestamp'] = time.time()
|
currentsong['timestamp'] = time.time()
|
||||||
(currentsong['artwork_url'], currentsong['itunes_url'], currentsong['artist_url']) = get_track_extras(currentsong['name'], currentsong['artist'], currentsong['album'])
|
(currentsong['artwork_url'], currentsong['itunes_url'], currentsong['artist_url']) = get_track_extras(currentsong['name'], currentsong['artist'], currentsong['album'])
|
||||||
|
try:
|
||||||
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
|
currentsong['dominantcolor'] = get_dominant_color_from_url(currentsong['artwork_url'])
|
||||||
|
except:
|
||||||
|
currentsong['dominantcolor'] = [0,0,0]
|
||||||
printout(f"{post(currentsong)}")
|
printout(f"{post(currentsong)}")
|
||||||
timets = float(currentsong['duration'].replace(",", "."))-float(currentsong['pPosition'].replace(",", ".")) + 3
|
timets = float(currentsong['duration'].replace(",", "."))-float(currentsong['pPosition'].replace(",", ".")) + 3
|
||||||
prevstatus = 'playing'
|
prevstatus = 'playing'
|
||||||
|
|||||||
Reference in New Issue
Block a user