mirror of
https://projects.vdr-developer.org/git/vdr-plugin-scraper2vdr.git
synced 2023-10-19 17:58:31 +02:00
added compatibility to VDR < 2.1.x
This commit is contained in:
parent
5a879eb1cf
commit
ee4b10b89e
2
README
2
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
|
||||
|
7
update.c
7
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) {
|
||||
|
Loading…
Reference in New Issue
Block a user