diff options
author | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-01-29 17:52:27 +0100 |
---|---|---|
committer | Dieter Hametner <dh (plus) vdr (at) gekrumbel (dot) de> | 2011-01-29 17:52:27 +0100 |
commit | 8837aea4cc0f6f3c258631bddbc541696e70dc1c (patch) | |
tree | 2f7a0c12e8cc860f72a82aece7298035807c2b5d /setup.cpp | |
parent | 722a7aef8596b5b38f1bfbe34922832e941f0f82 (diff) | |
download | vdr-plugin-live-8837aea4cc0f6f3c258631bddbc541696e70dc1c.tar.gz vdr-plugin-live-8837aea4cc0f6f3c258631bddbc541696e70dc1c.tar.bz2 |
Applied patch supplied by Rolf Ahrenberg to omit recordings durations.
This helps in scanning large amounts of recordings, because not for
every recoding a file is scanned for either its size or the length.vdr
file.
The patch (live-git-20110129-showrecduration.patch.gz) was submitted
on vdr-portal.de in the post:
http://www.vdr-portal.de/board/thread.php?postid=974612#post974612
Diffstat (limited to 'setup.cpp')
-rw-r--r-- | setup.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -41,6 +41,7 @@ Setup::Setup(): m_theme("marine"), m_lastwhatsonlistmode("detail"), m_tntnetloglevel("WARN"), + m_showRecDuration(1), m_showLogo(1), m_useAjax(1), m_showInfoBox(1), @@ -128,6 +129,7 @@ bool Setup::ParseSetupEntry( char const* name, char const* value ) else if ( strcmp( name, "Theme" ) == 0 ) m_theme = value; else if ( strcmp( name, "LocalNetMask" ) == 0 ) { m_localnetmask = value; } else if ( strcmp( name, "LastWhatsOnListMode" ) == 0 ) { m_lastwhatsonlistmode = value; } + else if ( strcmp( name, "ShowRecDuration" ) == 0 ) { m_showRecDuration = atoi(value); } else if ( strcmp( name, "ShowLogo" ) == 0 ) { m_showLogo = atoi(value); } else if ( strcmp( name, "UseAjax" ) == 0 ) { m_useAjax = atoi(value); } else if ( strcmp( name, "ShowInfoBox" ) == 0 ) { m_showInfoBox = atoi(value); } @@ -295,6 +297,7 @@ bool Setup::SaveSetup() liveplugin->SetupStore("StartPage", m_startscreen.c_str()); liveplugin->SetupStore("Theme", m_theme.c_str()); liveplugin->SetupStore("LastWhatsOnListMode", m_lastwhatsonlistmode.c_str()); + liveplugin->SetupStore("ShowRecDuration", m_showRecDuration); liveplugin->SetupStore("ShowLogo", m_showLogo); liveplugin->SetupStore("UseAjax", m_useAjax); liveplugin->SetupStore("ShowInfoBox", m_showInfoBox); |