MythTV
master
|
#include <algorithm>
#include <utility>
#include <QCoreApplication>
#include <QLocale>
#include <QMetaType>
#include <QRegularExpression>
#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 410 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
QDomDocument CreateMetadataXML | ( | MetadataLookupList | list | ) |
Definition at line 440 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
QDomDocument CreateMetadataXML | ( | MetadataLookup * | lookup | ) |
Definition at line 453 of file metadatacommon.cpp.
QDomDocument CreateMetadataXML | ( | ProgramInfo * | pginfo | ) |
Definition at line 465 of file metadatacommon.cpp.
void CreateMetadataXMLItem | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 480 of file metadatacommon.cpp.
Referenced by CreateMetadataXML().
void AddCertifications | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 831 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddCategories | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 845 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddStudios | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 862 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
void AddCountries | ( | MetadataLookup * | lookup, |
QDomElement | placetoadd, | ||
QDomDocument | docroot | ||
) |
Definition at line 878 of file metadatacommon.cpp.
Referenced by CreateMetadataXMLItem().
MetadataLookup* ParseMetadataItem | ( | const QDomElement & | item, |
MetadataLookup * | lookup, | ||
bool | passseas | ||
) |
Definition at line 894 of file metadatacommon.cpp.
Referenced by MetadataDownload::readMXML(), MetadataDownload::runGrabber(), and MetaGrabberScript::RunGrabber().
MetadataLookup* ParseMetadataMovieNFO | ( | const QDomElement & | item, |
MetadataLookup * | lookup | ||
) |
Definition at line 1153 of file metadatacommon.cpp.
Referenced by MetadataDownload::readNFO().
PeopleMap ParsePeople | ( | const QDomElement & | people | ) |
Definition at line 1236 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
ArtworkMap ParseArtwork | ( | const QDomElement & | artwork | ) |
Definition at line 1294 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
int editDistance | ( | const QString & | s, |
const QString & | t | ||
) |
Definition at line 1348 of file metadatacommon.cpp.
Referenced by nearestName().
QString nearestName | ( | const QString & | actual, |
const QStringList & | candidates | ||
) |
Definition at line 1387 of file metadatacommon.cpp.
Referenced by MetadataDownload::findBestMatch().
QDateTime RFC822TimeToQDateTime | ( | const QString & | t | ) |
Definition at line 1418 of file metadatacommon.cpp.
Referenced by ParseMetadataItem().
|
static |
Definition at line 19 of file metadatacommon.cpp.