summaryrefslogtreecommitdiff
path: root/update.c
diff options
context:
space:
mode:
Diffstat (limited to 'update.c')
-rw-r--r--update.c7
1 files changed, 6 insertions, 1 deletions
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) {