diff options
author | louis <louis.braun@gmx.de> | 2013-08-24 08:58:50 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-08-24 08:58:50 +0200 |
commit | 1eb108f57c9aaa3e49a07c40625e0467279323ce (patch) | |
tree | 87509ed9be138f6c0b25b708665660fb0c97d05b | |
parent | d6a47a6d7e69fb7abebb1482bc965bd2cb4fae13 (diff) | |
download | vdr-plugin-tvscraper-1eb108f57c9aaa3e49a07c40625e0467279323ce.tar.gz vdr-plugin-tvscraper-1eb108f57c9aaa3e49a07c40625e0467279323ce.tar.bz2 |
adapted detection of series and movies
-rw-r--r-- | HISTORY | 3 | ||||
-rw-r--r-- | imageserver.c | 4 | ||||
-rw-r--r-- | worker.c | 4 |
3 files changed, 7 insertions, 4 deletions
@@ -11,3 +11,6 @@ VDR Plugin 'tvscraper' Revision History - removed unnecessary string in ScrapRecordings - Correctly escaped select statements with movie or series titles +- adapted detection of series/movies: duration of + series has to be between 10 and 75 minutes, movies + have to be longer than 75 minutes diff --git a/imageserver.c b/imageserver.c index 975d417..0e72b13 100644 --- a/imageserver.c +++ b/imageserver.c @@ -12,9 +12,9 @@ cImageServer::~cImageServer() { scrapType cImageServer::GetScrapType(const cEvent *event) { scrapType type = scrapNone; int duration = event->Duration() / 60; - if ((duration > 19) && (duration < 65)) { + if ((duration > 9) && (duration <= 75)) { type = scrapSeries; - } else if (duration > 80) { + } else if (duration > 75) { type = scrapMovie; } return type; @@ -79,9 +79,9 @@ void cTVScraperWorker::SetDirectories(void) { scrapType cTVScraperWorker::GetScrapType(const cEvent *event) { scrapType type = scrapNone; int duration = event->Duration() / 60; - if ((duration > 19) && (duration < 65)) { + if ((duration > 9) && (duration <= 75)) { type = scrapSeries; - } else if (duration > 80) { + } else if (duration > 75) { type = scrapMovie; } return type; |