Compare commits

..

2 Commits

Author SHA1 Message Date
ed
54013d861b v0.11.23 2021-06-21 21:15:56 +02:00
ed
ec100210dc support showing album-cover on windows lockscreen 2021-06-21 19:15:22 +00:00
3 changed files with 15 additions and 1 deletions

View File

@@ -1,6 +1,6 @@
# coding: utf-8
VERSION = (0, 11, 22)
VERSION = (0, 11, 23)
CODENAME = "the grid"
BUILD_DT = (2021, 6, 21)

View File

@@ -320,6 +320,11 @@ var mpl = (function () {
if (cover) {
cover += (cover.indexOf('?') === -1 ? '?' : '&') + 'th=j';
var pwd = get_pwd();
if (pwd)
cover += '&pw=' + uricom_enc(pwd);
tags.artwork = [{ "src": cover, type: "image/jpeg" }];
}
}

View File

@@ -359,6 +359,15 @@ function get_vpath() {
}
function get_pwd() {
var pwd = ('; ' + document.cookie).split('; cppwd=');
if (pwd.length < 2)
return null;
return pwd[1].split(';')[0];
}
function unix2iso(ts) {
return new Date(ts * 1000).toISOString().replace("T", " ").slice(0, -5);
}