MythTV  master
Macros | Functions | Variables
metadatacommon.cpp File Reference
#include <QCoreApplication>
#include <QLocale>
#include <QMetaType>
#include <utility>
#include "rssparse.h"
#include "programinfo.h"
#include "mythcorecontext.h"
#include "metadatacommon.h"
#include "mythlogging.h"
#include "mythlocale.h"
#include "mythmiscutil.h"
Include dependency graph for metadatacommon.cpp:

Go to the source code of this file.

Macros

#define D(i, j)   d[(i) * n + (j)]
 

Functions

MetadataLookupLookupFromProgramInfo (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)
 
MetadataLookupParseMetadataItem (const QDomElement &item, MetadataLookup *lookup, bool passseas)
 
MetadataLookupParseMetadataMovieNFO (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> >()
 

Macro Definition Documentation

◆ D

#define D (   i,
 
)    d[(i) * n + (j)]

Function Documentation

◆ LookupFromProgramInfo()

MetadataLookup* LookupFromProgramInfo ( ProgramInfo pginfo)

Definition at line 409 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ CreateMetadataXML() [1/3]

QDomDocument CreateMetadataXML ( MetadataLookupList  list)

Definition at line 438 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ CreateMetadataXML() [2/3]

QDomDocument CreateMetadataXML ( MetadataLookup lookup)

Definition at line 454 of file metadatacommon.cpp.

◆ CreateMetadataXML() [3/3]

QDomDocument CreateMetadataXML ( ProgramInfo pginfo)

Definition at line 466 of file metadatacommon.cpp.

◆ CreateMetadataXMLItem()

void CreateMetadataXMLItem ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 480 of file metadatacommon.cpp.

Referenced by CreateMetadataXML().

◆ AddCertifications()

void AddCertifications ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 832 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddCategories()

void AddCategories ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 846 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddStudios()

void AddStudios ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 864 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ AddCountries()

void AddCountries ( MetadataLookup lookup,
QDomElement  placetoadd,
QDomDocument  docroot 
)

Definition at line 881 of file metadatacommon.cpp.

Referenced by CreateMetadataXMLItem().

◆ ParseMetadataItem()

MetadataLookup* ParseMetadataItem ( const QDomElement &  item,
MetadataLookup lookup,
bool  passseas 
)

◆ ParseMetadataMovieNFO()

MetadataLookup* ParseMetadataMovieNFO ( const QDomElement &  item,
MetadataLookup lookup 
)

Definition at line 1122 of file metadatacommon.cpp.

Referenced by MetadataDownload::readNFO().

◆ ParsePeople()

PeopleMap ParsePeople ( const QDomElement &  people)

Definition at line 1199 of file metadatacommon.cpp.

Referenced by ParseMetadataItem().

◆ ParseArtwork()

ArtworkMap ParseArtwork ( const QDomElement &  artwork)

Definition at line 1257 of file metadatacommon.cpp.

Referenced by ParseMetadataItem().

◆ editDistance()

int editDistance ( const QString &  s,
const QString &  t 
)

Definition at line 1311 of file metadatacommon.cpp.

Referenced by nearestName().

◆ nearestName()

QString nearestName ( const QString &  actual,
const QStringList &  candidates 
)

Definition at line 1343 of file metadatacommon.cpp.

Referenced by MetadataDownload::findBestMatch().

◆ RFC822TimeToQDateTime()

QDateTime RFC822TimeToQDateTime ( const QString &  t)

Definition at line 1374 of file metadatacommon.cpp.

Referenced by Parse::ParseItem(), and ParseMetadataItem().

Variable Documentation

◆ x0

int x0 = qRegisterMetaType< RefCountHandler<MetadataLookup> >()
static

Definition at line 15 of file metadatacommon.cpp.