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