diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-12 18:19:21 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2016-10-12 18:19:21 +0200 |
commit | 10af23b979c35905687c6a1e9c213aec33773f8e (patch) | |
tree | d1c2032257cb70d8c0912e495b7a8032bdaf7368 | |
parent | b96590664ae645efb740a9ad1b3c08385ade102a (diff) | |
download | desktop-tools-scrobbler.tar.gz desktop-tools-scrobbler.tar.xz desktop-tools-scrobbler.zip |
WIPscrobbler
-rw-r--r-- | dwmstatus.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/dwmstatus.c b/dwmstatus.c index da2b78f..799a585 100644 --- a/dwmstatus.c +++ b/dwmstatus.c @@ -968,6 +968,10 @@ static struct simple_config_item g_config_table[] = { "mpd_service", "6600", "MPD service name or port" }, { "mpd_password", NULL, "MPD password" }, + { "last_fm_key", NULL, "last.fm API key" }, + { "last_fm_secret", NULL, "last.fm API secret" }, + { "last_fm_session", NULL, "last.fm API session ID" }, + { "nut_enabled", "off", "NUT UPS status reading enabled" }, { "nut_load_thld", "50", "NUT threshold for load display" }, @@ -2212,6 +2216,7 @@ main (int argc, char *argv[]) { 'w', "write-default-cfg", "FILENAME", OPT_OPTIONAL_ARG | OPT_LONG_ONLY, "write a default configuration file and exit" }, + { 's', "init-session", NULL, 0, "start a last.fm API session" }, { 0, NULL, NULL, 0, NULL } }; @@ -2234,6 +2239,9 @@ main (int argc, char *argv[]) case 'w': call_simple_config_write_default (optarg, g_config_table); exit (EXIT_SUCCESS); + case 's': + // TODO: authenticate with last.fm using configuration + exit (EXIT_SUCCESS); default: print_error ("wrong options"); opt_handler_usage (&oh, stderr); |