diff options
-rw-r--r-- | config.c | 1 | ||||
-rw-r--r-- | detailview.c | 4 | ||||
-rw-r--r-- | displaychannelview.c | 2 | ||||
-rw-r--r-- | menudetailview.c | 4 | ||||
-rw-r--r-- | menuitem.c | 2 | ||||
-rw-r--r-- | po/ca_ES.po | 5 | ||||
-rw-r--r-- | po/de_DE.po | 5 | ||||
-rw-r--r-- | po/it_IT.po | 5 | ||||
-rw-r--r-- | po/sk_SK.po | 5 | ||||
-rw-r--r-- | setup.c | 1 | ||||
-rw-r--r-- | textwindow.c | 2 |
11 files changed, 25 insertions, 11 deletions
@@ -59,6 +59,7 @@ void cNopacityConfig::LoadDefaults(void) { conf.insert(std::pair<std::string, int>("displayType", dtBlending)); conf.insert(std::pair<std::string, int>("fontIndex", 0)); conf.insert(std::pair<std::string, int>("debugImageLoading", 0)); + conf.insert(std::pair<std::string, int>("scraperInfo", 1)); //DisplayMenu conf.insert(std::pair<std::string, int>("scrollMode", 0)); conf.insert(std::pair<std::string, int>("spaceMenu", 5)); diff --git a/detailview.c b/detailview.c index a40af99..6623e48 100644 --- a/detailview.c +++ b/detailview.c @@ -608,7 +608,7 @@ void cNopacitySeriesView::SetAlpha(int Alpha) { void cNopacitySeriesView::LoadMedia(void) { static cPlugin *pScraper = GetScraperPlugin(); - if (!pScraper || seriesId < 1) + if (!pScraper || (config.GetValue("scraperInfo") == 0) || seriesId < 1) return; series.seriesId = seriesId; series.episodeId = episodeId; @@ -866,7 +866,7 @@ void cNopacityMovieView::SetAlpha(int Alpha) { void cNopacityMovieView::LoadMedia(void) { static cPlugin *pScraper = GetScraperPlugin(); - if (!pScraper || movieId < 1) + if (!pScraper || (config.GetValue("scraperInfo") == 0) || movieId < 1) return; movie.movieId = movieId; pScraper->Service("GetMovie", &movie); diff --git a/displaychannelview.c b/displaychannelview.c index daf8c71..34f1727 100644 --- a/displaychannelview.c +++ b/displaychannelview.c @@ -579,7 +579,7 @@ void cNopacityDisplayChannelView::DrawPoster(const cEvent *event, bool initial, } static cPlugin *pScraper = GetScraperPlugin(); - if (pScraper) { + if (pScraper && (config.GetValue("scraperInfo") == 1)) { ScraperGetPosterBanner call; call.event = event; if (pScraper->Service("GetPosterBanner", &call)) { diff --git a/menudetailview.c b/menudetailview.c index b154fc6..b68f8c4 100644 --- a/menudetailview.c +++ b/menudetailview.c @@ -55,7 +55,7 @@ void cNopacityDetailView::InitiateViewType(void) { if (!ev) break; call.event = ev; - if (!pScraper) { + if (!pScraper || (config.GetValue("scraperInfo") == 0)) { view = new cNopacityEPGView(osd); } else if (pScraper->Service("GetEventType", &call)) { if (call.type == tMovie) { @@ -85,7 +85,7 @@ void cNopacityDetailView::InitiateViewType(void) { if (!rec) break; call.recording = rec; - if (!pScraper) { + if (!pScraper || (config.GetValue("scraperInfo") == 0)) { view = new cNopacityEPGView(osd); } else if (pScraper->Service("GetEventType", &call)) { if (call.type == tMovie) { @@ -1203,7 +1203,7 @@ void cNopacityRecordingMenuItem::SetPoster(void) { manualPosterPath = posterFound; //no manually set poster found, check scraper static cPlugin *pScraper = GetScraperPlugin(); - if (pScraper) { + if (pScraper && (config.GetValue("scraperInfo") == 1)) { thumb.event = NULL; thumb.recording = Recording; if (pScraper->Service("GetPosterThumb", &thumb)) { diff --git a/po/ca_ES.po b/po/ca_ES.po index da01731..1e4c2de 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-06-19 15:09+0200\n" +"POT-Creation-Date: 2021-07-05 14:49+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Gabychan <gbonich@gmail.com>\n" "Language-Team: \n" @@ -182,6 +182,9 @@ msgstr "nou" msgid "Font" msgstr "Font" +msgid "Use scraper infos and pictures" +msgstr "" + msgid "VDR Menu: Common Settings" msgstr "Menu VDR: Preferències" diff --git a/po/de_DE.po b/po/de_DE.po index c39cca2..3cd813d 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-06-19 15:08+0200\n" +"POT-Creation-Date: 2021-07-05 14:49+0200\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -179,6 +179,9 @@ msgstr "neu" msgid "Font" msgstr "Schriftart" +msgid "Use scraper infos and pictures" +msgstr "Scraper Infos und Bilder benutzen" + msgid "VDR Menu: Common Settings" msgstr "VDR Menü: Allgemeine Einstellungen" diff --git a/po/it_IT.po b/po/it_IT.po index 4d840d1..902ed26 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-06-19 15:09+0200\n" +"POT-Creation-Date: 2021-07-05 14:49+0200\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: \n" @@ -182,6 +182,9 @@ msgstr "nuovo" msgid "Font" msgstr "Carattere" +msgid "Use scraper infos and pictures" +msgstr "" + msgid "VDR Menu: Common Settings" msgstr "Menu VDR: Impostazioni comuni" diff --git a/po/sk_SK.po b/po/sk_SK.po index c74498b..317d6ae 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2021-06-19 15:09+0200\n" +"POT-Creation-Date: 2021-07-05 14:49+0200\n" "PO-Revision-Date: 2013-11-11 20:52+0100\n" "Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n" "Language-Team: \n" @@ -179,6 +179,9 @@ msgstr "nový" msgid "Font" msgstr "Písmo" +msgid "Use scraper infos and pictures" +msgstr "" + msgid "VDR Menu: Common Settings" msgstr "VDR ponuka: V¹eobecné nastavenia" @@ -30,6 +30,7 @@ void cNopacitySetup::Setup(void) { int currentItem = Current(); Clear(); Add(new cMenuEditStraItem(tr("Font"), tmpConf.GetValueRef("fontIndex"), fontNames.Size(), &fontNames[0])); + Add(new cMenuEditBoolItem(tr("Use scraper infos and pictures"), tmpConf.GetValueRef("scraperInfo"))); Add(new cOsdItem(tr("VDR Menu: Common Settings"))); Add(new cOsdItem(tr("VDR Menu: Main and Setup Menu"))); Add(new cOsdItem(tr("VDR Menu: Schedules Menu"))); diff --git a/textwindow.c b/textwindow.c index 0849305..4427d94 100644 --- a/textwindow.c +++ b/textwindow.c @@ -85,7 +85,7 @@ void cNopacityTextWindow::SetPoster(const cEvent *event, const cRecording *recor posterHeight = 0; posterWidth = 0; static cPlugin *pScraper = GetScraperPlugin(); - if (pScraper) { + if (pScraper && (config.GetValue("scraperInfo") == 1)) { posterScraper2Vdr.event = event; posterScraper2Vdr.recording = recording; if (pScraper->Service("GetPoster", &posterScraper2Vdr)) { |