MythTV  master
Classes | Functions | Variables
mythplugins/mytharchive/mytharchivehelper/main.cpp File Reference
#include <cstdint>
#include <cstdlib>
#include <iostream>
#include <sys/wait.h>
#include <unistd.h>
#include <mythconfig.h>
#include <QApplication>
#include <QFile>
#include <QDir>
#include <QDomElement>
#include <QImage>
#include <QMutex>
#include <QMutexLocker>
#include <QTextStream>
#include <mythcommandlineparser.h>
#include <mythmiscutil.h>
#include <mythcoreutil.h>
#include <mythcontext.h>
#include <mythversion.h>
#include <exitcodes.h>
#include <mythdb.h>
#include <programinfo.h>
#include <mythdirs.h>
#include <mythsystemlegacy.h>
#include <mythdate.h>
#include <mythlogging.h>
#include <mythavutil.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>
#include "external/pxsup2dast.h"
#include "libavutil/imgutils.h"
#include "../mytharchive/archiveutil.h"
#include "../mytharchive/remoteavformatcontext.h"
Include dependency graph for mythplugins/mytharchive/mytharchivehelper/main.cpp:

Go to the source code of this file.

Classes

class  NativeArchive
 
class  MythArchiveHelperCommandLineParser
 

Functions

static bool createISOImage (QString &sourceDirectory)
 
static int burnISOImage (int mediaType, bool bEraseDVDRW, bool nativeFormat)
 
static int doBurnDVD (int mediaType, bool bEraseDVDRW, bool nativeFormat)
 
query bindValue (":CHANID", chanID)
 
query bindValue (":STARTTIME", startTime)
 
 if (query.exec() &&query.next())
 
query prepare ("SELECT chanid, channum, callsign, name " "FROM channel WHERE chanid = :CHANID;")
 
channel setAttribute ("chanid", chanID)
 
channel setAttribute ("channum", "unknown")
 
channel setAttribute ("callsign", "unknown")
 
channel setAttribute ("name", "unknown")
 
root appendChild (channel)
 
 LOG (VB_JOBQUEUE, LOG_INFO, "Created a default channel element for "+title)
 
query prepare ("SELECT credits.person, role, people.name " "FROM recordedcredits AS credits " "LEFT JOIN people ON credits.person = people.person " "WHERE chanid = :CHANID AND starttime = :STARTTIME;")
 
 if (query.exec() &&query.size())
 
query prepare ("SELECT `system`, rating FROM recordedrating " "WHERE chanid = :CHANID AND starttime = :STARTTIME;")
 
query prepare ("SELECT chanid, starttime, mark, type, data " "FROM recordedmarkup " "WHERE chanid = :CHANID and starttime = :STARTTIME;")
 
query prepare ("SELECT chanid, starttime, mark, offset, type " "FROM recordedseek " "WHERE chanid = :CHANID and starttime = :STARTTIME;")
 
QFile f (xmlFile)
 
 if (!f.open(QIODevice::WriteOnly))
 
 LOG (VB_JOBQUEUE, LOG_INFO, QString("Archiving %1 (%2), do delete: %3") .arg(title).arg(filename).arg(doDelete))
 
 if (title==""||filename=="")
 
QDir dir (saveDirectory+title)
 
 if (!dir.exists()) dir.mkdir(saveDirectory+title)
 
 LOG (VB_JOBQUEUE, LOG_INFO, "Creating xml file for "+title)
 
QDomDocument doc ("MYTHARCHIVEITEM")
 
doc appendChild (root)
 
root setAttribute ("type", "video")
 
root setAttribute ("databaseversion", dbVersion)
 
root appendChild (video)
 
query prepare ("SELECT intid, title, director, plot, rating, inetref, " "year, userrating, length, showlevel, filename, coverfile, " "childid, browse, playcommand, category " "FROM videometadata WHERE filename = :FILENAME;")
 
query bindValue (":FILENAME", filename)
 
query prepare ("SELECT intid, category " "FROM videocategory WHERE intid = :INTID;")
 
query bindValue (":INTID", categoryID)
 
root appendChild (countries)
 
query bindValue (":INTID", intID)
 
root appendChild (genres)
 
QFileInfo fileInfo (filename)
 
 for (int x=0;x< dirList.count() - 1;x++)
 
 LOG (VB_JOBQUEUE, LOG_INFO, "Copying video file")
 
 if (!copyFile(videoFile, path+"/"+basename))
 
fileInfo setFile (videoFile)
 
fileInfo setFile (coverFilename)
 
fileInfo setFile (archivePath+"/"+coverFilename)
 
 if (fileInfo.exists())
 
MSqlQuery query (MSqlQuery::InitCon())
 
query prepare ("INSERT INTO videometadata (title, director, plot, rating, inetref, " "year, userrating, length, showlevel, filename, coverfile, " "childid, browse, playcommand, category) " "VALUES(:TITLE,:DIRECTOR,:PLOT,:RATING,:INETREF,:YEAR," ":USERRATING,:LENGTH,:SHOWLEVEL,:FILENAME,:COVERFILE," ":CHILDID,:BROWSE,:PLAYCOMMAND,:CATEGORY);")
 
query bindValue (":TITLE", findNodeText(videoNode, "title"))
 
query bindValue (":DIRECTOR", findNodeText(videoNode, "director"))
 
query bindValue (":PLOT", findNodeText(videoNode, "plot"))
 
query bindValue (":RATING", findNodeText(videoNode, "rating"))
 
query bindValue (":INETREF", findNodeText(videoNode, "inetref"))
 
query bindValue (":YEAR", findNodeText(videoNode, "year"))
 
query bindValue (":USERRATING", findNodeText(videoNode, "userrating"))
 
query bindValue (":LENGTH", findNodeText(videoNode, "length"))
 
query bindValue (":SHOWLEVEL", findNodeText(videoNode, "showlevel"))
 
query bindValue (":FILENAME", path+"/"+basename)
 
query bindValue (":COVERFILE", artworkDir+"/"+coverFilename)
 
query bindValue (":CHILDID", findNodeText(videoNode, "childid"))
 
query bindValue (":BROWSE", findNodeText(videoNode, "browse"))
 
query bindValue (":PLAYCOMMAND", findNodeText(videoNode, "playcommand"))
 
query bindValue (":CATEGORY", 0)
 
 if (query.exec())
 
query prepare ("SELECT intid FROM videometadata WHERE filename = :FILENAME;")
 
 LOG (VB_JOBQUEUE, LOG_INFO, QString("'intid' of inserted video is: %1").arg(intid))
 
 if (nodeList.count()< 1)
 
query bindValue (":CATEGORY", category)
 
query bindValue (":CATEGORY", categoryID)
 
query bindValue (":INTID", intid)
 
if(!query.exec()) MythDB LOG (VB_JOBQUEUE, LOG_INFO, "Fixed the category in the database")
 
 LOG (VB_JOBQUEUE, LOG_INFO, "Import completed OK")
 
static void clearArchiveTable (void)
 
static int doNativeArchive (const QString &jobFile)
 
static int doImportArchive (const QString &inFile, int chanID)
 
static int grabThumbnail (const QString &inFile, const QString &thumbList, const QString &outFile, int frameCount)
 
static int64_t getFrameCount (AVFormatContext *inputFC, int vid_id)
 
static int64_t getCutFrames (const QString &filename, int64_t lastFrame)
 
static int64_t getFrameCount (const QString &filename, float fps)
 
static int getFileInfo (const QString &inFile, const QString &outFile, int lenMethod)
 
static int getDBParamters (const QString &outFile)
 
static int isRemote (const QString &filename)
 
int main (int argc, char **argv)
 

Variables

static QRegExp badChars
 
 else
 
QDomElement channel = doc.createElement("channel")
 
QDomElement recordedmarkup = doc.createElement("recordedmarkup")
 
QDomElement recordedseek = doc.createElement("recordedseek")
 
QString baseName = getBaseName(filename)
 
QString xmlFile = saveDirectory + title + "/" + baseName + ".xml"
 
QTextStream t & f
 
t<< doc.toString(4);f.close();LOG(VB_JOBQUEUE, LOG_INFO, "Copying video file");bool res=copyFile(filename, saveDirectory+title+"/"+baseName);if(!res) return 0;if(QFile::exists(filename+".png")) { LOG(VB_JOBQUEUE, LOG_INFO, "Copying preview image");res=copyFile(filename+".png", saveDirectory+title+"/"+baseName+".png");if(!res) return 0;} LOG(VB_JOBQUEUE, LOG_INFO, "Item Archived OK");return 1;}int NativeArchive::exportVideo(QDomElement &itemNode, const QString &saveDirectory){ QString dbVersion=gCoreContext-> GetSetting ("DBSchemaVer", "")
 
int intID = 0
 
int categoryID = 0
 
QString coverFile = ""
 
QString title = fixFilename(itemNode.attribute("title"))
 
QString filename = itemNode.attribute("filename")
 
bool doDelete = (itemNode.attribute("delete", "0") == "0")
 
QDomElement root = doc.createElement("item")
 
QDomElement video = doc.createElement("videometadata")
 
MSqlQuery query (MSqlQuery::InitCon())
 
QDomElement countries = doc.createElement("countries")
 
QDomElement genres = doc.createElement("genres")
 
QString origFilename = findNodeText(videoNode, "filename")
 
QStringList dirList = origFilename.split("/", QString::SkipEmptyParts)
 
QDir dir
 
QString artworkDir = gCoreContext->GetSetting("VideoArtworkDir")
 
QString archivePath = fileInfo.absolutePath()
 
QString coverFilename = findNodeText(videoNode, "coverfile")
 
 return
 
int intid = 0
 
 nodeList = itemNode.elementsByTagName("genres")
 
QDomElement genresNode = n.toElement()
 
QDomElement countriesNode = n.toElement()
 
QDomElement e = n.toElement()
 
QString category = e.attribute("category")
 

Function Documentation

◆ createISOImage()

static bool createISOImage ( QString &  sourceDirectory)
static

◆ burnISOImage()

static int burnISOImage ( int  mediaType,
bool  bEraseDVDRW,
bool  nativeFormat 
)
static

◆ doBurnDVD()

static int doBurnDVD ( int  mediaType,
bool  bEraseDVDRW,
bool  nativeFormat 
)
static

Definition at line 219 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ bindValue() [1/23]

query bindValue ( ":CHANID"  ,
chanID   
)

◆ bindValue() [2/23]

query bindValue ( ":STARTTIME"  ,
startTime   
)

◆ if() [1/9]

if ( query.  exec) &&query.next()

◆ prepare() [1/9]

query prepare ( "SELECT  chanid,
channum  ,
callsign   
)

◆ setAttribute() [1/6]

channel setAttribute ( "chanid"  ,
chanID   
)

◆ setAttribute() [2/6]

channel setAttribute ( "channum"  ,
"unknown"   
)

◆ setAttribute() [3/6]

channel setAttribute ( "callsign"  ,
"unknown"   
)

◆ setAttribute() [4/6]

channel setAttribute ( "name"  ,
"unknown"   
)

◆ appendChild() [1/5]

root appendChild ( channel  )

◆ LOG() [1/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
"Created a default channel element for "+  title 
)

◆ prepare() [2/9]

query prepare ( "SELECT credits.  person,
role   
)

◆ if() [2/9]

if ( query.  exec) &&query.size()

◆ prepare() [3/9]

query prepare ( "SELECT `system`  )

◆ prepare() [4/9]

query prepare ( "SELECT  chanid,
starttime  ,
mark  ,
type   
)

◆ prepare() [5/9]

query prepare ( "SELECT  chanid,
starttime  ,
mark  ,
offset   
)

◆ f()

QFile f ( xmlFile  )

◆ if() [3/9]

if ( !f.  openQIODevice::WriteOnly)

◆ LOG() [2/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
QString("Archiving %1 (%2), do delete: %3") .arg(title).arg(filename).arg(doDelete  
)

◆ if() [4/9]

if ( title  = = "" || filename == "")

◆ dir()

QDir dir ( saveDirectory+  title)

◆ if() [5/9]

if ( !dir.  exists())

◆ LOG() [3/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
"Creating xml file for "+  title 
)

◆ doc()

QDomDocument doc ( "MYTHARCHIVEITEM"  )

◆ appendChild() [2/5]

doc appendChild ( root  )

◆ setAttribute() [5/6]

root setAttribute ( "type"  ,
"video"   
)

◆ setAttribute() [6/6]

root setAttribute ( "databaseversion"  ,
dbVersion   
)

◆ appendChild() [3/5]

root appendChild ( video  )

◆ prepare() [6/9]

query prepare ( "SELECT  intid,
title  ,
director  ,
plot  ,
rating  ,
inetref  ,
" "  year,
userrating  ,
length  ,
showlevel  ,
filename  ,
coverfile  ,
" "  childid,
browse  ,
playcommand   
)

◆ bindValue() [3/23]

query bindValue ( ":FILENAME"  ,
filename   
)

◆ prepare() [7/9]

query prepare ( "SELECT  intid)

◆ bindValue() [4/23]

query bindValue ( ":INTID"  ,
categoryID   
)

◆ appendChild() [4/5]

root appendChild ( countries  )

◆ bindValue() [5/23]

query bindValue ( ":INTID"  ,
intID   
)

◆ appendChild() [5/5]

root appendChild ( genres  )

◆ fileInfo()

QFileInfo fileInfo ( filename  )

◆ for()

for ( )

◆ LOG() [4/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
"Copying video file"   
)

◆ if() [6/9]

if ( copyFilevideoFile, path+"/"+basename)

◆ setFile() [1/3]

fileInfo setFile ( videoFile  )

Referenced by MFileInfo::init().

◆ setFile() [2/3]

fileInfo setFile ( coverFilename  )

◆ setFile() [3/3]

fileInfo setFile ( archivePath+"/"+  coverFilename)

◆ if() [7/9]

if ( fileInfo.  exists())

◆ query()

◆ prepare() [8/9]

query prepare ( "INSERT INTO videometadata (title, director, plot, rating, inetref, " "year, userrating, length, showlevel, filename, coverfile, " "childid, browse, playcommand, category) " "VALUES(:TITLE,:DIRECTOR,:PLOT,:RATING,:INETREF,:YEAR," ":USERRATING,:LENGTH,:SHOWLEVEL,:FILENAME,:COVERFILE," ":CHILDID,:BROWSE,:PLAYCOMMAND,:CATEGORY);"  )

◆ bindValue() [6/23]

query bindValue ( ":TITLE"  ,
findNodeText(videoNode, "title")   
)

◆ bindValue() [7/23]

query bindValue ( ":DIRECTOR"  ,
findNodeText(videoNode, "director")   
)

◆ bindValue() [8/23]

query bindValue ( ":PLOT"  ,
findNodeText(videoNode, "plot")   
)

◆ bindValue() [9/23]

query bindValue ( ":RATING"  ,
findNodeText(videoNode, "rating")   
)

◆ bindValue() [10/23]

query bindValue ( ":INETREF"  ,
findNodeText(videoNode, "inetref")   
)

◆ bindValue() [11/23]

query bindValue ( ":YEAR"  ,
findNodeText(videoNode, "year")   
)

◆ bindValue() [12/23]

query bindValue ( ":USERRATING"  ,
findNodeText(videoNode, "userrating")   
)

◆ bindValue() [13/23]

query bindValue ( ":LENGTH"  ,
findNodeText(videoNode, "length")   
)

◆ bindValue() [14/23]

query bindValue ( ":SHOWLEVEL"  ,
findNodeText(videoNode, "showlevel")   
)

◆ bindValue() [15/23]

query bindValue ( ":FILENAME"  ,
path+"/"+  basename 
)

◆ bindValue() [16/23]

query bindValue ( ":COVERFILE"  ,
artworkDir+"/"+  coverFilename 
)

◆ bindValue() [17/23]

query bindValue ( ":CHILDID"  ,
findNodeText(videoNode, "childid")   
)

◆ bindValue() [18/23]

query bindValue ( ":BROWSE"  ,
findNodeText(videoNode, "browse")   
)

◆ bindValue() [19/23]

query bindValue ( ":PLAYCOMMAND"  ,
findNodeText(videoNode, "playcommand")   
)

◆ bindValue() [20/23]

query bindValue ( ":CATEGORY"  ,
 
)

◆ if() [8/9]

if ( query.  exec())

◆ prepare() [9/9]

query prepare ( )

◆ LOG() [5/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
QString("'intid' of inserted video is: %1").arg(intid  
)

◆ if() [9/9]

if ( )

◆ bindValue() [21/23]

query bindValue ( ":CATEGORY"  ,
category   
)

◆ bindValue() [22/23]

query bindValue ( ":CATEGORY"  ,
categoryID   
)

◆ bindValue() [23/23]

query bindValue ( ":INTID"  ,
intid   
)

◆ LOG() [6/7]

if (!query.exec()) MythDB LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
"Fixed the category in the database"   
)

◆ LOG() [7/7]

LOG ( VB_JOBQUEUE  ,
LOG_INFO  ,
"Import completed OK  
)

◆ clearArchiveTable()

static void clearArchiveTable ( void  )
static

◆ doNativeArchive()

static int doNativeArchive ( const QString &  jobFile)
static

Definition at line 1518 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ doImportArchive()

static int doImportArchive ( const QString &  inFile,
int  chanID 
)
static

Definition at line 1541 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ grabThumbnail()

static int grabThumbnail ( const QString &  inFile,
const QString &  thumbList,
const QString &  outFile,
int  frameCount 
)
static

Definition at line 1547 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ getFrameCount() [1/2]

static int64_t getFrameCount ( AVFormatContext *  inputFC,
int  vid_id 
)
static

Definition at line 1755 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by getFileInfo().

◆ getCutFrames()

static int64_t getCutFrames ( const QString &  filename,
int64_t  lastFrame 
)
static

Definition at line 1776 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by getFileInfo().

◆ getFrameCount() [2/2]

static int64_t getFrameCount ( const QString &  filename,
float  fps 
)
static

◆ getFileInfo()

static int getFileInfo ( const QString &  inFile,
const QString &  outFile,
int  lenMethod 
)
static

Definition at line 1894 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ getDBParamters()

static int getDBParamters ( const QString &  outFile)
static

Definition at line 2180 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ isRemote()

static int isRemote ( const QString &  filename)
static

Definition at line 2206 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ badChars

QRegExp badChars
static

◆ else

else
Initial value:
{
LOG(VB_JOBQUEUE, LOG_INFO, "Failed to get recorded field list")
LOG(VB_JOBQUEUE, LOG_INFO, "Created a default channel element for "+title)

Definition at line 474 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by TV::ShowOSDAskAllow().

◆ channel

QDomElement channel = doc.createElement("channel")

Definition at line 498 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by add_spacer(), DTVConfParser::AddChannel(), ApplyCachedPids(), ASIRecorder::ASIRecorder(), GuideGrid::ChannelGroupMenu(), ChannelData::channelList(), RemoteEncoder::CheckChannel(), ChannelScanSM::CheckImportedList(), ChannelBase::CreateChannel(), RecorderBase::CreateRecorder(), AudioOutputJACK::DeinterleaveAudio(), SearchStream::doUpdateStreams(), AudioTest::event(), extract_mono_channel(), FillChannelInfo(), HttpStatus::FillChannelInfo(), GuideGrid::fillChannelInfos(), HttpStatus::FillProgramInfo(), ProgLister::FillViewList(), ChannelImporter::FilterRelocatedServices(), ChannelImporter::FilterServices(), ChannelImporter::FormatChannels(), AudioOutputUtil::GeneratePinkFrames(), ZMServer::getMonitorStatus(), AudioOutputOSS::GetOutputSettings(), AudioOutputWin::GetVolumeChannel(), AudioOutputOSS::GetVolumeChannel(), AudioOutputALSA::GetVolumeChannel(), AudioOutputJACK::GetVolumeChannel(), AudioOutputOpenSLES::GetVolumeChannel(), AudioOutputCA::GetVolumeChannel(), AudioOutputPulseAudio::GetVolumeChannel(), ZMServer::handleGetMonitorStatus(), ChannelBase::Init(), SignalMonitor::Init(), EditPowerSearchPopup::initLists(), NuppelVideoRecorder::NuppelVideoRecorder(), Parse::parseRSS(), HttpStatus::PrintEncoderStatus(), GrabberScript::run(), AudioTestThread::run(), ChannelGroupSetting::Save(), ScanDTVTransport::SaveScan(), RemoteEncoder::SetChannel(), AudioTestThread::setChannel(), FirewireDevice::SetChannel(), MusicMetadata::setChannel(), FirewireDevice::SetLastChannel(), StartingChannel::SetSourceID(), AudioOutputWin::SetVolumeChannel(), AudioOutputALSA::SetVolumeChannel(), AudioOutputOSS::SetVolumeChannel(), AudioOutputOpenSLES::SetVolumeChannel(), AudioOutputJACK::SetVolumeChannel(), AudioOutputCA::SetVolumeChannel(), AudioOutputPulseAudio::SetVolumeChannel(), TV::ShowOSDAskAllow(), RSSEditPopup::SlotSave(), EITScanner::StartPassiveScan(), AudioTest::toggle(), FirewireChannel::Tune(), MHIContext::TuneTo(), and Channel::UpdateDBChannel().

◆ recordedmarkup

QDomElement recordedmarkup = doc.createElement("recordedmarkup")

◆ recordedseek

QDomElement recordedseek = doc.createElement("recordedseek")

◆ baseName

QString baseName = getBaseName(filename)

◆ xmlFile

QString xmlFile = saveDirectory + title + "/" + baseName + ".xml"

◆ f

QTextStream t & f

Definition at line 600 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by MPEG2fixup::AddFrame(), AudioOutputGraph::Buffer::Append(), decoder_impl::apply_filter(), decoder_impl::block_decode(), CC608Decoder::BufferCC(), ClassicCommDetector::BuildSceneChangeCommList(), TVRec::ClearFlags(), clipcheck(), ClassicCommDetector::Combine2Maps(), crcinfo(), ExportNative::createConfigFile(), MythBurn::createConfigFile(), XMLParseBase::doLoad(), doLoadScreens(), StatusBox::doMachineStatus(), AvFormatDecoder::filter_max_ch(), MetaIOID3::find(), find_pids_pos(), MetaIOID3::findAPIC(), PrePostRollFlagger::findBreakInrange(), MetaIOID3::findPOPM(), TVRec::FlagToString(), fontToString(), MPEG2fixup::FrameInfo(), ClassicCommDetector::FrameIsInBreakMap(), fromFloat16(), fromFloat32(), fromFloat8(), getDBParamters(), getFileInfo(), MPEG2fixup::GetPoolFrame(), MythCommandLineParser::GetSettingsOverride(), VideoBuffers::GetStatus(), TVRec::HasFlags(), BumpScope::hsv_to_rgb(), lirc_readline(), MythCookieJar::load(), Video::LookupVideo(), mono16_from_monofloat32(), MSqlEscapeAsAQuery(), FileSelector::OKPressed(), ImportRecorder::Open(), parse_settings(), MythUIGuideGrid::parseDefaultCategoryColors(), XMLTVParser::parseFile(), PlayListFile::parseM3U(), MythThemedMenu::parseMenu(), ThemeInfo::parseThemeInfo(), MHParseNode::PrintMe(), decoder_impl::sample_rate(), MythCookieJar::save(), PreviewGenerator::SavePreview(), PlayListFileEntry::setFile(), TVRec::SetFlags(), MSqlQuery::setForwardOnly(), MythNotification::SetFullScreen(), Synaesthesia::setupPalette(), stereo16_from_stereofloat32(), MythDisplayOSX::SwitchToVideoMode(), toFloat16(), toFloat32(), toFloat8(), FileSelector::updateSelectedList(), XMLParseBase::WindowExists(), MPEG2fixup::WriteFrame(), and CC608Decoder::XDSPacketParseProgram().

◆ GetSetting

t<< doc.toString(4); f.close(); LOG(VB_JOBQUEUE, LOG_INFO, "Copying video file"); bool res = copyFile(filename, saveDirectory + title + "/" + fileInfo.fileName()); if (!res) { return 0; } fileInfo.setFile(coverFile); if (fileInfo.exists()) { LOG(VB_JOBQUEUE, LOG_INFO, "Copying cover file"); res = copyFile(coverFile, saveDirectory + title + "/" + fileInfo.fileName()); if (!res) { return 0; } } LOG(VB_JOBQUEUE, LOG_INFO, "Item Archived OK"); return 1;}int NativeArchive::doImportArchive(const QString &xmlFile, int chanID){ QDomDocument doc("mydocument"); QFile file(xmlFile); if (!file.open(QIODevice::ReadOnly)) { LOG(VB_JOBQUEUE, LOG_ERR, "Failed to open file for reading - " + xmlFile); return 1; } if (!doc.setContent(&file)) { file.close(); LOG(VB_JOBQUEUE, LOG_ERR, "Failed to read from xml file - " + xmlFile); return 1; } file.close(); QString docType = doc.doctype().name(); QString type; QString dbVersion; QDomNodeList itemNodeList; QDomNode node; QDomElement itemNode; if (docType == "MYTHARCHIVEITEM") { itemNodeList = doc.elementsByTagName("item"); if (itemNodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_ERR, "Couldn't find an 'item' element in XML file"); return 1; } node = itemNodeList.item(0); itemNode = node.toElement(); type = itemNode.attribute("type"); dbVersion = itemNode.attribute("databaseversion"); LOG(VB_JOBQUEUE, LOG_INFO, QString("Archive DB version: %1, Local DB version: %2") .arg(dbVersion).arg(gCoreContext->GetSetting("DBSchemaVer"))); } else { LOG(VB_JOBQUEUE, LOG_ERR, "Not a native archive xml file - " + xmlFile); return 1; } if (type == "recording") { return importRecording(itemNode, xmlFile, chanID); } if (type == "video") { return importVideo(itemNode, xmlFile); } return 1;}int NativeArchive::importRecording(const QDomElement &itemNode, const QString &xmlFile, int chanID){ LOG(VB_JOBQUEUE, LOG_INFO, QString("Import recording using chanID: %1").arg(chanID)); LOG(VB_JOBQUEUE, LOG_INFO, QString("Archived recording xml file: %1").arg(xmlFile)); QString videoFile = xmlFile.left(xmlFile.length() - 4); QString basename = videoFile; int pos = videoFile.lastIndexOf('/'); if (pos > 0) basename = videoFile.mid(pos + 1); QDomNodeList nodeList = itemNode.elementsByTagName("recorded"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_ERR, "Couldn't find a 'recorded' element in XML file"); return 1; } QDomNode n = nodeList.item(0); QDomElement recordedNode = n.toElement(); QString startTime = findNodeText(recordedNode, "starttime"); MSqlQuery query(MSqlQuery::InitCon()); query.prepare("SELECT * FROM recorded " "WHERE chanid = :CHANID AND starttime = :STARTTIME;"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); if (query.exec()) { if (query.isActive() && query.size()) { LOG(VB_JOBQUEUE, LOG_ERR, "This recording appears to already exist!!"); return 1; } } QString destFile = MythCoreContext::GenMythURL(gCoreContext->GetMasterHostName(), MythCoreContext::GetMasterServerPort(), basename , "Default"); LOG(VB_JOBQUEUE, LOG_INFO, "Copying video file to: " + destFile); if (!copyFile(videoFile, destFile)) return 1; if (QFile::exists(videoFile + ".png")) { LOG(VB_JOBQUEUE, LOG_INFO, "Copying preview image file to: " + destFile + ".png"); if (!copyFile(videoFile + ".png", destFile + ".png")) return 1; } QStringList fieldList; QStringList bindList; QDomNodeList nodes = recordedNode.childNodes(); for (int x = 0; x < nodes.count(); x++) { QDomNode n2 = nodes.item(x); QString field = n2.nodeName(); fieldList.append(field); bindList.append(":" + field.toUpper()); } query.prepare("INSERT INTO recorded (" + fieldList.join(",") + ") " "VALUES (" + bindList.join(",") + ");"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); for (int x = 0; x < fieldList.count(); x++) query.bindValue(bindList.at(x), findNodeText(recordedNode, fieldList.at(x))); if (query.exec()) LOG(VB_JOBQUEUE, LOG_INFO, "Inserted recorded details into database"); else MythDB::DBError("recorded insert", query); nodeList = itemNode.elementsByTagName("recordedmarkup"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_WARNING, "Couldn't find a 'recordedmarkup' element in XML file"); } else { QDomNode n3 = nodeList.item(0); QDomElement markupNode = n3.toElement(); nodeList = markupNode.elementsByTagName("mark"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_WARNING, "Couldn't find any 'mark' elements in XML file"); } else { query.prepare("DELETE FROM recordedmarkup " "WHERE chanid = :CHANID AND starttime = :STARTTIME;"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); if (!query.exec()) MythDB::DBError("recordedmarkup delete", query); for (int x = 0; x < nodeList.count(); x++) { QDomNode n4 = nodeList.item(x); QDomElement e = n4.toElement(); query.prepare("INSERT INTO recordedmarkup (chanid, starttime, " "mark, type, data)" "VALUES(:CHANID,:STARTTIME,:MARK,:TYPE,:DATA);"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); query.bindValue(":MARK", e.attribute("mark")); query.bindValue(":TYPE", e.attribute("type")); query.bindValue(":DATA", e.attribute("data")); if (!query.exec()) { MythDB::DBError("recordedmark insert", query); return 1; } } LOG(VB_JOBQUEUE, LOG_INFO, "Inserted recordedmarkup details into database"); } } nodeList = itemNode.elementsByTagName("recordedseek"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_WARNING, "Couldn't find a 'recordedseek' element in XML file"); } else { QDomNode n5 = nodeList.item(0); QDomElement markupNode = n5.toElement(); nodeList = markupNode.elementsByTagName("mark"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_WARNING, "Couldn't find any 'mark' elements in XML file"); } else { query.prepare("DELETE FROM recordedseek " "WHERE chanid = :CHANID AND starttime = :STARTTIME;"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); query.exec(); for (int x = 0; x < nodeList.count(); x++) { QDomNode n6 = nodeList.item(x); QDomElement e = n6.toElement(); query.prepare("INSERT INTO recordedseek (chanid, starttime, " "mark, offset, type)" "VALUES(:CHANID,:STARTTIME,:MARK,:OFFSET,:TYPE);"); query.bindValue(":CHANID", chanID); query.bindValue(":STARTTIME", startTime); query.bindValue(":MARK", e.attribute("mark")); query.bindValue(":OFFSET", e.attribute("offset")); query.bindValue(":TYPE", e.attribute("type")); if (!query.exec()) { MythDB::DBError("recordedseek insert", query); return 1; } } LOG(VB_JOBQUEUE, LOG_INFO, "Inserted recordedseek details into database"); } } LOG(VB_JOBQUEUE, LOG_INFO, "Import completed OK"); return 0;}int NativeArchive::importVideo(const QDomElement &itemNode, const QString &xmlFile){ LOG(VB_JOBQUEUE, LOG_INFO, "Importing video"); LOG(VB_JOBQUEUE, LOG_INFO, QString("Archived video xml file: %1").arg(xmlFile)); QString videoFile = xmlFile.left(xmlFile.length() - 4); QFileInfo fileInfo(videoFile); QString basename = fileInfo.fileName(); QDomNodeList nodeList = itemNode.elementsByTagName("videometadata"); if (nodeList.count() < 1) { LOG(VB_JOBQUEUE, LOG_ERR, "Couldn't find a 'videometadata' element in XML file"); return 1; } QDomNode n = nodeList.item(0); QDomElement videoNode = n.toElement(); QString path = gCoreContext-> GetSetting("VideoStartupDir")

◆ intID

int intID = 0

◆ categoryID

int categoryID = 0

◆ coverFile

QString coverFile = ""

◆ title

QString title = fixFilename(itemNode.attribute("title"))

Definition at line 633 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by MythDialogBox::AddButton(), EITHelper::AddEIT(), NetTree::AddFileNode(), ProgDetails::addItem(), MythMenu::AddItem(), Scheduler::AddNewRecords(), VideoPlayerCommandPrivate::AddPlayer(), HLSStream::AddSegment(), MetadataImageDownload::addThumb(), VideoListImp::build_generic_tree(), MythPlayer::calcSliderPos(), EITHelper::CompleteEvent(), construct_sort_title(), VideoPlayHandleMedia::Create(), EditMetadataDialog::createBusyDialog(), NetEditorBase::CreateBusyDialog(), GameUI::createBusyDialog(), VideoDialog::createBusyDialog(), MetadataOptions::CreateBusyDialog(), PlaybackBox::createJobMenu(), CreateMetadataXMLItem(), VideoDialog::createOkDialog(), PlaybackBox::createPlayFromMenu(), CreateProgramInfoString(), PlaybackBox::CreateProgramInfoString(), PlaybackBox::createRecordingMenu(), PlaybackBox::createStorageMenu(), NetSearch::customEvent(), NetTree::customEvent(), MetadataOptions::customEvent(), RecMetadataEdit::customEvent(), ZMEvents::deleteAll(), Ripper::deleteExistingTrack(), PrevRecordedList::DeleteOldSeries(), NetSearch::DoSearch(), TV::DoSwitchTitle(), MythSortHelper::doTitle(), TV::DoTogglePictureAttribute(), doUpgradeMusicDatabaseSchema(), AutoExpire::ExpireEpisodesOverMax(), MythWebPage::extension(), VideoMetadata::FilenameToMeta(), ProgramRecPriority::FillList(), TV::FillOSDMenuJumpRec(), GuideUpdateProgramRow::fillProgramRowInfosWith(), Scheduler::FillRecordingDir(), ProgLister::FillViewList(), EditMetadataDialog::fillWidgets(), findAllDBRSS(), findAllDBRSSByType(), findAllDBSearchGrabbers(), findAllDBTreeGrabbers(), findAllDBTreeGrabbersByHost(), MetadataDownload::findBestMatch(), findByURL(), UPNPScanner::FindItems(), FindLyrics(), findSearchGrabberByCommand(), findTreeGrabberByCommand(), MythBDBuffer::GetBDStateSnapshot(), PlaylistEditorView::getCDTracks(), GetDownloadFilename(), getDownloadFilename(), VideoDialog::GetFirstImage(), NetSearch::GetLastResults(), CdDecoder::getMetadata(), NetSearch::GetMoreResults(), RemoteEncoder::GetNextProgram(), TVBrowseHelper::GetNextProgram(), EncoderLink::GetNextProgram(), TVRec::GetNextProgram(), getRSSArticles(), GetThumbnailFilename(), TV::GetTitleDuration(), TV::GetTitleName(), getTreeArticles(), GrabberScript::GrabberScript(), dirhandler::handleFile(), MythMainWindow::HandleMedia(), MainServer::HandleMusicFindLyrics(), MainServer::HandleRecorderQuery(), Scheduler::HandleReschedule(), HLSSegment::HLSSegment(), if(), internal_play_media(), isNewTune(), NetworkControl::listRecordings(), NetworkControl::listSchedule(), PrevRecordedList::LoadDates(), PrevRecordedList::LoadTitles(), GalleryThumbView::MenuAction(), GalleryThumbView::MenuMarked(), GalleryThumbView::MenuPaste(), GalleryThumbView::MenuTransform(), MetadataLookup::MetadataLookup(), MetaIOMP4::metadataSanityCheck(), MythNotification::MythNotification(), MythUISearchDialog::MythUISearchDialog(), FileSelector::OKPressed(), MythDVDStream::OpenFile(), Cddb::Album::operator QString(), TV::OSDDialogEvent(), parse_dvb_event_descriptors(), RSSEditPopup::ParseAndSave(), NewsSite::parseAtom(), BlurayMetadata::ParseDisc(), Parse::ParseItem(), HLSReader::ParseM3U8(), HLSRingBuffer::ParseM3U8(), ShoutCastMetaParser::parseMeta(), ParseMetadataItem(), ParseMetadataMovieNFO(), NewsSite::parseRSS(), HLSRingBuffer::ParseSegmentInformation(), M3U::ParseSegmentInformation(), VideoPlayerCommandPrivate::PlayerFor(), VideoSetupWizard::playVideoTest(), NetSearch::PopulateResultList(), AutoExpire::PrintExpireList(), MetaIOMP4::read(), MetaIOAVFComment::read(), MetaIO::readFromFilename(), RemoteGetRecordingStatus(), Scheduler::ResetDuplicates(), MythBDBuffer::RestoreBDStateSnapshot(), ResultItem::ResultItem(), AllMusic::resync(), Ripper::ScanFinished(), MetaGrabberScript::Search(), VideoDialog::searchComplete(), MetaGrabberScript::SearchSubtitle(), MusicPlayer::sendNotification(), MythUIButtonList::SetLCDTitles(), MythPlayer::SetOSDStatus(), MythUIGuideGrid::SetProgramInfo(), MythMenu::SetSelectedByTitle(), LyricsData::setTitle(), VideoMetadata::SetTitle(), VideoMetadataImp::SetTitle(), MetadataLookup::SetTitle(), ImportMusicDialog::setTitleInitialCap(), ImportMusicDialog::setTitleWordCaps(), TV::ShowLCDChannelInfo(), ChannelImporter::ShowManualChannelPopup(), ProgLister::ShowOldRecordedMenu(), TV::ShowOSDAskAllow(), TV::ShowOSDPromptDeleteRecording(), ScheduleCommon::ShowPrevious(), PlaybackBox::ShowRecordedEpisodes(), ChannelImporter::ShowResolveChannelPopup(), ViewScheduleDiff::showStatus(), ScheduleCommon::ShowUpcoming(), ScheduleEditor::showUpcomingByTitle(), BookmarkEditor::slotFindCategory(), NetSearch::SlotItemChanged(), NetEditorBase::SlotLoadedData(), RSSEditPopup::SlotSave(), WebPage::slotTitleChanged(), MythBrowser::slotTitleChanged(), MythUIWebBrowser::slotTitleChanged(), BurnMenu::start(), LCDProcClient::startChannel(), GameUI::StartGameImageSet(), VideoDialog::StartVideoImageSet(), LCDProcClient::switchToChannel(), LCD::switchToChannel(), MetadataFactory::SynchronousLookup(), VideoSetupWizard::testHDVideo(), VideoSetupWizard::testSDVideo(), TVRec::TuningSignalCheck(), NetTree::UpdateCurrentItem(), ProgFinder::updateInfo(), Scheduler::UpdateManuals(), TV::UpdateOSDStatus(), RecordingSelector::updateRecordingList(), NetTree::UpdateRSS(), NetTree::UpdateTrees(), VideoMetadata::VideoMetadata(), and VideoMetadataImp::VideoMetadataImp().

◆ filename

QString filename = itemNode.attribute("filename")

Definition at line 634 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by MusicFileScanner::AddFileToDB(), VideoPlayerCommandPrivate::AddPlayer(), MPEG2fixup::AddSequence(), VideoPlayerCommandPrivate::AltPlayerFor(), Myth::BackupDatabase(), DBUtil::BackupDB(), MusicFileScanner::BuildFileList(), HTTPRequest::BuildResponseHeader(), AvFormatDecoder::CanHandle(), MetaIOFLACVorbis::changeImageType(), MetaIOID3::changeImageType(), MetaIO::changeImageType(), ImportIconsWizard::checkAndDownload(), CheckedSet(), ImageSearchResultsDialog::cleanCacheDir(), NetBase::CleanCacheDir(), MetadataResultsDialog::cleanCacheDir(), cleanThumbnailCacheDir(), CompleteJob(), ImportCoverArtDialog::copyPressed(), MythMediaBuffer::Create(), FileLogger::create(), VideoPlayMythSystem::Create(), ExportNative::createConfigFile(), MythBurn::createConfigFile(), MusicMetadata::createFromFilename(), MetaIO::createTagger(), DBUtil::CreateTemporaryDBConf(), StreamView::customEvent(), NewsSite::customEvent(), DecoderHandler::customEvent(), MythWebView::customEvent(), MainServer::customEvent(), MythUIImage::customEvent(), MythMainWindow::customEvent(), MusicPlayer::customEvent(), TV::customEvent(), dash_open(), Ripper::deleteExistingTrack(), FileServerHandler::DeleteFile(), RemoteFile::DeleteFile(), PlaybackSock::DeleteFile(), MainServer::DeleteFile(), dexists(), DBUtil::DoBackup(), NetBase::DoDeleteVideo(), DoesFileExist(), MainServer::DoHandleDeleteRecording(), XMLParseBase::doLoad(), doLoadScreens(), NetBase::DoPlayVideo(), MythMainWindow::doRemoteScreenShot(), JobQueue::DoTranscodeThread(), doUpgradeMusicDatabaseSchema(), Content::DownloadFile(), downloadRemoteFile(), PreviewGeneratorQueue::event(), RemoteFile::Exists(), MythWebPage::extension(), UnZip::extractFile(), ExtractImage(), fexists(), StorageGroup::FileExists(), SelectDestination::fileFinderClosed(), FileHash(), FileLogger::FileLogger(), filenameFromMetadata(), FileTransfer::FileTransfer(), Scheduler::FillRecordingDir(), PlaylistEditorView::filterTracks(), MythThemedMenu::findDepends(), MythThemedMenu::findDependsExec(), RemoteFile::FindFile(), StorageGroup::FindFile(), StorageGroup::FindFileDir(), RemoteFile::FindFileList(), TreeEditor::FindGrabberInDB(), SearchEditor::FindGrabberInDB(), FindLyrics(), FlagCommercials(), PreviewGeneratorQueue::GeneratePreviewImage(), get_filename(), MetaIOFLACVorbis::getAlbumArt(), MetaIOID3::getAlbumArt(), MetaIO::getAlbumArt(), MusicMetadata::getAlbumArtFile(), MetaIOFLACVorbis::getAlbumArtList(), MetaIOID3::getAlbumArtList(), MetaIO::getAlbumArtList(), getBaseName(), ThumbFinder::getChapterCount(), VideoDialog::GetCoverImage(), getCutFrames(), ZMServer::getDiskSpace(), RemoteFile::GetFileHash(), PlaybackSock::GetFileHash(), StorageGroup::GetFileInfo(), HTTPLiveStream::GetFilename(), GetFileSize(), PlaybackSock::GetFindFile(), getFrameCount(), VideoDialog::GetImageFromFolder(), GetMarkup(), MetaIO::getMetadata(), MetadataDownload::getMXMLPath(), getNameWithExtension(), MetadataDownload::getNFOPath(), StorageGroup::GetRelativePathname(), PreviewGenerator::GetScreenGrab(), MythCommandLineParser::GetSettingsOverride(), PlaybackSock::GetSGFileQuery(), MusicMetadata::getTagger(), DVDThemeSelector::getThemeList(), MetaIOMP4::getTrackLength(), MetaIOAVFComment::getTrackLength(), MetaIOTagLib::getTrackLength(), VideoSelector::getVideoListFromDB(), FillData::GrabData(), FillData::GrabDataFromFile(), grabThumbnail(), AlbumArtImages::guessImageType(), FileServerHandler::HandleAnnounce(), MainServer::HandleAnnounce(), ChannelData::handleChannels(), FileServerHandler::HandleDeleteFile(), MainServer::HandleDeleteFile(), GameUI::handleDownloadedImages(), EditMetadataDialog::handleDownloadedImages(), FileServerHandler::HandleDownloadFile(), MainServer::HandleDownloadFile(), FileServerHandler::HandleFileQuery(), GameDetailsPopup::handleImage(), handleMedia(), MainServer::HandleMusicTagAddImage(), MainServer::HandlePixmapLastModified(), FileServerHandler::HandleQueryFileExists(), MainServer::HandleQueryFileExists(), FileServerHandler::HandleQueryFileHash(), MainServer::HandleQueryFileHash(), MainServer::HandleQueryFindFile(), MainServer::HandleSGFileQuery(), MusicFileScanner::HasFileChanged(), ifopalette(), MythAVFormatWriter::Init(), MythUIWebBrowser::Init(), MythBurn::isArchiveItemValid(), MusicFileScanner::IsArtFile(), MusicFileScanner::IsMusicFile(), isRemote(), RemoteFile::LastModified(), lirc_getfilename(), lirc_getsocketname(), lirc_open(), lirc_readconfig(), MythImage::Load(), MythCookieJar::load(), MythUIImage::Load(), ImageLoader::LoadAnimatedImage(), SubtitleScreen::LoadAssFonts(), MythDownloadManager::loadCookieJar(), loadDetailsFromXML(), MythBurn::loadEncoderProfiles(), LogViewer::loadFile(), DVDThemeSelector::loadFile(), MythBurn::loadFile(), MenuBase::LoadFileHelper(), MenuBase::LoadFromFile(), ImageLoader::LoadImage(), loadScreens(), main(), makebitmap(), makeFileAccessible(), MythBDDirRead(), MythFileStatFD(), MythUIImage::MythUIImage(), RemoteAVFormatContext::Open(), MainServer::OpenAndUnlink(), UnZip::openArchive(), MetaIOOggVorbis::OpenFile(), MetaIOWavPack::OpenFile(), MythBDBuffer::OpenFile(), MetaIOFLACVorbis::OpenFile(), MetaIOID3::OpenFile(), AvFormatDecoder::OpenFile(), PlayListFile::parse(), parse_dom(), parse_settings(), RSSEditPopup::ParseAndSave(), PlayListFile::parseASX(), UnzipPrivate::parseCentralDirectoryRecord(), XMLParseBase::ParseChildren(), MythUIProgressBar::ParseElement(), MythUIVideo::ParseElement(), MythUIClock::ParseElement(), MythUIShape::ParseElement(), MythUIScrollBar::ParseElement(), MythUISpinBox::ParseElement(), MythUIButton::ParseElement(), MythUIButtonTree::ParseElement(), MythUIStateType::ParseElement(), MythUITextEdit::ParseElement(), MythUIText::ParseElement(), MythUIGuideGrid::ParseElement(), MythScreenType::ParseElement(), MythUIImage::ParseElement(), MythUIWebBrowser::ParseElement(), MythUIType::ParseElement(), MythUIButtonList::ParseElement(), XMLTVParser::parseFile(), MythFontProperties::ParseFromXml(), UnzipPrivate::parseLocalHeaderRecord(), PlayListFile::parseM3U(), MythThemedMenu::parseMenu(), PlayListFile::parsePLS(), XMLParseBase::ParseUIType(), ParseVideoFilename(), pgm_read(), pgm_write(), playDisc(), VideoPlayerCommand::PlayerFor(), VideoPlayerCommandPrivate::PlayerFor(), BrowserApi::PlayFile(), png4file_open(), MythNewsConfig::populateSites(), MythCCExtractorPlayer::Process608Captions(), MythCCExtractorPlayer::Process708Captions(), MythCCExtractorPlayer::ProcessTeletext(), GameHandler::promptForRemoval(), purgeGameDB(), MetaIOMP4::read(), MetaIOAVFComment::read(), MetaIOOggVorbis::read(), MetaIOWavPack::read(), MetaIOFLACVorbis::read(), MetaIOID3::read(), MetaIO::readFromFilename(), MetaIO::readMetadata(), RebuildSeekTable(), RemoteAVFormatContext::RemoteAVFormatContext(), RemoteDownloadFile(), RemoteDownloadFileNow(), RemoteFileWrapper::RemoteFileWrapper(), VideoDialog::RemoteImageCheck(), MythMainWindow::RemoteScreenShot(), MetaIOFLACVorbis::removeAlbumArt(), MetaIOID3::removeAlbumArt(), MetaIO::removeAlbumArt(), MusicFileScanner::RemoveFileFromDB(), VideoScannerThread::removeOrphans(), AllMusic::resync(), Commands::Run(), MetadataImageDownload::run(), ImageLoadThread::run(), RunCCExtract(), runTestDVD(), samepalette(), MythCookieJar::save(), MythDownloadManager::saveCookieJar(), PreviewGenerator::SaveOutFile(), PreviewGenerator::SavePreview(), MythMainWindow::SaveScreenShot(), HLSRingBuffer::SaveToDisk(), ImportMusicDialog::scanDirectory(), ImportCoverArtDialog::scanDirectory(), MythMainWindow::ScreenShot(), PreviewGeneratorQueue::SendEvent(), MythUIWebBrowser::SetDefaultSaveFilename(), MythUIImage::SetFilename(), VideoMetadata::SetFilename(), VideoMetadataImp::SetFilename(), MetadataLookup::SetFilename(), MythGenericTree::SetImage(), MythUIButtonListItem::SetImage(), SetMarkup(), ImageProperties::SetMaskImageFilename(), NetSearch::SetThumbnail(), MythUIType::SetXMLLocation(), NetSearch::ShowMenu(), RSSEditPopup::SlotSave(), VideoDialog::StartVideoImageSet(), ImageLoader::SupportsAnimation(), MetaIOFLACVorbis::TagExists(), MetaIOID3::TagExists(), MetaIO::TagExists(), HLSRingBuffer::TestForHTTPLiveStreaming(), transUnlink(), MainServer::TruncateAndClose(), MusicFileScanner::UpdateFileInDB(), UpdateHashes(), NetTree::UpdateItem(), MusicCommon::updateTrackInfo(), ImportCoverArtDialog::updateTypeSelector(), VideoMetadata::VideoMetadata(), MetaIOMP4::write(), MetaIOFLACVorbis::write(), MetaIOOggVorbis::write(), MetaIOWavPack::write(), MetaIOID3::write(), MetaIOFLACVorbis::writeAlbumArt(), MetaIOID3::writeAlbumArt(), MetaIO::writeAlbumArt(), MPEG2fixup::WriteData(), MPEG2fixup::WriteFrame(), MetaIO::writeVolatileMetadata(), MetaIOID3::writeVolatileMetadata(), MPEG2fixup::WriteYUV(), xfopen(), and XMLTV_generic_config::XMLTV_generic_config().

◆ doDelete

bool doDelete = (itemNode.attribute("delete", "0") == "0")

◆ root

QDomElement root = doc.createElement("item")

◆ video

QDomElement video = doc.createElement("videometadata")

◆ query

Referenced by SingleValueImp::add(), MultiValueImp::add(), FileAssociationsImp::add(), add_genres(), ChannelGroup::AddChannel(), CardUtil::AddChildInput(), MusicFileScanner::AddFileToDB(), AddFileType(), ProfileGroup::addMissingDynamicProfiles(), Scheduler::AddNewRecords(), Scheduler::AddNotListed(), HTTPLiveStream::AddSegment(), Myth::AddStorageGroupDir(), HTTPLiveStream::AddStream(), AllStream::addStream(), ChannelScanSM::AddToList(), LiveTVChain::AppendNewProgram(), ChannelRecPriority::applyChannelRecPriorityChange(), RecordingInfo::ApplyRecordPlayGroupChange(), RecordingInfo::ApplyRecordRecGroupChange(), RecordingInfo::ApplyRecordRecID(), RecordingInfo::ApplyRecordRecTitleChange(), RecordingInfo::ApplyStorageGroupChange(), RecordingInfo::ApplyTranscoderProfileChange(), RecordingInfo::ApplyTranscoderProfileChangeById(), MainServer::BackendQueryDiskSpace(), DBUtil::BackupDB(), UPnpCDSMusic::BindValues(), UPnpCDSVideo::BindValues(), UPnpCDSTv::BindValues(), Scheduler::BuildNewRecordsQueries(), VideoSourceEditor::cardTypesInclude(), change_program(), change_record(), JobQueue::ChangeJobArgs(), JobQueue::ChangeJobCmds(), JobQueue::ChangeJobComment(), JobQueue::ChangeJobFlags(), JobQueue::ChangeJobHost(), JobQueue::ChangeJobStatus(), chanid_available(), ChannelEditor::channelIconImport(), ChannelOptionsCommon::ChannelOptionsCommon(), ChannelScanSM::ChannelScanSM(), check_cardsource(), StorageGroup::CheckAllStorageGroupDirs(), ImportIconsWizard::checkAndDownload(), ChannelBase::CheckChannel(), TVRec::CheckChannelPrefix(), checkChannelPresets(), checkHandlers(), checkImageStoragePaths(), checkInputDisplayNames(), ProgramInfo::CheckProgramIDAuthorities(), DBUtil::CheckRepairStatus(), HTTPLiveStream::CheckStop(), checkStorageGroup(), checkStoragePaths(), CustomPriority::checkSyntax(), CustomEdit::checkSyntax(), DBUtil::CheckTables(), DBUtil::CheckTimeZoneSupport(), ImportMusicDialog::chooseBackend(), Ripper::chooseBackend(), MusicFileScanner::cleanDB(), CleanupTask::CleanupChannelTables(), CleanupTask::CleanupInUsePrograms(), CleanupMyOldInUsePrograms(), CleanupTask::CleanupOldRecordings(), CleanupTask::CleanupOrphanedLiveTV(), CleanupTask::CleanupProgramListings(), CleanupTask::CleanupRecordedTables(), clearAllKeys(), GameHandler::clearAllMetadata(), clearArchiveTable(), EITCache::ClearChannelLocks(), ProgramData::ClearDataByChannel(), ImageDb< ImageAdapterLocal >::ClearDb(), ClearEIT(), ProgramInfo::ClearMarkupMap(), ProgramInfo::ClearPositionMap(), clearRSSArticles(), clearTreeItems(), clone_capturecard(), KeyBindings::CommitAction(), KeyBindings::CommitJumppoint(), CompleteJob(), TV::ConfiguredTunerCards(), DBUtil::CountClients(), DiSEqCDevDevice::CreateById(), CardUtil::CreateCardInput(), ChannelUtil::CreateChannel(), Scheduler::CreateConflictLists(), MusicMetadata::createFromFilename(), MusicMetadata::createFromID(), ImageDb< ImageAdapterLocal >::CreateImage(), CardUtil::CreateInputGroup(), CardInput::CreateNewInputGroupSlot(), PlayGroupEditor::CreateNewPlayBackGroupSlot(), VideoDisplayProfile::CreateProfile(), VideoDisplayProfile::CreateProfileGroup(), StoreOptMixin::CreateRecordingGroup(), SourceUtil::CreateSource(), ImageDbLocal::CreateTable(), PlaybackBox::createTranscodingProfilesMenu(), ChannelEditor::customEvent(), StorageGroupEditor::customEvent(), StatusBox::customEvent(), DatabaseSettings::DatabaseSettings(), MythDB::DBError(), ProgramRecPriority::deactivate(), commDetector2::debugDirectory(), RecordingRule::Delete(), TransportListEditor::Delete(), delete_in_db(), delete_program(), JobQueue::DeleteAllJobs(), SourceUtil::DeleteAllSources(), SmartPlaylistEditor::deleteCategory(), ChannelGroup::DeleteChannel(), ChannelUtil::DeleteChannel(), CustomPriority::deleteClicked(), PhrasePopup::deleteClicked(), PowerSearchPopup::deleteClicked(), VideoDisplayProfile::DeleteDB(), GamePlayerSetting::deleteEntry(), PlayGroupConfig::deleteEntry(), ChannelGroupSetting::deleteEntry(), Ripper::deleteExistingTrack(), RomInfo::DeleteFromDatabase(), VideoMetadataImp::DeleteFromDatabase(), PrevRecordedList::DeleteOldEpisode(), ProgLister::DeleteOldEpisode(), PrevRecordedList::DeleteOldSeries(), ProgLister::DeleteOldSeries(), ProgramData::DeleteOverlaps(), PlaylistContainer::deletePlaylist(), VideoDisplayProfile::DeleteProfileGroup(), LiveTVChain::DeleteProgram(), MainServer::DeleteRecordedFiles(), CustomEdit::deleteRule(), ScanInfo::DeleteScan(), SmartPlaylistEditor::deleteSmartPlaylist(), SourceUtil::DeleteSource(), ChannelImporter::DeleteUnusedTransports(), LiveTVChain::DestroyChain(), MythSessionManager::DestroyUserSession(), DisplayRecGroup(), MainServer::DoDeleteInDB(), StorageGroupEditor::DoDeleteSlot(), StorageGroupDirSetting::DoDeleteSlot(), StatusBox::doListingsStatus(), StatusBox::doLogEntries(), LogCleanerTask::DoRun(), GameScanner::doScanAll(), StatusBox::doScheduleStatus(), NetSearch::DoSearch(), JobQueue::DoTranscodeThread(), StatusBox::doTunerStatus(), SearchStream::doUpdateStreams(), doUpgradeMusicDatabaseSchema(), doUpgradeTVDatabaseSchema(), doUpgradeVideoDatabaseSchema(), ImageDbLocal::DropTable(), MusicMetadata::dumpToDatabase(), AlbumArtImages::dumpToDatabase(), MSqlQuery::exec(), Search::executeSearch(), DiSEqCDevTree::Exists(), ExpertSettingsEditor::ExpertSettingsEditor(), AutoExpire::ExpireEpisodesOverMax(), AutoExpire::ExpireRecordings(), extractDetailsFromFilename(), SingleValueImp::fill_from_db(), MultiValueImp::fill_from_db(), FileAssociationsImp::fill_from_db(), fill_settings(), FillCastMemberList(), RomInfo::fillData(), AutoExpire::FillDBOrdered(), MusicMetadata::fillFieldList(), DTVMultiplex::FillFromDB(), ScanDTVTransport::FillFromDB(), FillGenreList(), ProgLister::FillItemList(), ChannelEditor::fillList(), GameUI::fillNode(), PlaybackBox::fillRecGroupPasswordCache(), Scheduler::FillRecordingDir(), Scheduler::FillRecordListFromDB(), ImportNative::fillSearchList(), Source::fillSelections(), CaptureCard::fillSelections(), Playlist::fillSonglistFromQuery(), Playlist::fillSonglistFromSmartPlaylist(), HttpStatus::FillStatusXML(), ProgLister::FillViewList(), findAllDBRSS(), findAllDBRSSByType(), findAllDBSearchGrabbers(), findAllDBTreeGrabbers(), findAllDBTreeGrabbersByHost(), findByURL(), ChannelUtil::FindChannel(), ImportNative::findChannelMatch(), StorageGroup::FindDirs(), ChannelID::findHighest(), AlbumArtImages::findImages(), FindInDB(), findInDB(), SourceManager::findScriptsDB(), findSearchGrabberByCommand(), findSearchGrabberInDB(), findTreeGrabberByCommand(), findTreeGrabberInDB(), LiveTVChain::FinishedRecording(), RecordingInfo::FinishedRecording(), FlagCommercials(), formattedFieldValue(), VideoMetadataImp::fromDBRow(), FromProgramQuery(), get_atsc_stuff(), get_cardtype(), get_chan_id_from_db_atsc(), get_chan_id_from_db_dtv(), get_chan_id_from_db_dvb(), get_dtv_multiplex(), get_inputtypes(), get_max_chanid(), get_on_input(), get_use_eit(), get_valid_recorder_list(), StatusBox::getActualRecordedBPS(), MusicMetadata::getAlbumId(), CardUtil::GetAllInputInfo(), RomInfo::GetAllRomInfo(), Scheduler::GetAllScheduled(), ExportNative::getArchiveListFromDB(), MusicMetadata::getArtistId(), VideoMetaDataUtil::GetArtPath(), GetArtwork(), ChannelUtil::GetATSCChannel(), ChannelUtil::GetBetterMplexID(), VBox::getBoardInfo(), ChannelUtil::GetCachedPids(), Capture::GetCaptureCard(), Capture::GetCaptureCardList(), GetCategoryList(), Guide::GetCategoryList(), ChannelBase::GetChanID(), DVBChannel::GetChanID(), ChannelUtil::GetChanID(), ChannelUtil::GetChanIDs(), SourceUtil::GetChannelCount(), ChannelUtil::GetChannelCount(), ChannelUtil::GetChannelData(), ChannelGroup::GetChannelGroupId(), ChannelGroup::GetChannelGroupName(), ChannelGroup::GetChannelGroups(), MHIContext::GetChannelIndex(), TVRec::GetChannelInfo(), VBox::getChannels(), SourceUtil::GetChannelSeparator(), ChannelUtil::GetChannelsInternal(), ChannelUtil::GetChannelStringField(), ChannelUtil::GetChannelValueStr(), CardUtil::GetChildInputCount(), CardUtil::GetChildInputIDs(), ChannelUtil::GetConflicting(), CardUtil::GetConflictingInputs(), PlayGroup::GetCount(), HTTPLiveStream::GetDBStatus(), ChannelImporter::GetDBTransports(), ChannelUtil::GetDefaultAuthority(), RecordingRule::GetDefaultFilter(), ImageDb< ImageAdapterLocal >::GetDescendantCount(), ImageDb< ImageAdapterLocal >::GetDescendants(), CardUtil::GetDeviceInputGroup(), TVRec::GetDevices(), ImageDb< ImageAdapterLocal >::GetDirectory(), MusicFileScanner::GetDirectoryId(), MusicMetadata::getDirectoryId(), CardUtil::GetDisplayName(), MythDB::GetError(), ProgramInfo::GetFilesize(), CardUtil::GetFirewireChangerModel(), CardUtil::GetFirewireChangerNode(), V4LChannel::GetFormatForChannel(), MusicMetadata::getGenreId(), getGlobalSetting(), StorageGroup::getGroupDirs(), CardUtil::GetGroupInputIDs(), MainServer::getGuideDataThrough(), Myth::GetHosts(), ChannelUtil::GetIcon(), PlayGroup::GetInitialName(), CardUtil::GetInputGroups(), CardUtil::GetInputIDs(), CardUtil::GetInputInfo(), CardUtil::GetInputTypeNames(), CardUtil::GetInputTypes(), ChannelUtil::GetInputTypes(), InternetContent::GetInternetSearch(), ChannelUtil::GetIPTVTuningData(), JobQueue::GetJobArgs(), JobQueue::GetJobCmd(), JobQueue::GetJobCommand(), JobQueue::GetJobFlags(), JobQueue::GetJobID(), JobQueue::GetJobInfoFromID(), JobQueue::GetJobsInQueue(), JobQueue::GetJobStatus(), MythMainWindow::GetKey(), Myth::GetKeys(), SourceUtil::GetListingsLoginData(), HTTPLiveStream::GetLiveStreamInfoList(), Myth::GetLogs(), ChannelUtil::GetMplexID(), SourceUtil::GetMplexIDs(), Content::GetMusic(), GetMythXMLSearch(), PlayGroup::GetNames(), TVRec::GetNextProgram(), DBEvent::GetOverlappingPrograms(), MythSessionManager::GetPasswordDigest(), DBPerson::GetPersonDB(), VideoDisplayProfile::GetProfileGroupID(), VideoDisplayProfile::GetProfiles(), Dvr::GetProgramCategories(), Guide::GetProgramList(), APHTTPRequest::GetQueryValue(), CardUtil::GetQuickTuning(), ProgDetails::getRatings(), RecordingInfo::GetRecgroupID(), Dvr::GetRecGroupList(), RecordingInfo::GetRecgroupString(), StorageGroup::getRecordingsGroups(), Dvr::GetRecRuleFilterList(), StorageGroup::GetRelativePathname(), getResponse(), RomInfo::GetRomInfoById(), getRSSArticles(), ChannelUtil::GetServiceVersion(), ProfileGroupStorage::GetSetClause(), CodecParamStorage::GetSetClause(), StorageGroupDirStorage::GetSetClause(), VideoSourceDBStorage::GetSetClause(), ChannelDBStorage::GetSetClause(), CaptureCardDBStorage::GetSetClause(), CardInputDBStorage::GetSetClause(), PlayGroup::GetSetting(), LogViewer::getSetting(), MythDB::GetSetting(), Myth::GetSetting(), Myth::GetSettingList(), MythDB::GetSettingOnHost(), MythDB::GetSettings(), GetSettingsMap(), ProgFinder::getShowNames(), RemoteEncoder::GetSignalLockTimeout(), GetSiteList(), PlaylistEditorView::getSmartPlaylistCategories(), SmartPlaylistEditor::getSmartPlaylistCategories(), PlaylistEditorView::getSmartPlaylists(), PlaylistEditorView::getSmartPlaylistTracks(), SourceUtil::GetSourceID(), ChannelUtil::GetSourceID(), CardUtil::GetSourceID(), ChannelUtil::GetSourceIDForChannel(), SourceUtil::GetSourceName(), TVRec::GetStartChannel(), CardUtil::GetStartingChannel(), Myth::GetStorageGroupDirs(), Guide::GetStoredSearches(), DBUtil::GetTables(), RecordingRule::GetTemplateNames(), CardUtil::GetTimeouts(), Dvr::GetTitleInfoList(), Dvr::GetTitleList(), getTreeArticles(), CardUtil::GetTunerTypeFromMultiplex(), ChannelUtil::GetTuningParams(), Content::GetVideo(), Content::GetVideoArtwork(), CardUtil::GetVideoDevices(), VideoSelector::getVideoListFromDB(), Channel::GetVideoMultiplex(), Channel::GetVideoMultiplexList(), Channel::GetVideoSource(), Channel::GetVideoSourceList(), PlayGroupDBStorage::GetWhereClause(), ProfileGroupStorage::GetWhereClause(), RecordingProfileStorage::GetWhereClause(), CodecParamStorage::GetWhereClause(), StorageGroupDirStorage::GetWhereClause(), VideoSourceDBStorage::GetWhereClause(), ChannelDBStorage::GetWhereClause(), CaptureCardDBStorage::GetWhereClause(), CardInputDBStorage::GetWhereClause(), Channel::GetXMLTVIdList(), ImportNative::gotCallsign(), ImportNative::gotChanID(), ImportNative::gotChanNo(), ImportNative::gotName(), ExportNative::handleAddVideo(), MythBurn::handleAddVideo(), ChannelData::handleChannels(), MainServer::HandleGetPendingRecordings(), MainServer::HandleLockTuner(), TVRec::HandlePendingRecordings(), ProgramData::HandlePrograms(), MainServer::HandleQueryFindFile(), Scheduler::HandleReschedule(), MainServer::HandleScanMusic(), TV::HandleStateChange(), HardwareProfile::HardwareProfile(), SourceUtil::HasDigitalChannel(), if(), ChannelBase::InitializeInput(), InitializeMythSchema(), InitializeVideoSchema(), ImportIconsWizard::initialLoad(), Scheduler::InitInputInfoMap(), EditPowerSearchPopup::initLists(), GameHandler::InitMetaDataMap(), insert_dtv_multiplex(), DBPerson::InsertCreditsDB(), DBPerson::InsertDB(), DBEvent::InsertDB(), ProgInfo::InsertDB(), ImageDb< ImageAdapterLocal >::InsertDbImage(), insertGrabberInDB(), InsertInDB(), insertInDB(), DBPerson::InsertPersonDB(), RecordingInfo::InsertProgram(), insertRSSArticleInDB(), insertTreeArticleInDB(), CustomPriority::installClicked(), intResponse(), is_dishnet_eit(), SourceUtil::IsAnySourceScanable(), MythBurn::isArchiveItemValid(), SourceUtil::IsEncoder(), CardUtil::IsInputTypePresent(), isNewTune(), SourceUtil::IsSourceIDValid(), isTreeInUse(), CardUtil::IsTunerShared(), ProgramData::IsUnchanged(), CardUtil::IsUniqueDisplayName(), RecordingRule::IsValid(), MythSessionManager::IsValidUser(), lastUpdate(), CardUtil::LinkInputGroup(), NetworkControl::listChannels(), NetworkControl::listRecordings(), NetworkControl::listSchedule(), StorageGroupEditor::Load(), MultiplexSetting::Load(), RecordingFile::Load(), StorageGroupListEditor::Load(), DiSEqCDevSettings::Load(), PlaylistContainer::load(), InputSelector::Load(), RecordingRule::Load(), GamePlayersList::Load(), ChannelInfo::Load(), SimpleDBStorage::Load(), VideoSourceSelector::Load(), StoreOptMixin::Load(), TransportListEditor::Load(), DiSEqCDevTree::Load(), VideoSourceShow::Load(), TransFreqTableSelector::Load(), FilterOptMixin::Load(), DiSEqCDevSwitch::Load(), ChannelGroupSetting::Load(), DiSEqCDevRotor::Load(), ChannelGroupsSetting::Load(), DiSEqCDevSCR::Load(), DiSEqCDevLNB::Load(), CardInputEditor::Load(), InputGroup::Load(), load_markup_datum(), load_settings(), UPnpCDSMusic::LoadAlbums(), VideoMetadataListManager::loadAllFromDatabase(), UPnpCDSMusic::LoadArtists(), CardInput::loadByInput(), RecordingRule::LoadBySearch(), EITCache::LoadChannel(), MHIContext::LoadChannelCache(), UPnpCDSTv::LoadChannels(), ChannelUtil::LoadChannels(), MythBurn::loadConfiguration(), KeyBindings::LoadContexts(), ScreenSetup::loadData(), SourceSetup::loadData(), UPnpCDSTv::LoadDates(), PrevRecordedList::LoadDates(), VideoDisplayProfile::LoadDB(), SmartPlaylistEditor::loadFromDatabase(), HTTPLiveStream::LoadFromDB(), LoadFromOldRecorded(), LoadFromProgram(), LoadFromRecorded(), UPnpCDSTv::LoadGenres(), UPnpCDSVideo::LoadGenres(), UPnpCDSMusic::LoadGenres(), ChannelInfo::LoadGroupIds(), ChannelInfo::LoadInputIds(), KeyBindings::LoadJumppoints(), ProgDetails::loadPage(), Playlist::loadPlaylist(), Playlist::loadPlaylistByID(), ProgramInfo::LoadProgramFromRecorded(), UPnpCDSTv::LoadRecGroups(), UPnpCDSTv::LoadRecordings(), LoadScan(), LoadScanList(), UPnpCDSVideo::LoadSeasons(), UPnpCDSVideo::LoadSeries(), MythSessionManager::LoadSessions(), MythNews::loadSites(), AllStream::loadStreams(), RecordingRule::LoadTemplate(), UPnpCDSTv::LoadTitles(), PrevRecordedList::LoadTitles(), UPnpCDSMusic::LoadTracks(), UPnpCDSVideo::LoadVideos(), FileServerHandler::LocalFilePath(), MainServer::LocalFilePath(), lock_channel(), lockShutdown(), MythSessionManager::LoginUser(), DatabaseLogger::logqmsg(), SmartPlaylistEditor::lookupCategoryID(), main(), ProgramInfo::MarkAsInUse(), ScanInfo::MarkProcessed(), markTreeUpdated(), markUpdated(), DBEvent::MoveOutOfTheWayDB(), MSqlEscapeAsAQuery(), MusicFileScanner::MusicFileScanner(), needsMFDBReminder(), SmartPlaylistEditor::newCategory(), num_inputs(), Scheduler::OldRecordedFixups(), MSqlDatabase::OpenDatabase(), OverTimeCategory(), IPTVChannelFetcher::ParsePlaylist(), performActualUpdate(), performUpdateSeries(), MusicMetadata::persist(), ProgDetails::PowerPriorities(), DatabaseLogger::prepare(), MSqlQuery::prepare(), WeatherSource::ProbeScript(), EITHelper::ProcessEvents(), GameHandler::processGames(), ProgLister::ProgLister(), program_exists(), ProgramInfo::ProgramInfo(), purgeGameDB(), Scheduler::PutInactiveSlavesToSleep(), ProgramInfo::QueryAutoExpire(), ProgramInfo::QueryAverageAspectRatio(), ProgramInfo::QueryBasename(), ProgramInfo::QueryBDBookmark(), ProgramInfo::QueryBookmarkTimeStamp(), ProgramInfo::QueryCategoryType(), DBUtil::QueryDBMSVersion(), ProgramInfo::QueryDVDBookmark(), FileServerHandler::QueryFileSystems(), ProgramInfo::QueryInUseMap(), ProgramInfo::QueryIsEditing(), ProgramInfo::QueryIsInUse(), ProgramInfo::QueryJobsRunning(), ProgramInfo::QueryKeyFrameInfo(), ProgramInfo::QueryKeyFromPathname(), HouseKeeperTask::QueryLast(), ProgramInfo::QueryMarkup(), ProgramInfo::QueryMarkupMap(), ProgramInfo::QueryMplexID(), ProgramInfo::QueryPositionMap(), RecordingInfo::QueryRecordedIdForKey(), ProgramInfo::QueryRecordedIdFromPathname(), ProgramInfo::QueryRecordingGroup(), ProgramInfo::QueryRecordingGroupPassword(), ProgramInfo::QueryTranscoderID(), ProgramInfo::QueryTranscodeStatus(), ProgramInfo::QueryTuningInfo(), JobQueue::QueueJob(), ImageDb< ImageAdapterLocal >::ReadAllImages(), ImageDb< ImageAdapterLocal >::ReadImages(), RecordingInfo::RecordingInfo(), MythMainWindow::RegisterJump(), MythMainWindow::RegisterKey(), LiveTVChain::ReloadAll(), ReloadBookmark(), SingleValueImp::remove(), MultiValueImp::remove(), FileAssociationsImp::remove(), MusicFileScanner::RemoveFileFromDB(), RemoveFromDB(), removeFromDB(), ImageDb< ImageAdapterLocal >::RemoveFromDB(), removeGrabberFromDB(), ExportNative::removeItem(), Myth::RemoveStorageGroupDir(), HTTPLiveStream::RemoveStream(), AllStream::removeStream(), SmartPlaylistEditor::renameCategory(), DBUtil::RepairTables(), Scheduler::ResetDuplicates(), ResetHomepageFromDB(), AllMusic::resync(), romInDB(), FillData::Run(), DBLoggerThread::run(), runHomepage(), JobQueue::SafeDeleteJob(), ChannelID::Save(), RecordingFile::Save(), PlayGroupConfig::Save(), RecordingRule::Save(), MythUserSession::Save(), SimpleDBStorage::Save(), TransFreqTableSelector::Save(), AutoIncrementSetting::Save(), ChannelGroupSetting::Save(), XMLTVGrabber::Save(), ProgramInfo::SaveAspect(), ProgramInfo::SaveAutoExpire(), ProgramInfo::SaveBasename(), ProgramInfo::SaveBDBookmark(), ProgramInfo::SaveBookmark(), ChannelUtil::SaveCachedPids(), SmartPlaylistEditor::saveClicked(), ProgramInfo::SaveCommFlagged(), ExportNative::saveConfiguration(), MythBurn::saveConfiguration(), ProgramInfo::SaveCutList(), ScreenSetup::saveData(), SourceSetup::saveData(), VideoDisplayProfile::SaveDB(), ProgramInfo::SaveDeletePendingFlag(), ProgramInfo::SaveDVDBookmark(), ProgramInfo::SaveEditing(), ProgramInfo::SaveFilesize(), ProgramInfo::SaveFrameRate(), MusicMetadata::saveHostname(), ProgramInfo::SaveInetRef(), ProgramInfo::SaveMarkup(), ProgramInfo::SaveMarkupMap(), Playlist::savePlaylist(), ProgramInfo::SavePositionMap(), ProgramInfo::SavePositionMapDelta(), ProgramInfo::SavePreserve(), ProgramInfo::SaveResolution(), SaveScan(), ScanDTVTransport::SaveScan(), ChannelInsertInfo::SaveScan(), ProgramInfo::SaveSeasonEpisode(), HTTPLiveStream::SaveSegmentInfo(), MythDB::SaveSettingOnHost(), SmartPLCriteriaRow::saveToDatabase(), RomInfo::SaveToDatabase(), VideoMetadataImp::saveToDatabase(), ProgramInfo::SaveTotalDuration(), ProgramInfo::SaveTotalFrames(), ProgramInfo::SaveTranscodeStatus(), ProgramInfo::SaveVideoProperties(), ProgramInfo::SaveWatched(), MusicFileScanner::ScanArtwork(), MusicFileScanner::ScanMusic(), ProgramRecPriority::scheduleChanged(), VBox::sendQuery(), set_on_input(), SetArtwork(), TVRec::SetChannelInfo(), ChannelUtil::SetChannelValue(), ImageDb< ImageAdapterLocal >::SetCover(), RomInfo::setFavorite(), setGlobalSetting(), ImageDb< ImageAdapterLocal >::SetHidden(), setHttpProxy(), ImageDb< ImageAdapterLocal >::SetOrientation(), ScanWizard::SetPaneDefaults(), PlaybackBox::SetRecGroupPassword(), ChannelUtil::SetServiceVersion(), SmartPLResultViewer::setSQL(), CardUtil::SetStartChannel(), Weather::SetupScreens(), setupTVs(), ChannelUtil::SetVisible(), TVRec::ShouldSwitchToAnotherInput(), PlaybackBox::showGroupFilter(), PlaybackBox::ShowRecGroupChanger(), GeneralSettings::slotDoResetDB(), MythNews::slotNewsRetrieved(), ChannelOptionsCommon::sourceChanged(), HouseKeeper::Start(), EITScanner::StartActiveScan(), RecordingInfo::StartedRecording(), HTTPLiveStream::StopStream(), DiSEqCDevSettings::Store(), DiSEqCDevSwitch::Store(), DiSEqCDevRotor::Store(), DiSEqCDevSCR::Store(), DiSEqCDevLNB::Store(), CustomEdit::storeClicked(), ChannelBase::StoreInputChannels(), CustomEdit::storeRule(), DatabaseLogger::tableExists(), CustomPriority::testSchedule(), ChannelGroup::ToggleChannel(), GuideGrid::toggleChannelFavorite(), MainServer::TruncateAndClose(), DBUtil::TryLockSchema(), CardUtil::UnlinkInputGroup(), unlock_channel(), DBUtil::UnlockSchema(), unlockShutdown(), SearchStream::updateBroadcasters(), ChannelUtil::UpdateChannel(), ChannelUtil::UpdateChannelNumberFromDB(), SearchStream::updateCountries(), DBEvent::UpdateDB(), DBEventEIT::UpdateDB(), ImageDb< ImageAdapterLocal >::UpdateDbImage(), UpdateDBVersionNumber(), updateDiskCount(), updateDisplayRom(), AutoExpire::UpdateDontExpireSet(), UpdateGameCounts(), GameHandler::UpdateGameDB(), updateGameName(), SearchStream::updateGenres(), VideoMetadata::UpdateHashedDBRecord(), UpdateHashes(), UpdateHomepageInDB(), ChannelUtil::UpdateInsertInfoFromDB(), ChannelUtil::UpdateIPTVTuningData(), ProgLister::UpdateKeywordInDB(), SearchStream::updateLanguages(), ProgramInfo::UpdateLastDelete(), HouseKeeperTask::UpdateLastRun(), Scheduler::UpdateManuals(), SmartPlaylistEditor::updateMatches(), Scheduler::UpdateMatches(), Scheduler::UpdateNextRecord(), HTTPLiveStream::UpdatePercentComplete(), RecordingInfo::UpdateRecordingEnd(), GameHandler::updateSettings(), HTTPLiveStream::UpdateSizeInfo(), SourceUtil::UpdateSource(), HTTPLiveStream::UpdateStatus(), HTTPLiveStream::UpdateStatusMessage(), AllStream::updateStream(), MusicMetadata::updateStreamList(), SearchView::updateTracksList(), PlaybackBox::UpdateUILists(), Channel::UpdateVideoSource(), UpgradeGameDatabaseSchema(), UpgradeMusicDatabaseSchema(), UpgradeTVDatabaseSchema(), RecordingRule::UseTempTable(), Scheduler::VerifyCards(), GameHandler::VerifyGameDB(), VideoMetadata::VideoMetadata(), VideoMetadataImp::VideoMetadataImp(), WaitToDelete(), and EITCache::WriteToDB().

◆ countries

QDomElement countries = doc.createElement("countries")

◆ genres

QDomElement genres = doc.createElement("genres")

◆ origFilename

QString origFilename = findNodeText(videoNode, "filename")

◆ dirList

QStringList dirList = origFilename.split("/", QString::SkipEmptyParts)

◆ dir

QDir dir

Definition at line 1167 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by AddMetadataToDir(), VideoListImp::build_generic_tree(), MusicFileScanner::BuildFileList(), GameScannerThread::buildFileList(), BuildFileList(), DirectoryView::Cache(), TV::ChangeAudioSync(), MythPlayer::ChangeCaptionTrack(), TVRec::ChangeChannel(), TV::ChangeSubtitleDelay(), TV::ChangeSubtitleZoom(), TV::ChangeTimeStretch(), MythPlayer::ChangeTrack(), checkPath(), checkTempDirectory(), MythUIHelper::ClearOldImageCache(), CompleteJob(), copy_filtered_tree(), ImageScanThread< ImageDbSg >::CountFiles(), ImageScanThread< ImageDbSg >::CountTree(), PreviewGenerator::CreateAccessibleFilename(), createTempFile(), ThumbFinder::createThumbDir(), DSMCCCache::Directory(), DBUtil::DoBackup(), MainServer::DoDeleteThread(), NativeArchive::doNativeArchive(), GalleryThumbView::Eject(), UnZip::extractAll(), UnzipPrivate::extractFile(), UnZip::extractFile(), UnZip::extractFiles(), ExtractImage(), StorageGroup::FileExists(), SelectDestination::filenameEditLostFocus(), MythUIComboBoxSetting::fillSelectionsFromDir(), fillSelectionsFromDir(), VideoDevice::fillSelectionsFromDir(), VBIDevice::fillSelectionsFromDir(), PlaylistEditorView::filterTracks(), MythDRMDevice::FindBestDevice(), DSMCCCache::FindDir(), DSMCCCache::FindGateway(), AlbumArtImages::findImages(), FindLyrics(), MythUIHelper::FindMenuThemeDir(), TeletextReader::FindPage(), SourceManager::findScripts(), TeletextReader::FindSubPage(), MythUIHelper::FindThemeDir(), for(), MythSystemLegacyWindows::Fork(), MythSystemLegacyUnix::Fork(), HardwareProfile::GenerateUUIDs(), StorageGroup::GetDirFileList(), StorageGroup::GetDirList(), getDownloadFilename(), DSMCCCache::GetDSMObject(), StorageGroup::GetFileInfoList(), StorageGroup::GetFileList(), VideoDialog::GetImageFromFolder(), MythUIHelper::getMythUI(), MythBDInfo::GetNameAndSerialNum(), MythDVDInfo::GetNameAndSerialNum(), MythV4L2M2MContext::GetProfiles(), MythUIHelper::GetThemeCacheDir(), GetThumbnailFilename(), GetVideoDirsByHost(), FileServerHandler::HandleAnnounce(), MainServer::HandleAnnounce(), ImageHandler< ImageDbSg >::HandleCover(), MainServer::HandleMusicFindAlbumArt(), TV::HandleTrackAction(), MythUIWebBrowser::Init(), MythCDROM::inspectImage(), XMLParseBase::LoadBaseTheme(), MythFontManager::LoadFonts(), MythFontManager::LoadFontsFromDirectory(), ThemeUpdateTask::LoadVersion(), ThemeChooser::LoadVersion(), XMLParseBase::LoadWindowFromXML(), LocalSubtitleFilename(), main(), MythBDDirOpen(), MythBurn::MythBurn(), MythDirOpen(), MythDirRead(), MythNews::MythNews(), MythRemoveDirectory(), dirhandler::newDir(), DeviceManager::OpenDevice(), RemoteFile::OpenInternal(), RemoteFile::openSocket(), MythUIGuideGrid::ParseElement(), DirectoryView::PopulateFromCache(), CardUtil::ProbeVideoDevices(), HttpConfig::ProcessRequest(), MythUIHelper::PruneCacheDir(), SourceManager::recurseDirs(), MythUIHelper::RemoveCacheDir(), MythUIHelper::RemoveFromCacheByFile(), DirectoryView::RemoveImage(), ThemeChooser::removeThemeDir(), Device::RemoveThumbs(), Ripper::Ripper(), TVBrowseHelper::run(), MythContextPrivate::saveSettingsCache(), ImageDb< ImageAdapterLocal >::SetCover(), PlaybackSock::SetNextLiveTVDir(), EncoderLink::SetNextLiveTVDir(), TVRec::SetNextLiveTVDir(), AudioOutputALSA::SetParameters(), SetupIconCacheDirectory(), DSMCCCache::Srg(), ImageScanThread< ImageDbSg >::SyncDirectory(), ImageScanThread< ImageDbSg >::SyncSubTree(), TVRec::TuningGetChanNum(), LinuxAVCInfo::Update(), ImportCoverArtDialog::updateStatus(), WeatherSource::WeatherSource(), XMLParseBase::WindowExists(), and DSMCCCache::~DSMCCCache().

◆ artworkDir

QString artworkDir = gCoreContext->GetSetting("VideoArtworkDir")

Definition at line 1189 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by if().

◆ archivePath

QString archivePath = fileInfo.absolutePath()

Definition at line 1192 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by if().

◆ coverFilename

else coverFilename = findNodeText(videoNode, "coverfile")

Definition at line 1194 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by if().

◆ return

return

◆ intid

int intid = 0

◆ nodeList

nodeList = itemNode.elementsByTagName("genres")

◆ genresNode

QDomElement genresNode = n.toElement()

◆ countriesNode

QDomElement countriesNode = n.toElement()

◆ e

QDomElement e = n.toElement()

Definition at line 1413 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by PlayListFile::add(), MultiValueImp::add(), PlaybackBoxHelper::CheckAvailability(), PBHEventHandler::CheckAvailability(), AudioOutputJACK::CloseDevice(), MythMainWindow::closeEvent(), copy_entries(), MessageHandler::customEvent(), LCDProcClient::customEvent(), VideoSetupWizard::customEvent(), WelcomeDialog::customEvent(), CustomEventRelayer::customEvent(), ThemeChooser::customEvent(), MythSystemEventHandler::customEvent(), BrowserApi::customEvent(), ScanMonitor::customEvent(), NetworkControl::customEvent(), MainServer::customEvent(), JobQueue::customEvent(), HouseKeeper::customEvent(), TV::customEvent(), PlaybackBox::Delete(), PlaybackBoxHelper::DeleteRecordings(), do_enhancements(), DecoderBase::DoFastForwardSeek(), XMLParseBase::doLoad(), doLoadScreens(), DecoderBase::DoRewindSeek(), MythTimer::elapsed(), cCiMMI::Enquiry(), DecoderHandler::error(), Decoder::error(), OutputListeners::error(), PBHEventHandler::event(), PreviewGenerator::event(), MythContextPrivate::event(), PreviewGeneratorQueue::event(), MythMainWindow::event(), TV::event(), MythMainWindow::eventFilter(), TV::eventFilter(), UnzipPrivate::extractFile(), MultiValueImp::fill_from_db(), NativeArchive::findNodeText(), Parse::GetEnclosures(), getFileDetails(), NuppelDecoder::GetFrame(), MythUIStateTracker::GetFreshState(), DecoderBase::GetKey(), PlaybackBoxHelper::GetPreviewImage(), PreviewGeneratorQueue::GetPreviewImage(), VBox::getStrValue(), hamm24(), incomingCustomEvent(), UPnpDeviceDesc::InternalLoad(), AudioOutputJACK::JackCallback(), MythMainWindow::keyLongPressFilter(), StorageGroupEditor::keyPressEvent(), DiseqcConfigBase::keyPressEvent(), ViewScheduleDiff::keyPressEvent(), PrevRecordedList::keyPressEvent(), ProgLister::keyPressEvent(), MythUIVirtualKeyboard::keyPressEvent(), MusicCommon::keyPressEvent(), PlaybackProfileItemConfig::keyPressEvent(), StandardSettingDialog::keyPressEvent(), MythLocale::LoadDefaultsFromXML(), loadDetailsFromXML(), MythBurn::loadEncoderProfiles(), MythUIVirtualKeyboard::loadKeyDefinitions(), loadScreen(), PlaybackBoxHelper::LocateArtwork(), MediaMonitor::mediaStatusChanged(), MythMainWindow::mouseTimeout(), MThreadPool::NotifyAvailable(), NuppelDecoder::OpenFile(), AudioOutputBase::OutputAudioLoop(), OutputEvent::OutputEvent(), parse_dom(), PlayListFile::parseASX(), UPNPScanner::ParseDevice(), Parse::ParseItem(), MythUIVirtualKeyboard::parseKey(), PlayListFile::parseM3U(), MythThemedMenu::parseMenu(), PlayListFile::parsePLS(), NewsSite::parseRSS(), UPNPScanner::ParseService(), UPNPScanner::ParseServiceList(), ThemeInfo::parseThemeInfo(), PictureMetaData::PictureMetaData(), DeviceReadBuffer::Poll(), DecoderBase::PosMapFromDb(), DecoderBase::PosMapFromEnc(), post_event(), NAMThread::PostEvent(), HttpStatus::PrintBackends(), HttpStatus::PrintEncoderStatus(), HttpStatus::PrintFrontends(), HttpStatus::PrintJobQueue(), HttpStatus::PrintMachineInfo(), HttpStatus::PrintMiscellaneousInfo(), HttpStatus::PrintScheduled(), MythUDPListener::Process(), UPnpDeviceDesc::ProcessDeviceList(), JumpToChannel::ProcessEntry(), UPnpDeviceDesc::ProcessIconList(), MenuBase::ProcessIncludes(), TV::ProcessKeypressOrGesture(), UPNPSubscription::ProcessRequest(), UPnpDeviceDesc::ProcessServiceList(), HTTPRequest::ProcessSOAPPayload(), avfDecoder::run(), CdDecoder::run(), PreviewGeneratorQueue::SendEvent(), SOAPClient::SendSOAPRequest(), set_decode_parms(), VBoxIP::setEnabled(), VBoxTunerIndex::setEnabled(), SetMarkup(), MenuBase::Show(), NetStream::slotSslErrors(), AudioOutputBase::Status(), PlaybackBoxHelper::StopRecording(), LiveTVChain::SwitchTo(), SysEventHandleAction(), TV::TranslateGesture(), MythMainWindow::TranslateKeyPress(), TV::TranslateKeyPressOrGesture(), PlaybackBoxHelper::UndeleteRecording(), PlaybackBoxHelper::UpdateFreeSpace(), and XMLParseBase::WindowExists().

◆ category

QString category = e.attribute("category")

Definition at line 1415 of file mythplugins/mytharchive/mytharchivehelper/main.cpp.

Referenced by EditMetadataDialog::AddCategory(), EITHelper::AddEIT(), PlaylistEditorView::customEvent(), SmartPlaylistEditor::deleteCategory(), PlaylistEditorView::deleteSmartPlaylist(), SmartPlaylistEditor::deleteSmartPlaylist(), SmartPlaylistEditor::editSmartPlaylist(), TV::FillOSDMenuJumpRec(), Playlist::fillSonglistFromSmartPlaylist(), ProgLister::FillViewList(), FindInDB(), SingleValue::get(), SmartPlaylistEditor::getCategoryAndName(), RemoteEncoder::GetNextProgram(), TVBrowseHelper::GetNextProgram(), EncoderLink::GetNextProgram(), TVRec::GetNextProgram(), VideoSelector::getVideoListFromDB(), MainServer::HandleRecorderQuery(), EditPowerSearchPopup::initLists(), insertInDB(), InsertInDB(), PlaylistEditorView::keyPressEvent(), MythNewsConfig::loadData(), SmartPlaylistEditor::loadFromDatabase(), RecordingRule::LoadTemplate(), SmartPlaylistEditor::lookupCategoryID(), RecordingRule::MakeTemplate(), matchesGroup(), TV::MenuItemDisplayCutlist(), TV::MenuItemDisplayPlayback(), SmartPlaylistEditor::newCategory(), SmartPlaylistEditor::newSmartPlaylist(), ProgramRecPriority::newTemplate(), RemoveFromDB(), SmartPlaylistEditor::renameCategory(), SmartPlaylistEditor::saveClicked(), BookmarkEditor::slotCategoryFound(), BookmarkManager::slotDoDeleteCurrent(), BookmarkManager::slotDoDeleteMarked(), PlaylistEditorView::smartPLChanged(), SmartPlaylistEditor::startDeleteCategory(), and VideoMetadata::VideoMetadata().