MythTV  master
Classes | Macros | Variables
metadatagrabber.cpp File Reference
#include <QDateTime>
#include <QDir>
#include <QMap>
#include <QMutex>
#include <QMutexLocker>
#include <QRegExp>
#include <utility>
#include "metadatagrabber.h"
#include "metadatacommon.h"
#include "mythsystemlegacy.h"
#include "exitcodes.h"
#include "mythdate.h"
#include "mythdirs.h"
#include "mythlogging.h"
#include "mythcorecontext.h"
Include dependency graph for metadatagrabber.cpp:

Go to the source code of this file.

Classes

struct  GrabberOpts
 

Macros

#define LOC   QString("Metadata Grabber: ")
 
#define kGrabberRefresh   60
 

Variables

static GrabberList grabberList
 
static QMutex grabberLock
 
static QDateTime grabberAge
 
static const QMap< GrabberType, GrabberOptsgrabberTypes
 
static QMap< QString, GrabberTypegrabberTypeStrings
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("Metadata Grabber: ")

Definition at line 20 of file metadatagrabber.cpp.

◆ kGrabberRefresh

#define kGrabberRefresh   60

Definition at line 21 of file metadatagrabber.cpp.

Variable Documentation

◆ grabberList

GrabberList grabberList
static

Definition at line 23 of file metadatagrabber.cpp.

Referenced by MetaGrabberScript::GetList().

◆ grabberLock

QMutex grabberLock
static

Definition at line 24 of file metadatagrabber.cpp.

Referenced by MetaGrabberScript::GetList().

◆ grabberAge

QDateTime grabberAge
static

Definition at line 25 of file metadatagrabber.cpp.

Referenced by MetaGrabberScript::GetList(), and MetaGrabberScript::GetType().

◆ grabberTypes

const QMap<GrabberType, GrabberOpts> grabberTypes
static
Initial value:
{
{ kGrabberMovie, { "%1metadata/Movie/",
"MovieGrabber",
"metadata/Movie/tmdb3.py" } },
{ kGrabberTelevision, { "%1metadata/Television/",
"TelevisionGrabber",
"metadata/Television/ttvdb.py" } },
{ kGrabberGame, { "%1metadata/Game/",
"mythgame.MetadataGrabber",
"metadata/Game/giantbomb.py" } },
{ kGrabberMusic, { "%1metadata/Music",
"",
"" } }
}

Definition at line 33 of file metadatagrabber.cpp.

Referenced by MetaGrabberScript::GetList(), and MetaGrabberScript::GetType().

◆ grabberTypeStrings

QMap<QString, GrabberType> grabberTypeStrings
static
Initial value:
{
{ "movie", kGrabberMovie },
{ "television", kGrabberTelevision },
{ "game", kGrabberGame },
{ "music", kGrabberMusic }
}

Definition at line 48 of file metadatagrabber.cpp.

Referenced by MetaGrabberScript::GetList(), MetaGrabberScript::GetType(), and MetaGrabberScript::ParseGrabberVersion().

kGrabberTelevision
@ kGrabberTelevision
Definition: metadatagrabber.h:23
kGrabberMovie
@ kGrabberMovie
Definition: metadatagrabber.h:22
kGrabberMusic
@ kGrabberMusic
Definition: metadatagrabber.h:24
kGrabberGame
@ kGrabberGame
Definition: metadatagrabber.h:25