1 | Index: previewgenerator.cpp |
---|
2 | =================================================================== |
---|
3 | --- previewgenerator.cpp (revision 9591) |
---|
4 | +++ previewgenerator.cpp (working copy) |
---|
5 | @@ -59,11 +59,9 @@ |
---|
6 | if (IsLocal()) |
---|
7 | return; |
---|
8 | |
---|
9 | - // Try to find a local means to access file... |
---|
10 | - QString baseName = programInfo.GetRecordBasename(); |
---|
11 | - QString prefix = gContext->GetSetting("RecordFilePrefix"); |
---|
12 | - QString localFN = QString("%1/%2").arg(prefix).arg(baseName); |
---|
13 | - if (!QFileInfo(localFN).exists()) |
---|
14 | + // GetPlaybackURL returns a local filename if one exists |
---|
15 | + QString localFN = programInfo.GetPlaybackURL(); |
---|
16 | + if ( ! (localFN.left(1) == "/" && QFileInfo(localFN).exists())) |
---|
17 | return; // didn't find file locally, must use remote backend |
---|
18 | |
---|
19 | // Found file locally, so set the new pathname.. |
---|