Ticket #3077: mytharchive-cddevices.diff
File mytharchive-cddevices.diff, 2.8 KB (added by , 14 years ago) |
---|
-
mytharchive/archivesettings.cpp
6 6 7 7 // myth 8 8 #include <mythtv/mythcontext.h> 9 #include <mythtv/mythmediamonitor.h> 9 10 10 11 // mytharchive 11 12 #include "archivesettings.h" … … 50 51 return gc; 51 52 }; 52 53 53 static Host LineEdit*MythArchiveDVDLocation()54 static HostComboBox *MythArchiveDVDLocation() 54 55 { 55 Host LineEdit *gc = new HostLineEdit("MythArchiveDVDLocation");56 HostComboBox *gc = new HostComboBox("MythArchiveDVDLocation", true); 56 57 gc->setLabel(QObject::tr("Location of DVD")); 57 gc->setValue("/dev/dvd"); 58 gc->setHelpText(QObject::tr("Which DVD drive to use when burning discs.")); 58 gc->addSelection(QObject::tr("default"), "default"); 59 MediaMonitor *mon = MediaMonitor::GetMediaMonitor(); 60 QStringList cdroms = mon->GetCDROMBlockDevices(); 61 QStringList::iterator iter = cdroms.begin(); 62 for (; iter != cdroms.end(); iter++ ) 63 gc->addSelection("/dev/"+*iter); 64 gc->setHelpText(QObject::tr("Which DVD drive to use when burning discs. 'default' will use the device specified in MythTV")); 59 65 return gc; 60 66 }; 61 67 -
mytharchivehelper/main.cpp
167 167 int burnISOImage(int mediaType, bool bEraseDVDRW, bool nativeFormat) 168 168 { 169 169 QString dvdDrive = gContext->GetSetting("MythArchiveDVDLocation", "/dev/dvd"); 170 if (dvdDrive == "default") 171 dvdDrive = gContext->GetSetting("defaultDVDDevice"); 172 170 173 VERBOSE(VB_JOBQUEUE, "Burning ISO image to " + dvdDrive); 171 174 172 175 QString tempDirectory = gContext->GetSetting("MythArchiveTempDir", ""); -
mythburn/scripts/mythburn.py
553 553 'MythArchiveMpg123Cmd', 554 554 'MythArchiveProjectXCmd', 555 555 'MythArchiveDVDLocation', 556 'defaultDVDDevice', 556 557 'MythArchiveGrowisofsCmd', 557 558 'MythArchiveJpeg2yuvCmd', 558 559 'MythArchiveSpumuxCmd', … … 3885 3886 temppath = defaultsettings["MythArchiveTempDir"] + "/work" 3886 3887 logpath = defaultsettings["MythArchiveTempDir"] + "/logs" 3887 3888 dvddrivepath = defaultsettings["MythArchiveDVDLocation"] 3889 if dvddrivepath == 'default': 3890 dvddrivepath = defaultsettings["defaultDVDDevice"] 3888 3891 dbVersion = defaultsettings["DBSchemaVer"] 3889 3892 preferredlang1 = defaultsettings["ISO639Language0"] 3890 3893 preferredlang2 = defaultsettings["ISO639Language1"]