summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-04-13 08:17:00 +0200
committerlouis <louis.braun@gmx.de>2014-04-13 08:17:00 +0200
commitee4b10b89e2f63a54b7846223cec44c601069b95 (patch)
treefdcfdd89aa6066db2b90e03ee5660384316ad2d6
parent5a879eb1cff50e2ee69624f1a4de868a8a9d318a (diff)
downloadvdr-plugin-scraper2vdr-ee4b10b89e2f63a54b7846223cec44c601069b95.tar.gz
vdr-plugin-scraper2vdr-ee4b10b89e2f63a54b7846223cec44c601069b95.tar.bz2
added compatibility to VDR < 2.1.x
-rw-r--r--README2
-rw-r--r--update.c7
2 files changed, 7 insertions, 2 deletions
diff --git a/README b/README
index 942ebb5..3a45460 100644
--- a/README
+++ b/README
@@ -60,7 +60,7 @@ background and performs the following tasks:
are stored to the local filesystem if not available yet.
- Update of recordings from Database: at startup and every 5 minutes
the recordings stored in the database are read and analogous to events
- the series and movie are stored.
+ the series and movies are stored.
- Scan for new recordings: at startup and every 5 minutes the VDR Recordings
List is checked for new recordings. These can be a recently started
recording or recordings newly mounted from a remote share. If new
diff --git a/update.c b/update.c
index e391871..186e266 100644
--- a/update.c
+++ b/update.c
@@ -905,7 +905,12 @@ int cUpdate::ScanVideoDir(void) {
ReadScrapInfo(rec->FileName(), scrapInfoMovieID, scrapInfoSeriesID, scrapInfoEpisodeID);
int eventId = 0;
string channelId = "";
- string title = *(rec->BaseName());
+ string title = rec->Name();
+ //remove directory
+ size_t posDelim = title.find_last_of('~');
+ if (posDelim != string::npos) {
+ title = title.substr(posDelim+1);
+ }
string subTitle = "";
const cRecordingInfo *recInfo = rec->Info();
if (recInfo) {