MythTV
master
|
#include <algorithm>
#include <utility>
#include <QCoreApplication>
#include <QLocale>
#include <QMetaType>
#include "libmythbase/mythcorecontext.h"
#include "libmythbase/mythlocale.h"
#include "libmythbase/mythlogging.h"
#include "libmythbase/mythmiscutil.h"
#include "libmythbase/programinfo.h"
#include "libmythbase/rssparse.h"
#include "metadatacommon.h"
Go to the source code of this file.
Macros | |
#define | D(i, j) d[(i) * n + (j)] |
Functions | |
MetadataLookup * | LookupFromProgramInfo (ProgramInfo *pginfo) |
QDomDocument | CreateMetadataXML (MetadataLookupList list) |
QDomDocument | CreateMetadataXML (MetadataLookup *lookup) |
QDomDocument | CreateMetadataXML (ProgramInfo *pginfo) |
void | CreateMetadataXMLItem (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot) |
void | AddCertifications (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot) |
void | AddCategories (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot) |
void | AddStudios (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot) |
void | AddCountries (MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot) |
MetadataLookup * | ParseMetadataItem (const QDomElement &item, MetadataLookup *lookup, bool passseas) |
MetadataLookup * | ParseMetadataMovieNFO (const QDomElement &item, MetadataLookup *lookup) |
PeopleMap | ParsePeople (const QDomElement &people) |
ArtworkMap | ParseArtwork (const QDomElement &artwork) |
int | editDistance (const QString &s, const QString &t) |
QString | nearestName (const QString &actual, const QStringList &candidates) |
QDateTime | RFC822TimeToQDateTime (const QString &t) |
Variables | |
static int | x0 = qRegisterMetaType< RefCountHandler<MetadataLookup> >() |
#define D | ( | i, | |
j | |||
) | d[(i) * n + (j)] |
MetadataLookup* LookupFromProgramInfo | ( | ProgramInfo * | pginfo | ) |
Definition at line 409 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
QDomDocument CreateMetadataXML | ( | MetadataLookupList | list | ) |
Definition at line 439 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
QDomDocument CreateMetadataXML | ( | MetadataLookup * | lookup | ) |
Definition at line 452 of file metadatacommon.cpp.
QDomDocument CreateMetadataXML | ( | ProgramInfo * | pginfo | ) |
Definition at line 464 of file metadatacommon.cpp.
void CreateMetadataXMLItem | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 479 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
void AddCertifications | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 830 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddCategories | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 844 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddStudios | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 861 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddCountries | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 877 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
MetadataLookup* ParseMetadataItem | ( | const QDomElement & | item, |
MetadataLookup * | lookup, | ||
bool | passseas | ||
) |
Definition at line 893 of file metadatacommon.cpp.
Referenced by MetadataDownload::readMXML(), MetadataDownload::runGrabber(), and MetaGrabberScript::RunGrabber().
MetadataLookup* ParseMetadataMovieNFO | ( | const QDomElement & | item, |
MetadataLookup * | lookup | ||
) |
Definition at line 1152 of file metadatacommon.cpp.
Referenced by MetadataDownload::readNFO().
PeopleMap ParsePeople | ( | const QDomElement & | people | ) |
Definition at line 1235 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
ArtworkMap ParseArtwork | ( | const QDomElement & | artwork | ) |
Definition at line 1293 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
int editDistance | ( | const QString & | s, |
const QString & | t | ||
) |
Definition at line 1347 of file metadatacommon.cpp.
Referenced by nearestName().
QString nearestName | ( | const QString & | actual, |
const QStringList & | candidates | ||
) |
Definition at line 1386 of file metadatacommon.cpp.
Referenced by MetadataDownload::findBestMatch().
QDateTime RFC822TimeToQDateTime | ( | const QString & | t | ) |
Definition at line 1417 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
|
static |
Definition at line 18 of file metadatacommon.cpp.