summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-08-24 08:58:50 +0200
committerlouis <louis.braun@gmx.de>2013-08-24 08:58:50 +0200
commit1eb108f57c9aaa3e49a07c40625e0467279323ce (patch)
tree87509ed9be138f6c0b25b708665660fb0c97d05b
parentd6a47a6d7e69fb7abebb1482bc965bd2cb4fae13 (diff)
downloadvdr-plugin-tvscraper-1eb108f57c9aaa3e49a07c40625e0467279323ce.tar.gz
vdr-plugin-tvscraper-1eb108f57c9aaa3e49a07c40625e0467279323ce.tar.bz2
adapted detection of series and movies
-rw-r--r--HISTORY3
-rw-r--r--imageserver.c4
-rw-r--r--worker.c4
3 files changed, 7 insertions, 4 deletions
diff --git a/HISTORY b/HISTORY
index cd1075d..0481e4d 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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;
diff --git a/worker.c b/worker.c
index 944d9b5..86c776f 100644
--- a/worker.c
+++ b/worker.c
@@ -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;