summaryrefslogtreecommitdiff
path: root/setup.cpp
diff options
context:
space:
mode:
authorDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-12-25 16:38:56 +0000
committerDieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de>2007-12-25 16:38:56 +0000
commitd70243c63f52bdffa922bd8cefa8d0cbbca335f5 (patch)
treeb303a09bcd161a5583a61ed7da5f7b60a6915f9e /setup.cpp
parent00934e5559ed3b6f15be79d953f3fd3a19b66cff (diff)
downloadvdr-plugin-live-d70243c63f52bdffa922bd8cefa8d0cbbca335f5.tar.gz
vdr-plugin-live-d70243c63f52bdffa922bd8cefa8d0cbbca335f5.tar.bz2
- Presence of IMDb URLs is now configurable. Closes bug #401.
Diffstat (limited to 'setup.cpp')
-rw-r--r--setup.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/setup.cpp b/setup.cpp
index bc024af..543b5c3 100644
--- a/setup.cpp
+++ b/setup.cpp
@@ -35,7 +35,8 @@ Setup::Setup():
m_showInfoBox(1),
m_useStreamdev(1),
m_streamdevPort(3000),
- m_streamdevType()
+ m_streamdevType(),
+ m_showIMDb(1)
{
m_adminPasswordMD5 = "4:" + MD5Hash("live");
liveplugin = cPluginManager::GetPlugin("live");
@@ -101,6 +102,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value )
else if ( strcmp( name, "StreamdevPort" ) == 0 ) { m_streamdevPort = atoi(value); }
else if ( strcmp( name, "StreamdevType" ) == 0 ) { m_streamdevType = value; }
else if ( strcmp( name, "ScreenShotInterval" ) == 0 ) { m_screenshotInterval = atoi(value); }
+ else if ( strcmp( name, "ShowIMDb" ) == 0 ) { m_showIMDb = atoi(value); }
else return false;
return true;
}
@@ -231,6 +233,7 @@ bool Setup::SaveSetup()
liveplugin->SetupStore("StreamdevPort", m_streamdevPort);
liveplugin->SetupStore("StreamdevType", m_streamdevType.c_str());
liveplugin->SetupStore("ScreenShotInterval", m_screenshotInterval);
+ liveplugin->SetupStore("ShowIMDb", m_showIMDb);
return true;
}