MythTV
master
|
#include <libmythmetadata/metadatagrabber.h>
Public Member Functions | |
MetaGrabberScript ()=default | |
MetaGrabberScript (const QDomElement &dom) | |
MetaGrabberScript (const QString &path) | |
MetaGrabberScript (QString path, const QDomElement &dom) | |
MetaGrabberScript (const MetaGrabberScript &)=default | |
MetaGrabberScript & | operator= (const MetaGrabberScript &other) |
bool | IsValid (void) const |
QString | GetCommand (void) const |
QString | GetRelPath (void) const |
QString | GetPath (void) const |
QString | GetName (void) const |
QString | GetAuthor (void) const |
QString | GetThumbnail (void) const |
GrabberType | GetType (void) const |
QString | GetTypeString (void) const |
QString | GetDescription (void) const |
bool | Accepts (const QString &tag) const |
void | toMap (InfoMap &metadataMap) const |
bool | Test (void) |
MetadataLookupList | Search (const QString &title, MetadataLookup *lookup, bool passseas=true) |
MetadataLookupList | SearchSubtitle (const QString &title, const QString &subtitle, MetadataLookup *lookup, bool passseas=true) |
MetadataLookupList | SearchSubtitle (const QString &inetref, const QString &title, const QString &subtitle, MetadataLookup *lookup, bool passseas=true) |
MetadataLookupList | LookupData (const QString &inetref, MetadataLookup *lookup, bool passseas=true) |
MetadataLookupList | LookupData (const QString &inetref, int season, int episode, MetadataLookup *lookup, bool passseas=true) |
MetadataLookupList | LookupCollection (const QString &collectionref, MetadataLookup *lookup, bool passseas=true) |
Static Public Member Functions | |
static GrabberList | GetList (bool refresh=false) |
static GrabberList | GetList (const QString &type, bool refresh=false) |
static GrabberList | GetList (GrabberType type, bool refresh=false) |
static MetaGrabberScript | GetGrabber (GrabberType defaultType, const MetadataLookup *lookup=nullptr) |
static MetaGrabberScript | GetType (const QString &type) |
static MetaGrabberScript | GetType (GrabberType type) |
static MetaGrabberScript | FromTag (const QString &tag, bool absolute=false) |
static MetaGrabberScript | FromInetref (const QString &inetref, bool absolute=false) |
static QString | CleanedInetref (const QString &inetref) |
Private Member Functions | |
void | ParseGrabberVersion (const QDomElement &item) |
MetadataLookupList | RunGrabber (const QStringList &args, MetadataLookup *lookup, bool passseas) |
Static Private Member Functions | |
static void | SetDefaultArgs (QStringList &args) |
Private Attributes | |
QString | m_name |
QString | m_author |
QString | m_thumbnail |
QString | m_fullcommand |
QString | m_command |
GrabberType | m_type {kGrabberInvalid} |
QString | m_typestring |
QString | m_description |
QStringList | m_accepts |
float | m_version {0.0} |
bool | m_valid {false} |
Definition at line 29 of file metadatagrabber.h.
|
default |
|
explicit |
Definition at line 283 of file metadatagrabber.cpp.
|
explicit |
Definition at line 288 of file metadatagrabber.cpp.
MetaGrabberScript::MetaGrabberScript | ( | QString | path, |
const QDomElement & | dom | ||
) |
Definition at line 277 of file metadatagrabber.cpp.
|
default |
MetaGrabberScript & MetaGrabberScript::operator= | ( | const MetaGrabberScript & | other | ) |
Definition at line 327 of file metadatagrabber.cpp.
|
static |
Definition at line 58 of file metadatagrabber.cpp.
Referenced by FromTag(), GetList(), GetType(), and GrabberSettings::Load().
|
static |
Definition at line 63 of file metadatagrabber.cpp.
|
static |
Definition at line 73 of file metadatagrabber.cpp.
|
static |
Definition at line 143 of file metadatagrabber.cpp.
Referenced by MetadataDownload::handleGame(), MetadataDownload::handleMovie(), and MetadataDownload::handleTelevision().
|
static |
Definition at line 173 of file metadatagrabber.cpp.
Referenced by GuessLookupType().
|
static |
Definition at line 183 of file metadatagrabber.cpp.
|
static |
Definition at line 214 of file metadatagrabber.cpp.
Referenced by FromInetref().
|
static |
Definition at line 244 of file metadatagrabber.cpp.
Referenced by GetGrabber(), and GuessLookupType().
|
static |
Definition at line 265 of file metadatagrabber.cpp.
Referenced by GuessLookupType(), LookupCollection(), and LookupData().
|
inline |
Definition at line 55 of file metadatagrabber.h.
Referenced by FromInetref(), GetGrabber(), GetList(), GetType(), GuessLookupType(), MetadataDownload::handleGame(), MetadataDownload::handleMovie(), and MetadataDownload::handleTelevision().
|
inline |
Definition at line 57 of file metadatagrabber.h.
QString MetaGrabberScript::GetRelPath | ( | void | ) | const |
Definition at line 434 of file metadatagrabber.cpp.
|
inline |
Definition at line 59 of file metadatagrabber.h.
|
inline |
Definition at line 61 of file metadatagrabber.h.
|
inline |
Definition at line 62 of file metadatagrabber.h.
|
inline |
Definition at line 63 of file metadatagrabber.h.
|
inline |
Definition at line 64 of file metadatagrabber.h.
Referenced by MetadataDownload::GetGameGrabber(), GetGrabber(), MetadataDownload::GetMovieGrabber(), MetadataDownload::GetTelevisionGrabber(), GetType(), and MetadataDownload::handleRecordingGeneric().
|
inline |
Definition at line 65 of file metadatagrabber.h.
|
inline |
Definition at line 66 of file metadatagrabber.h.
|
inline |
Definition at line 68 of file metadatagrabber.h.
void MetaGrabberScript::toMap | ( | InfoMap & | metadataMap | ) | const |
Definition at line 443 of file metadatagrabber.cpp.
bool MetaGrabberScript::Test | ( | void | ) |
Definition at line 374 of file metadatagrabber.cpp.
Referenced by MetadataDownload::runGrabberTest().
MetadataLookupList MetaGrabberScript::Search | ( | const QString & | title, |
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
Definition at line 462 of file metadatagrabber.cpp.
Referenced by MetadataDownload::handleGame(), MetadataDownload::handleMovie(), MetadataDownload::handleRecordingGeneric(), and MetadataDownload::handleTelevision().
MetadataLookupList MetaGrabberScript::SearchSubtitle | ( | const QString & | title, |
const QString & | subtitle, | ||
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
Definition at line 474 of file metadatagrabber.cpp.
Referenced by MetadataDownload::handleTelevision().
MetadataLookupList MetaGrabberScript::SearchSubtitle | ( | const QString & | inetref, |
const QString & | title, | ||
const QString & | subtitle, | ||
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
MetadataLookupList MetaGrabberScript::LookupData | ( | const QString & | inetref, |
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
Definition at line 503 of file metadatagrabber.cpp.
Referenced by MetadataDownload::handleGame(), MetadataDownload::handleMovie(), and MetadataDownload::handleTelevision().
MetadataLookupList MetaGrabberScript::LookupData | ( | const QString & | inetref, |
int | season, | ||
int | episode, | ||
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
Definition at line 515 of file metadatagrabber.cpp.
MetadataLookupList MetaGrabberScript::LookupCollection | ( | const QString & | collectionref, |
MetadataLookup * | lookup, | ||
bool | passseas = true |
||
) |
Definition at line 530 of file metadatagrabber.cpp.
Referenced by MetadataDownload::handleTelevision().
|
private |
Definition at line 348 of file metadatagrabber.cpp.
Referenced by MetaGrabberScript().
|
private |
Definition at line 391 of file metadatagrabber.cpp.
Referenced by LookupCollection(), LookupData(), Search(), and SearchSubtitle().
|
staticprivate |
Definition at line 454 of file metadatagrabber.cpp.
Referenced by LookupCollection(), LookupData(), Search(), and SearchSubtitle().
|
private |
Definition at line 81 of file metadatagrabber.h.
Referenced by MetaGrabberScript(), operator=(), ParseGrabberVersion(), and toMap().
|
private |
Definition at line 82 of file metadatagrabber.h.
Referenced by operator=(), ParseGrabberVersion(), and toMap().
|
private |
Definition at line 83 of file metadatagrabber.h.
Referenced by operator=(), ParseGrabberVersion(), and toMap().
|
private |
Definition at line 84 of file metadatagrabber.h.
Referenced by GetRelPath(), MetaGrabberScript(), operator=(), RunGrabber(), and Test().
|
private |
Definition at line 85 of file metadatagrabber.h.
Referenced by GetList(), operator=(), ParseGrabberVersion(), RunGrabber(), and toMap().
|
private |
Definition at line 86 of file metadatagrabber.h.
Referenced by operator=(), and ParseGrabberVersion().
|
private |
Definition at line 87 of file metadatagrabber.h.
Referenced by operator=(), ParseGrabberVersion(), and toMap().
|
private |
Definition at line 88 of file metadatagrabber.h.
Referenced by operator=(), ParseGrabberVersion(), and toMap().
|
private |
Definition at line 89 of file metadatagrabber.h.
Referenced by operator=(), and ParseGrabberVersion().
|
private |
Definition at line 90 of file metadatagrabber.h.
Referenced by operator=(), ParseGrabberVersion(), and toMap().
Definition at line 91 of file metadatagrabber.h.
Referenced by MetaGrabberScript(), operator=(), and Test().