1
0
mirror of https://github.com/SuperBFG7/ympd synced 2025-11-27 02:25:13 +00:00

Added google closure compiler for css and js files

This commit is contained in:
jcorporation
2018-06-21 22:29:49 +01:00
parent 2098060765
commit 2dff568abe
26 changed files with 200 additions and 18049 deletions

View File

@@ -1,6 +1,6 @@
/* myMPD
(c) 2018 Juergen Mang <mail@jcgames.de>
This project's homepage is: https://github.com/jcorporation/ympd
This project's homepage is: https://github.com/jcorporation/mympd
myMPD ist fork of:
@@ -616,11 +616,16 @@ int mympd_put_settings(char *buffer)
struct mpd_status *status;
char *replaygain;
int len;
int je;
struct json_out out = JSON_OUT_BUF(buffer, MAX_SIZE);
struct mympd_state { int a; int b; } state = { .a = 0, .b = 0 };
if( access( mpd.statefile, F_OK ) != -1 ) {
char *content = json_fread(mpd.statefile);
json_scanf(content, strlen(content), "{notificationWeb: %d, notificationPage: %d}", &state.a, &state.b);
je = json_scanf(content, strlen(content), "{notificationWeb: %d, notificationPage: %d}", &state.a, &state.b);
if (je != 2) {
state.a=0;
state.b=0;
}
} else {
state.a=0;
state.b=0;

View File

@@ -1,6 +1,6 @@
/* myMPD
(c) 2018 Juergen Mang <mail@jcgames.de>
This project's homepage is: https://github.com/jcorporation/ympd
This project's homepage is: https://github.com/jcorporation/mympd
myMPD ist fork of:

View File

@@ -1,6 +1,6 @@
/* myMPD
(c) 2018 Juergen Mang <mail@jcgames.de>
This project's homepage is: https://github.com/jcorporation/ympd
This project's homepage is: https://github.com/jcorporation/mympd
myMPD ist fork of:
@@ -169,7 +169,7 @@ int main(int argc, char **argv)
" -m, --mpdpass <password>\tspecifies the password to use when connecting to mpd\n"
" -s, --streamport <port>\tconnect to mpd http stream at port [8000]\n"
" -i, --coverimage <filename>\tfilename for coverimage [folder.jpg]\n"
" -t, --statefile <filename>\tstatefile [/var/lib/mympd/mympd.state]\n"
" -t, --statefile <filename>\tfilename for mympd state [/var/lib/mympd/mympd.state]\n"
" --help\t\t\t\tthis help\n"
, argv[0]);
return EXIT_FAILURE;