diff options
author | chriszero <zerov83@gmail.com> | 2015-05-17 21:13:14 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-05-17 21:13:14 +0200 |
commit | d15cd5a30174c7864051d42ba58cd31570fc8ed5 (patch) | |
tree | c3f62de9cf1f43ad28864012bbce168f323a3308 /plex.cpp | |
parent | 80d1c613e8055567644abab38707378960b5d809 (diff) | |
download | vdr-plugin-plex-d15cd5a30174c7864051d42ba58cd31570fc8ed5.tar.gz vdr-plugin-plex-d15cd5a30174c7864051d42ba58cd31570fc8ed5.tar.bz2 |
...
Diffstat (limited to 'plex.cpp')
-rw-r--r-- | plex.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
@@ -154,20 +154,7 @@ bool cMyPlugin::SetupParse(const char *name, const char *value) { //dsyslog("[plex]%s: '%s' = '%s'\n", __FUNCTION__, name, value); - if (strcasecmp(name, "HideMainMenuEntry") == 0) Config::GetInstance().HideMainMenuEntry = atoi(value) ? true : false; - else if (strcasecmp(name, "UsePlexAccount") == 0) Config::GetInstance().UsePlexAccount = atoi(value) ? true : false; - else if (strcasecmp(name, "UseCustomTranscodeProfile") == 0) Config::GetInstance().UseCustomTranscodeProfile = atoi(value) ? true : false; - else if (strcasecmp(name, "Username") == 0) Config::GetInstance().s_username = std::string(value); - else if (strcasecmp(name, "Password") == 0) Config::GetInstance().s_password = std::string(value); - else if (strcasecmp(name, "UUID") == 0) Config::GetInstance().SetUUID(value); - else if (strcasecmp(name, "UseConfiguredServer") == 0) Config::GetInstance().UseConfiguredServer = atoi(value) ? true : false; - else if (strcasecmp(name, "ServerHost") == 0) Config::GetInstance().s_serverHost = std::string(value); - else if (strcasecmp(name, "ServerPort") == 0) Config::GetInstance().ServerPort = atoi(value); - else if (strcasecmp(name, "GridColumns") == 0) Config::GetInstance().GridColumns = atoi(value); - else if (strcasecmp(name, "GridRows") == 0) Config::GetInstance().GridRows = atoi(value); - else return false; - - return true; + return Config::GetInstance().Parse(name, value); } /** |