Logo Search packages:      
Sourcecode: vdr-plugin-live version File versions  Download package

string const vdrlive::RecordingsManager::GetArchiveId ( cRecording const *  recording  )  [static]

Provide an identification of the removable media (e.g. DVD-ROM Number or Name) where the recording has been archived.

Definition at line 104 of file recman.cpp.

      {
            string filename = recording->FileName();

            filename += "/dvd.vdr";
            ifstream dvd(filename.c_str());

            if (dvd) {
                  string archiveDisc;
                  string videoDisc;
                  dvd >> archiveDisc;
                  if ("0000" == archiveDisc) {
                        dvd >> videoDisc;
                        return videoDisc;
                  }
                  return archiveDisc;
            }
            return "";
      }


Generated by  Doxygen 1.6.0   Back to index