MythTV  master
metadatacommon.h
Go to the documentation of this file.
1 #ifndef METADATACOMMON_H_
2 #define METADATACOMMON_H_
3 
4 // c++
5 #include <utility>
6 
7 // qt
8 #include <QDate>
9 #include <QDateTime>
10 #include <QDomElement>
11 #include <QEvent>
12 #include <QList>
13 #include <QMultiMap>
14 #include <QPair>
15 #include <QString>
16 #include <QStringList>
17 
18 #include "mythtypes.h"
19 #include "mythmetaexp.h"
20 #include "metadataimagehelper.h"
21 #include "referencecounterlist.h"
22 #include "metadatagrabber.h"
23 
24 class ProgramInfo;
25 
26 enum LookupStep {
30 };
31 
32 struct PersonInfo
33 {
34  QString name;
35  QString role;
36  QString thumbnail;
37  QString url;
38 };
39 
40 // What type of grabber script to use
45  kMetadataGame = 3
46 };
47 
48 // Determines the lookup fallback strategy
49 enum LookupType {
55  kProbableGame = 5
56 };
57 
58 // Actual type of content
65  kContentUnknown = 5
66 };
67 
68 enum PeopleType {
80  kPersonGuestStar = 11
81 };
82 
83 using DownloadMap = QMap< VideoArtworkType, ArtworkInfo >;
84 using PeopleMap = QMultiMap< PeopleType, PersonInfo >;
85 
86 class META_PUBLIC MetadataLookup : public QObject, public ReferenceCounter
87 {
88  public:
89  MetadataLookup(void) : ReferenceCounter("MetadataLookup") {}
90  ~MetadataLookup() override = default;
91 
94  LookupType subtype,
95  QVariant data,
96  LookupStep step,
97  bool automatic,
98  bool handleimages,
99  bool allowoverwrites,
100  bool allowgeneric,
101  bool preferdvdorder,
102  QString host,
103  QString filename,
104  const QString &title,
105  QString network,
106  QString status,
107  QStringList categories,
108  float userrating,
109  uint ratingcount,
110  QString language,
111  QString subtitle,
112  QString tagline,
113  QString description,
114  uint season,
115  uint episode,
116  uint chanid,
117  QString channum,
118  QString chansign,
119  QString channame,
120  QString chanplaybackfilters,
121  QString recgroup,
122  QString playgroup,
123  QString seriesid,
124  QString programid,
125  QString storagegroup,
126  QDateTime startts,
127  QDateTime endts,
128  QDateTime recstartts,
129  QDateTime recendts,
130  uint programflags,
131  uint audioproperties,
132  uint videoproperties,
133  uint subtitletype,
134  QString certification,
135  QStringList countries,
136  float popularity,
137  uint budget,
138  uint revenue,
139  QString album,
140  uint tracknum,
141  QString system,
142  uint year,
143  const QDate &releasedate,
144  QDateTime lastupdated,
145  uint runtime,
146  uint runtimesecs,
147  QString inetref,
148  QString collectionref,
149  QString tmsref,
150  QString imdb,
151  PeopleMap people,
152  QStringList studios,
153  QString homepage,
154  QString trailerURL,
155  ArtworkMap artwork,
156  DownloadMap downloads);
157 
158  //ProgramInfo Constructor
161  LookupType subtype,
162  QVariant data,
163  LookupStep step,
164  bool automatic,
165  bool handleimages,
166  bool allowoverwrites,
167  bool allowgeneric,
168  bool preferdvdorder,
169  QString host,
170  QString filename,
171  const QString &title,
172  QStringList categories,
173  float userrating,
174  QString subtitle,
175  QString description,
176  uint chanid,
177  QString channum,
178  QString chansign,
179  QString channame,
180  QString chanplaybackfilters,
181  QString recgroup,
182  QString playgroup,
183  QString seriesid,
184  QString programid,
185  QString storagegroup,
186  QDateTime startts,
187  QDateTime endts,
188  QDateTime recstartts,
189  QDateTime recendts,
190  uint programflags,
191  uint audioproperties,
192  uint videoproperties,
193  uint subtitletype,
194  uint year,
195  const QDate &releasedate,
196  QDateTime lastupdated,
197  uint runtime,
198  uint runtimesecs);
199 
200  // XBMC NFO Constructor
203  LookupType subtype,
204  QVariant data,
205  LookupStep step,
206  bool automatic,
207  bool handleimages,
208  bool allowoverwrites,
209  bool allowgeneric,
210  bool preferdvdorder,
211  QString host,
212  QString filename,
213  const QString &title,
214  QStringList categories,
215  float userrating,
216  QString subtitle,
217  QString tagline,
218  QString description,
219  uint season,
220  uint episode,
221  QString certification,
222  uint year,
223  QDate releasedate,
224  uint runtime,
225  uint runtimesecs,
226  QString inetref,
227  PeopleMap people,
228  QString trailerURL,
229  ArtworkMap artwork,
230  DownloadMap downloads);
231 
232  void toMap(InfoMap &map);
233 
234  // SETS (Only a limited number needed)
235 
236  // Must set a type, data, and step.
237  void SetType(MetadataType type) { m_type = type; };
238  // For some lookup, it helps to know the subtype (TV vs. Movie)
239  void SetSubtype(LookupType subtype) { m_subtype = subtype; };
240  // Reference value- when the event comes back, need to associate with an item.
241  void SetData(QVariant data) { m_data = std::move(data); };
242  // Steps: SEARCH, GETDATA
243  void SetStep(LookupStep step) { m_step = step; };
244  // Don't prompt the user, just make an educated decision.
245  void SetAutomatic(bool autom) { m_automatic = autom; };
246 
247  // Sets for image download handling
248  void SetHandleImages(bool handle) { m_handleImages = handle; };
249  void SetAllowOverwrites(bool allow) { m_allowOverwrites = allow; };
250  void SetAllowGeneric(bool allow) { m_allowGeneric = allow; };
251  void SetHost(const QString &host) { m_host = host; };
252  void SetDownloads(ArtworkMap map) { m_downloads = std::move(map); };
253 
254  // General Sets
255  void SetTitle(const QString &title)
256  {
257  m_title = title;
258  QString manRecSuffix = QString(" (%1)").arg(QObject::tr("Manual Record"));
259  m_baseTitle = title; // m_title with " (Manual Record)" stripped.
260  m_baseTitle.replace(manRecSuffix,"");
261  };
262  void SetFilename(const QString &filename) { m_filename = filename; };
263 
264  // General Sets - Video
265  void SetSubtitle(const QString &subtitle) { m_subtitle = subtitle; };
266  void SetSeason(uint season) { m_season = season; };
267  void SetEpisode(uint episode) { m_episode = episode; };
268  void SetInetref(const QString &inetref) { m_inetRef = inetref; };
269  void SetCollectionref(const QString &collectionref)
270  { m_collectionRef = collectionref; };
271  void SetTMSref(const QString &tmsref) { m_tmsRef = tmsref; };
272  void SetIsCollection(bool collection) { m_isCollection = collection; };
273  void SetPreferDVDOrdering(bool preferdvdorder)
274  { m_dvdOrder = preferdvdorder; };
275 
276  // General Sets - Music
277  void SetAlbum(const QString &album) { m_album = album; };
278  void SetTrack(uint track) { m_trackNum = track; };
279 
280  // General Sets - Games
281  void SetSystem(const QString &system) { m_system = system; };
282 
283  // GETS
284 
285  MetadataType GetType() const { return m_type; };
286  LookupType GetSubtype() const { return m_subtype; };
287  QVariant GetData() const { return m_data; };
288  LookupStep GetStep() const { return m_step; };
289  bool GetAutomatic() const { return m_automatic; };
290 
291  // Image Handling Gets
292  bool GetHandleImages() const { return m_handleImages; };
293  bool GetAllowOverwrites() const { return m_allowOverwrites; };
294  bool GetAllowGeneric() const { return m_allowGeneric; };
295 
296  // General
297  QString GetFilename() const { return m_filename; };
298  QString GetTitle() const { return m_title; };
299  QString GetBaseTitle() const { return m_baseTitle; };
300  QStringList GetCategories() const { return m_categories; };
301  float GetUserRating() const { return m_userRating; };
302  uint GetRatingCount() const { return m_ratingCount; };
303  QString GetLanguage() const { return m_language; };
304  QString GetHost() const { return m_host; };
305 
306  // General - Video & ProgramInfo
307  QString GetNetwork() const { return m_network; };
308  QString GetStatus() const { return m_status; };
309  QString GetSubtitle() const { return m_subtitle; };
310  QString GetTagline() const { return m_tagline; };
311  QString GetDescription() const { return m_description; };
312  bool GetPreferDVDOrdering() const { return m_dvdOrder; };
313  uint GetSeason() const { return m_season; };
314  uint GetEpisode() const { return m_episode; };
315  uint GetChanId() const { return m_chanId; };
316  QString GetChanNum() const { return m_chanNum; };
317  QString GetChanSign() const { return m_chanSign; };
318  QString GetChanName() const { return m_chanName; };
319  QString GetChanPlaybackFilters() const { return m_chanPlaybackFilters; };
320  QString GetRecGroup() const { return m_recGroup; };
321  QString GetPlayGroup() const { return m_playGroup; };
322  QString GetSeriesId() const { return m_seriesId; };
323  QString GetProgramId() const { return m_programid; };
324  QString GetStorageGroup() const { return m_storageGroup; };
325  QDateTime GetStartTS() const { return m_startTs; };
326  QDateTime GetEndTS() const { return m_endTs; };
327  QDateTime GetRecStartTS() const { return m_recStartTs; };
328  QDateTime GetRecEndTS() const { return m_recEndTs; };
329  uint GetProgramFlags() const { return m_programFlags; };
330  uint GetAudioProperties() const { return m_audioProperties; };
331  uint GetVideoProperties() const { return m_videoProperties; };
332  uint GetSubtitleType() const { return m_subtitleType; };
333 
334  QString GetCertification() const { return m_certification; };
335  QStringList GetCountries() const { return m_countries; };
336  float GetPopularity() const { return m_popularity; };
337  uint GetBudget() const { return m_budget; };
338  uint GetRevenue() const { return m_revenue; };
339 
340  // General - Music
341  QString GetAlbumTitle() const { return m_album; };
342  uint GetTrackNumber() const { return m_trackNum; };
343 
344  // General - Game
345  QString GetSystem() const { return m_system; };
346 
347  // Times
348  uint GetYear() const { return m_year; };
349  QDate GetReleaseDate() const { return m_releaseDate; };
350  QDateTime GetLastUpdated() const { return m_lastUpdated; };
351  uint GetRuntime() const { return m_runtime; };
352  uint GetRuntimeSeconds() const { return m_runtimeSecs; };
353 
354  // Inetref
355  QString GetInetref() const { return m_inetRef; };
356  QString GetCollectionref() const { return m_collectionRef; };
357  QString GetIMDB() const { return m_imdb; };
358  QString GetTMSref() const { return m_tmsRef; };
359  bool GetIsCollection() const { return m_isCollection; };
360 
361  // People
362  QList<PersonInfo> GetPeople(PeopleType type) const;
363  QStringList GetStudios() const { return m_studios; };
364 
365  // Web references
366  QString GetHomepage() const { return m_homepage; };
367  QString GetTrailerURL() const { return m_trailerURL; };
368 
369  // Artwork
371  DownloadMap GetDownloads() const { return m_downloads; };
372 
373  private:
374  // General
377  QVariant m_data;
379  bool m_automatic {false};
380  bool m_handleImages {false};
381  bool m_allowOverwrites {false};
382  bool m_allowGeneric {false};
383  bool m_dvdOrder {false};
384  QString m_host;
385 
386  QString m_filename;
387  QString m_title;
388  QString m_baseTitle; // m_title with " (Manual Record)" stripped.
389  QString m_network;
390  QString m_status;
391  const QStringList m_categories;
392  float m_userRating {0.0};
393  uint m_ratingCount {0};
394  const QString m_language;
395 
396  // General - Video & ProgramInfo
397  QString m_subtitle;
398  const QString m_tagline;
399  const QString m_description;
400  uint m_season {0};
401  uint m_episode {0};
402  uint m_chanId {0};
403  const QString m_chanNum;
404  const QString m_chanSign;
405  const QString m_chanName;
406  const QString m_chanPlaybackFilters;
407  const QString m_recGroup;
408  const QString m_playGroup;
409  const QString m_seriesId;
410  const QString m_programid;
411  const QString m_storageGroup;
412  const QDateTime m_startTs;
413  const QDateTime m_endTs;
414  const QDateTime m_recStartTs;
415  const QDateTime m_recEndTs;
416  uint m_programFlags {0};
417  uint m_audioProperties {0};
418  uint m_videoProperties {0};
419  uint m_subtitleType {0};
420 
421  const QString m_certification;
422  const QStringList m_countries;
423  float m_popularity {0};
424  uint m_budget {0};
425  uint m_revenue {0};
426 
427  // General - Music
428  QString m_album;
429  uint m_trackNum {0};
430 
431  // General - Game
432  QString m_system;
433 
434  // Times
435  uint m_year {0};
436  const QDate m_releaseDate;
437  const QDateTime m_lastUpdated;
438  uint m_runtime {0};
439  uint m_runtimeSecs {0};
440 
441  // Inetref
442  QString m_inetRef;
444  QString m_tmsRef;
445  QString m_imdb;
446  bool m_isCollection {false};
447 
448  // People - Video
450  const QStringList m_studios;
451 
452  // Web references
453  const QString m_homepage;
454  const QString m_trailerURL;
455 
456  // Artwork
459 };
460 
462 
464 META_PUBLIC QDomDocument CreateMetadataXML(MetadataLookup *lookup);
465 META_PUBLIC QDomDocument CreateMetadataXML(ProgramInfo *pginfo);
466 
468  QDomElement placetoadd,
469  QDomDocument docroot);
470 
472  QDomElement placetoadd,
473  QDomDocument docroot);
475  QDomElement placetoadd,
476  QDomDocument docroot);
478  QDomElement placetoadd,
479  QDomDocument docroot);
481  QDomElement placetoadd,
482  QDomDocument docroot);
483 
485 
486 META_PUBLIC MetadataLookup *ParseMetadataItem(const QDomElement &item,
487  MetadataLookup *lookup,
488  bool passseas = true);
489 META_PUBLIC MetadataLookup *ParseMetadataMovieNFO(const QDomElement &item,
490  MetadataLookup *lookup);
491 META_PUBLIC PeopleMap ParsePeople(const QDomElement& people);
492 META_PUBLIC ArtworkMap ParseArtwork(const QDomElement& artwork);
493 
494 META_PUBLIC int editDistance(const QString &s, const QString &t);
495 META_PUBLIC QString nearestName(const QString &actual,
496  const QStringList &candidates);
497 
498 META_PUBLIC QDateTime RFC822TimeToQDateTime(const QString &t);
499 
502 
503 #endif // METADATACOMMON_H_
PeopleType
PeopleType
Definition: metadatacommon.h:68
MetadataLookup::m_network
QString m_network
Definition: metadatacommon.h:389
referencecounterlist.h
kMetadataMusic
@ kMetadataMusic
Definition: metadatacommon.h:44
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(GrabberScript *)
MetadataLookup::m_system
QString m_system
Definition: metadatacommon.h:432
VideoArtworkType
VideoArtworkType
Definition: metadataimagehelper.h:10
RefCountHandler
Definition: referencecounterlist.h:18
MetadataLookup::GetTMSref
QString GetTMSref() const
Definition: metadatacommon.h:358
MetadataLookup::GetTrackNumber
uint GetTrackNumber() const
Definition: metadatacommon.h:342
MetadataLookup::m_tagline
const QString m_tagline
Definition: metadatacommon.h:398
MetadataLookup::SetSubtype
void SetSubtype(LookupType subtype)
Definition: metadatacommon.h:239
MetadataLookup::m_people
const PeopleMap m_people
Definition: metadatacommon.h:449
MetadataLookup::m_recStartTs
const QDateTime m_recStartTs
Definition: metadatacommon.h:414
MetadataLookup::GetRuntime
uint GetRuntime() const
Definition: metadatacommon.h:351
MetadataLookup::SetTitle
void SetTitle(const QString &title)
Definition: metadatacommon.h:255
MetadataLookup::SetIsCollection
void SetIsCollection(bool collection)
Definition: metadatacommon.h:272
kMetadataRecording
@ kMetadataRecording
Definition: metadatacommon.h:43
metadataimagehelper.h
MetadataLookup::m_filename
QString m_filename
Definition: metadatacommon.h:386
ParseMetadataMovieNFO
META_PUBLIC MetadataLookup * ParseMetadataMovieNFO(const QDomElement &item, MetadataLookup *lookup)
Definition: metadatacommon.cpp:1150
MetadataType
MetadataType
Definition: metadatacommon.h:41
MetadataLookup::GetTitle
QString GetTitle() const
Definition: metadatacommon.h:298
MetadataLookup::~MetadataLookup
~MetadataLookup() override=default
kMetadataVideo
@ kMetadataVideo
Definition: metadatacommon.h:42
MetadataLookup::m_releaseDate
const QDate m_releaseDate
Definition: metadatacommon.h:436
title
QString title
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:636
ArtworkList
QList< ArtworkInfo > ArtworkList
Definition: metadataimagehelper.h:30
MetadataLookup::GetSubtype
LookupType GetSubtype() const
Definition: metadatacommon.h:286
MetadataLookup::m_collectionRef
QString m_collectionRef
Definition: metadatacommon.h:443
MetadataLookup::GetNetwork
QString GetNetwork() const
Definition: metadatacommon.h:307
ParsePeople
META_PUBLIC PeopleMap ParsePeople(const QDomElement &people)
Definition: metadatacommon.cpp:1234
kPersonAuthor
@ kPersonAuthor
Definition: metadatacommon.h:70
CreateMetadataXML
META_PUBLIC QDomDocument CreateMetadataXML(MetadataLookupList list)
Definition: metadatacommon.cpp:435
PersonInfo::role
QString role
Definition: metadatacommon.h:35
kProbableTelevision
@ kProbableTelevision
Definition: metadatacommon.h:50
MetadataLookup::GetLanguage
QString GetLanguage() const
Definition: metadatacommon.h:303
MetadataLookup::m_chanNum
const QString m_chanNum
Definition: metadatacommon.h:403
kPersonProducer
@ kPersonProducer
Definition: metadatacommon.h:72
MetadataLookup::GetAlbumTitle
QString GetAlbumTitle() const
Definition: metadatacommon.h:341
MetadataLookup::m_seriesId
const QString m_seriesId
Definition: metadatacommon.h:409
MetadataLookup::SetHandleImages
void SetHandleImages(bool handle)
Definition: metadatacommon.h:248
GetArtwork
ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict)
Definition: metadataimagehelper.cpp:23
MetadataLookup::m_homepage
const QString m_homepage
Definition: metadatacommon.h:453
MetadataLookup::GetSeriesId
QString GetSeriesId() const
Definition: metadatacommon.h:322
RFC822TimeToQDateTime
META_PUBLIC QDateTime RFC822TimeToQDateTime(const QString &t)
Definition: metadatacommon.cpp:1409
MetadataLookup::SetAllowGeneric
void SetAllowGeneric(bool allow)
Definition: metadatacommon.h:250
MetadataLookup::m_endTs
const QDateTime m_endTs
Definition: metadatacommon.h:413
kPersonEditor
@ kPersonEditor
Definition: metadatacommon.h:76
MetadataLookup::m_chanPlaybackFilters
const QString m_chanPlaybackFilters
Definition: metadatacommon.h:406
MetadataLookup::GetCertification
QString GetCertification() const
Definition: metadatacommon.h:334
editDistance
META_PUBLIC int editDistance(const QString &s, const QString &t)
Definition: metadatacommon.cpp:1346
kProbableGame
@ kProbableGame
Definition: metadatacommon.h:55
MetadataLookup::m_data
QVariant m_data
Definition: metadatacommon.h:377
mythmetaexp.h
MetadataLookup::GetBudget
uint GetBudget() const
Definition: metadatacommon.h:337
MetadataLookup::GetAudioProperties
uint GetAudioProperties() const
Definition: metadatacommon.h:330
MetadataLookup::m_storageGroup
const QString m_storageGroup
Definition: metadatacommon.h:411
MetadataLookup::SetCollectionref
void SetCollectionref(const QString &collectionref)
Definition: metadatacommon.h:269
MetadataLookup::m_playGroup
const QString m_playGroup
Definition: metadatacommon.h:408
MetadataLookup::GetTrailerURL
QString GetTrailerURL() const
Definition: metadatacommon.h:367
MetadataLookup::GetPreferDVDOrdering
bool GetPreferDVDOrdering() const
Definition: metadatacommon.h:312
kPersonGuestStar
@ kPersonGuestStar
Definition: metadatacommon.h:80
kLookupSearch
@ kLookupSearch
Definition: metadatacommon.h:27
metadatagrabber.h
MetadataLookup::GetStep
LookupStep GetStep() const
Definition: metadatacommon.h:288
MetadataLookup::SetPreferDVDOrdering
void SetPreferDVDOrdering(bool preferdvdorder)
Definition: metadatacommon.h:273
MetadataLookup
Definition: metadatacommon.h:87
InfoMap
QHash< QString, QString > InfoMap
Definition: mythtypes.h:15
MetadataLookup::m_subtitle
QString m_subtitle
Definition: metadatacommon.h:397
MetadataLookup::GetRatingCount
uint GetRatingCount() const
Definition: metadatacommon.h:302
MetadataLookup::m_inetRef
QString m_inetRef
Definition: metadatacommon.h:442
MetadataLookup::GetChanSign
QString GetChanSign() const
Definition: metadatacommon.h:317
kPersonCastingDirector
@ kPersonCastingDirector
Definition: metadatacommon.h:77
PersonInfo::thumbnail
QString thumbnail
Definition: metadatacommon.h:36
MetadataLookup::SetEpisode
void SetEpisode(uint episode)
Definition: metadatacommon.h:267
LookupFromProgramInfo
META_PUBLIC MetadataLookup * LookupFromProgramInfo(ProgramInfo *pginfo)
Definition: metadatacommon.cpp:406
MetadataLookup::m_baseTitle
QString m_baseTitle
Definition: metadatacommon.h:388
MetadataLookup::SetDownloads
void SetDownloads(ArtworkMap map)
Definition: metadatacommon.h:252
MetadataLookup::GetDownloads
DownloadMap GetDownloads() const
Definition: metadatacommon.h:371
MetadataLookup::SetTMSref
void SetTMSref(const QString &tmsref)
Definition: metadatacommon.h:271
MetadataLookup::GetEpisode
uint GetEpisode() const
Definition: metadatacommon.h:314
MetadataLookup::GetDescription
QString GetDescription() const
Definition: metadatacommon.h:311
MetadataLookup::GetIMDB
QString GetIMDB() const
Definition: metadatacommon.h:357
kPersonActor
@ kPersonActor
Definition: metadatacommon.h:69
MetadataLookup::GetAllowOverwrites
bool GetAllowOverwrites() const
Definition: metadatacommon.h:293
ParseMetadataItem
META_PUBLIC MetadataLookup * ParseMetadataItem(const QDomElement &item, MetadataLookup *lookup, bool passseas=true)
Definition: metadatacommon.cpp:889
AddCountries
META_PUBLIC void AddCountries(MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
Definition: metadatacommon.cpp:873
MetadataLookup::m_lastUpdated
const QDateTime m_lastUpdated
Definition: metadatacommon.h:437
hardwareprofile.i18n.t
t
Definition: i18n.py:36
PersonInfo::url
QString url
Definition: metadatacommon.h:37
MetadataLookup::m_album
QString m_album
Definition: metadatacommon.h:428
RefCountedList
General purpose reference counted list.
Definition: referencecounterlist.h:56
MetadataLookup::GetData
QVariant GetData() const
Definition: metadatacommon.h:287
MetadataLookup::GetStartTS
QDateTime GetStartTS() const
Definition: metadatacommon.h:325
CreateMetadataXMLItem
META_PUBLIC void CreateMetadataXMLItem(MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
Definition: metadatacommon.cpp:474
kLookupData
@ kLookupData
Definition: metadatacommon.h:28
kPersonDirector
@ kPersonDirector
Definition: metadatacommon.h:71
MetadataLookup::m_artwork
const ArtworkMap m_artwork
Definition: metadatacommon.h:457
MetadataLookup::GetType
MetadataType GetType() const
Definition: metadatacommon.h:285
MetadataLookup::SetTrack
void SetTrack(uint track)
Definition: metadatacommon.h:278
MetadataLookup::m_countries
const QStringList m_countries
Definition: metadatacommon.h:422
MetadataLookup::GetChanNum
QString GetChanNum() const
Definition: metadatacommon.h:316
MetadataLookup::m_studios
const QStringList m_studios
Definition: metadatacommon.h:450
MetadataLookup::GetRecGroup
QString GetRecGroup() const
Definition: metadatacommon.h:320
mythtypes.h
MetadataLookup::GetSubtitle
QString GetSubtitle() const
Definition: metadatacommon.h:309
kContentTelevision
@ kContentTelevision
Definition: metadatacommon.h:61
filename
QString filename
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:637
MetadataLookup::GetCountries
QStringList GetCountries() const
Definition: metadatacommon.h:335
MetadataLookup::GetLastUpdated
QDateTime GetLastUpdated() const
Definition: metadatacommon.h:350
MetadataLookup::GetVideoProperties
uint GetVideoProperties() const
Definition: metadatacommon.h:331
MetadataLookup::GetRecEndTS
QDateTime GetRecEndTS() const
Definition: metadatacommon.h:328
MetadataLookup::m_recEndTs
const QDateTime m_recEndTs
Definition: metadatacommon.h:415
kPersonComposer
@ kPersonComposer
Definition: metadatacommon.h:75
kLookupCollection
@ kLookupCollection
Definition: metadatacommon.h:29
MetadataLookup::GetYear
uint GetYear() const
Definition: metadatacommon.h:348
kPersonAlbumArtist
@ kPersonAlbumArtist
Definition: metadatacommon.h:79
MetadataLookup::GetCollectionref
QString GetCollectionref() const
Definition: metadatacommon.h:356
MetadataLookup::m_certification
const QString m_certification
Definition: metadatacommon.h:421
MetadataLookup::GetHandleImages
bool GetHandleImages() const
Definition: metadatacommon.h:292
uint
unsigned int uint
Definition: compat.h:140
MetadataLookup::GetUserRating
float GetUserRating() const
Definition: metadatacommon.h:301
MetadataLookup::SetSeason
void SetSeason(uint season)
Definition: metadatacommon.h:266
MetadataLookup::SetAllowOverwrites
void SetAllowOverwrites(bool allow)
Definition: metadatacommon.h:249
kProbableGenericTelevision
@ kProbableGenericTelevision
Definition: metadatacommon.h:51
MetadataLookup::m_imdb
QString m_imdb
Definition: metadatacommon.h:445
MetadataLookup::GetAllowGeneric
bool GetAllowGeneric() const
Definition: metadatacommon.h:294
MetadataLookup::m_downloads
DownloadMap m_downloads
Definition: metadatacommon.h:458
MetadataLookup::GetSeason
uint GetSeason() const
Definition: metadatacommon.h:313
PeopleMap
QMultiMap< PeopleType, PersonInfo > PeopleMap
Definition: metadatacommon.h:84
MetadataLookup::GetFilename
QString GetFilename() const
Definition: metadatacommon.h:297
kUnknownVideo
@ kUnknownVideo
Definition: metadatacommon.h:53
MetadataLookup::GetPopularity
float GetPopularity() const
Definition: metadatacommon.h:336
MetadataLookup::GetCategories
QStringList GetCategories() const
Definition: metadatacommon.h:300
MetadataLookup::GetBaseTitle
QString GetBaseTitle() const
Definition: metadatacommon.h:299
MetadataLookup::SetHost
void SetHost(const QString &host)
Definition: metadatacommon.h:251
MetadataLookup::GetSystem
QString GetSystem() const
Definition: metadatacommon.h:345
MetadataLookup::m_categories
const QStringList m_categories
Definition: metadatacommon.h:391
MetadataLookup::GetStatus
QString GetStatus() const
Definition: metadatacommon.h:308
ParseArtwork
META_PUBLIC ArtworkMap ParseArtwork(const QDomElement &artwork)
Definition: metadatacommon.cpp:1292
MetadataLookup::m_title
QString m_title
Definition: metadatacommon.h:387
MetadataLookup::m_description
const QString m_description
Definition: metadatacommon.h:399
MetadataLookup::GetChanPlaybackFilters
QString GetChanPlaybackFilters() const
Definition: metadatacommon.h:319
MetadataLookup::m_tmsRef
QString m_tmsRef
Definition: metadatacommon.h:444
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:68
VideoContentType
VideoContentType
Definition: metadatacommon.h:59
MetadataLookup::GetStorageGroup
QString GetStorageGroup() const
Definition: metadatacommon.h:324
MetadataLookup::SetData
void SetData(QVariant data)
Definition: metadatacommon.h:241
countries
QDomElement countries
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:785
MetadataLookup::SetSystem
void SetSystem(const QString &system)
Definition: metadatacommon.h:281
MetadataLookup::SetAutomatic
void SetAutomatic(bool autom)
Definition: metadatacommon.h:245
MetadataLookup::m_language
const QString m_language
Definition: metadatacommon.h:394
MetadataLookup::GetTagline
QString GetTagline() const
Definition: metadatacommon.h:310
MetadataLookup::GetRevenue
uint GetRevenue() const
Definition: metadatacommon.h:338
MetadataLookup::m_programid
const QString m_programid
Definition: metadatacommon.h:410
MetadataLookup::m_trailerURL
const QString m_trailerURL
Definition: metadatacommon.h:454
MetadataLookup::GetInetref
QString GetInetref() const
Definition: metadatacommon.h:355
MetadataLookup::m_chanName
const QString m_chanName
Definition: metadatacommon.h:405
MetadataLookup::SetInetref
void SetInetref(const QString &inetref)
Definition: metadatacommon.h:268
MetadataLookup::SetFilename
void SetFilename(const QString &filename)
Definition: metadatacommon.h:262
MetadataLookup::MetadataLookup
MetadataLookup(void)
Definition: metadatacommon.h:89
PersonInfo::name
QString name
Definition: metadatacommon.h:34
MetadataLookup::GetStudios
QStringList GetStudios() const
Definition: metadatacommon.h:363
kPersonExecProducer
@ kPersonExecProducer
Definition: metadatacommon.h:73
MetadataLookup::GetRecStartTS
QDateTime GetRecStartTS() const
Definition: metadatacommon.h:327
kPersonCinematographer
@ kPersonCinematographer
Definition: metadatacommon.h:74
kMetadataGame
@ kMetadataGame
Definition: metadatacommon.h:45
MetadataLookup::m_host
QString m_host
Definition: metadatacommon.h:384
MetadataLookup::GetSubtitleType
uint GetSubtitleType() const
Definition: metadatacommon.h:332
LookupType
LookupType
Definition: metadatacommon.h:49
AddCategories
META_PUBLIC void AddCategories(MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
Definition: metadatacommon.cpp:840
kContentAdult
@ kContentAdult
Definition: metadatacommon.h:62
MetadataLookup::SetAlbum
void SetAlbum(const QString &album)
Definition: metadatacommon.h:277
nearestName
META_PUBLIC QString nearestName(const QString &actual, const QStringList &candidates)
Definition: metadatacommon.cpp:1378
kContentMusicVideo
@ kContentMusicVideo
Definition: metadatacommon.h:63
kProbableMusic
@ kProbableMusic
Definition: metadatacommon.h:54
kContentMovie
@ kContentMovie
Definition: metadatacommon.h:60
DownloadMap
QMap< VideoArtworkType, ArtworkInfo > DownloadMap
Definition: metadatacommon.h:83
kPersonArtist
@ kPersonArtist
Definition: metadatacommon.h:78
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
MetadataLookup::GetIsCollection
bool GetIsCollection() const
Definition: metadatacommon.h:359
MetadataLookup::m_status
QString m_status
Definition: metadatacommon.h:390
MetadataLookup::GetReleaseDate
QDate GetReleaseDate() const
Definition: metadatacommon.h:349
kContentUnknown
@ kContentUnknown
Definition: metadatacommon.h:65
MetadataLookup::m_startTs
const QDateTime m_startTs
Definition: metadatacommon.h:412
MetadataLookup::GetChanId
uint GetChanId() const
Definition: metadatacommon.h:315
MetadataLookup::GetPlayGroup
QString GetPlayGroup() const
Definition: metadatacommon.h:321
MetadataLookup::GetAutomatic
bool GetAutomatic() const
Definition: metadatacommon.h:289
MetadataLookup::m_recGroup
const QString m_recGroup
Definition: metadatacommon.h:407
MetadataLookup::GetHomepage
QString GetHomepage() const
Definition: metadatacommon.h:366
AddCertifications
META_PUBLIC void AddCertifications(MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
Definition: metadatacommon.cpp:826
MetadataLookup::GetHost
QString GetHost() const
Definition: metadatacommon.h:304
MetadataLookup::SetType
void SetType(MetadataType type)
Definition: metadatacommon.h:237
kContentHomeMovie
@ kContentHomeMovie
Definition: metadatacommon.h:64
MetadataLookup::GetChanName
QString GetChanName() const
Definition: metadatacommon.h:318
MetadataLookup::GetProgramFlags
uint GetProgramFlags() const
Definition: metadatacommon.h:329
kProbableMovie
@ kProbableMovie
Definition: metadatacommon.h:52
PersonInfo
Definition: metadatacommon.h:33
AddStudios
META_PUBLIC void AddStudios(MetadataLookup *lookup, QDomElement placetoadd, QDomDocument docroot)
Definition: metadatacommon.cpp:857
META_PUBLIC
#define META_PUBLIC
Definition: mythmetaexp.h:9
MetadataLookup::GetEndTS
QDateTime GetEndTS() const
Definition: metadatacommon.h:326
MetadataLookup::SetStep
void SetStep(LookupStep step)
Definition: metadatacommon.h:243
ReferenceCounter
General purpose reference counter.
Definition: referencecounter.h:27
MetadataLookup::GetProgramId
QString GetProgramId() const
Definition: metadatacommon.h:323
MetadataLookup::m_chanSign
const QString m_chanSign
Definition: metadatacommon.h:404
MetadataLookup::GetRuntimeSeconds
uint GetRuntimeSeconds() const
Definition: metadatacommon.h:352
LookupStep
LookupStep
Definition: metadatacommon.h:26
MetadataLookup::SetSubtitle
void SetSubtitle(const QString &subtitle)
Definition: metadatacommon.h:265