MythTV  master
v2serviceUtil.cpp
Go to the documentation of this file.
1 // Standard UNIX C headers
2 #include <unistd.h>
3 #include <fcntl.h>
4 #if defined(__FreeBSD__) || defined(__APPLE__) || defined(__OpenBSD__) || defined(_WIN32)
5 #include <sys/types.h>
6 #else
7 #include <sys/sysmacros.h>
8 #endif
9 #include <sys/stat.h>
10 
11 // Qt
12 #include <QDir>
13 #include <QFileInfoList>
14 #include <QJsonArray>
15 #include <QJsonObject>
16 
17 // MythTV
18 #include "libmythbase/compat.h"
24 #include "libmythtv/cardutil.h"
25 #include "libmythtv/channelgroup.h"
26 #include "libmythtv/channelinfo.h"
27 #include "libmythtv/channelutil.h"
30 #include "libmythtv/tv_rec.h"
31 
32 // MythBackend
33 #include "backendcontext.h"
34 #include "encoderlink.h"
35 #include "scheduler.h"
36 #include "v2encoder.h"
37 #include "v2frontend.h"
38 #include "v2serviceUtil.h"
39 
40 void V2FillProgramInfo( V2Program *pProgram,
41  ProgramInfo *pInfo,
42  bool bIncChannel /* = true */,
43  bool bDetails /* = true */,
44  bool bIncCast /* = true */,
45  bool bIncArtwork /* = true */,
46  bool bIncRecording /* = true */)
47 {
48  if ((pProgram == nullptr) || (pInfo == nullptr))
49  return;
50 
51  pProgram->setStartTime ( pInfo->GetScheduledStartTime());
52  pProgram->setEndTime ( pInfo->GetScheduledEndTime ());
53  pProgram->setTitle ( pInfo->GetTitle() );
54  pProgram->setSubTitle ( pInfo->GetSubtitle() );
55  pProgram->setCategory ( pInfo->GetCategory() );
56  pProgram->setCatType ( pInfo->GetCategoryTypeString());
57  pProgram->setRepeat ( pInfo->IsRepeat() );
58  pProgram->setVideoProps( pInfo->GetVideoProperties() );
59  pProgram->setVideoPropNames( pInfo->GetVideoPropertyNames() );
60  pProgram->setAudioProps( pInfo->GetAudioProperties() );
61  pProgram->setAudioPropNames( pInfo->GetAudioPropertyNames() );
62  pProgram->setSubProps ( pInfo->GetSubtitleType() );
63  pProgram->setSubPropNames( pInfo->GetSubtitleTypeNames() );
64 
65  if (bDetails)
66  {
67  pProgram->setSeriesId ( pInfo->GetSeriesID() );
68  pProgram->setProgramId ( pInfo->GetProgramID() );
69  pProgram->setStars ( pInfo->GetStars() );
70  pProgram->setLastModified( pInfo->GetLastModifiedTime() );
71  pProgram->setProgramFlags( pInfo->GetProgramFlags() );
72  pProgram->setProgramFlagNames( pInfo->GetProgramFlagNames() );
73 
74  // ----
75  // DEPRECATED - See RecordingInfo instead
76  pProgram->setFileName ( pInfo->GetPathname() );
77  pProgram->setFileSize ( pInfo->GetFilesize() );
78  pProgram->setHostName ( pInfo->GetHostname() );
79  // ----
80 
81  if (pInfo->GetOriginalAirDate().isValid())
82  pProgram->setAirdate( pInfo->GetOriginalAirDate() );
83  else if (pInfo->GetYearOfInitialRelease() > 0)
84  {
85  QDate year;
86  year.setDate(pInfo->GetYearOfInitialRelease(), 1, 1);
87  pProgram->setAirdate( year );
88  }
89 
90  pProgram->setDescription( pInfo->GetDescription() );
91  pProgram->setInetref ( pInfo->GetInetRef() );
92  pProgram->setSeason ( pInfo->GetSeason() );
93  pProgram->setEpisode ( pInfo->GetEpisode() );
94  pProgram->setTotalEpisodes( pInfo->GetEpisodeTotal() );
95  }
96 
97  if (bIncCast)
98  V2FillCastMemberList( pProgram->Cast(), pInfo );
99  else
100  pProgram->enableCast(false);
101 
102  if (bIncChannel)
103  {
104  // Build Channel Child Element
105  if (!V2FillChannelInfo( pProgram->Channel(), pInfo->GetChanID(), bDetails ))
106  {
107  // The channel associated with a given recording may no longer exist
108  // however the ChanID is one half of the unique identifier for the
109  // recording and therefore MUST be included in the return data
110  pProgram->Channel()->setChanId(pInfo->GetChanID());
111  }
112  }
113  else
114  {
115  pProgram->enableChannel(false);
116  }
117 
118  // Build Recording Child Element
119 
120  if ( bIncRecording && pInfo->GetRecordingStatus() != RecStatus::Unknown )
121  {
122  V2RecordingInfo *pRecording = pProgram->Recording();
123 
124  const RecordingInfo pRecInfo(*pInfo);
125 
126  pRecording->setRecordedId ( pRecInfo.GetRecordingID() );
127  pRecording->setStatus ( pRecInfo.GetRecordingStatus() );
128  pRecording->setStatusName ( pRecInfo.GetRecordingStatus() );
129  pRecording->setPriority( pRecInfo.GetRecordingPriority() );
130  pRecording->setStartTs ( pRecInfo.GetRecordingStartTime() );
131  pRecording->setEndTs ( pRecInfo.GetRecordingEndTime() );
132 
133  if (bDetails)
134  {
135  pRecording->setFileName ( pRecInfo.GetPathname() );
136  pRecording->setFileSize ( pRecInfo.GetFilesize() );
137  pRecording->setHostName ( pRecInfo.GetHostname() );
138  pRecording->setLastModified( pRecInfo.GetLastModifiedTime() );
139 
140  pRecording->setRecordId ( pRecInfo.GetRecordingRuleID() );
141  pRecording->setRecGroup ( pRecInfo.GetRecordingGroup() );
142  pRecording->setPlayGroup ( pRecInfo.GetPlaybackGroup() );
143  pRecording->setStorageGroup( pRecInfo.GetStorageGroup() );
144  pRecording->setRecType ( pRecInfo.GetRecordingRuleType() );
145  pRecording->setDupInType ( pRecInfo.GetDuplicateCheckSource() );
146  pRecording->setDupMethod ( pRecInfo.GetDuplicateCheckMethod() );
147  pRecording->setEncoderId ( pRecInfo.GetInputID() );
148  pRecording->setEncoderName ( pRecInfo.GetInputName() );
149  pRecording->setProfile ( pRecInfo.GetProgramRecordingProfile() );
150  }
151  }
152  else
153  {
154  pProgram->enableRecording(false);
155  }
156 
157  if ( bIncArtwork && !pInfo->GetInetRef().isEmpty() )
158  V2FillArtworkInfoList( pProgram->Artwork(), pInfo->GetInetRef(), pInfo->GetSeason());
159  else
160  pProgram->enableArtwork(false);
161 }
162 
164 //
166 
168  uint nChanID,
169  bool bDetails /* = true */ )
170 {
171  ChannelInfo channel;
172  if (channel.Load(nChanID))
173  {
174  return V2FillChannelInfo(pChannel, channel, bDetails);
175  }
176 
177  return false;
178 }
179 
181 //
183 
185  const ChannelInfo &channelInfo,
186  bool bDetails /* = true */ )
187 {
188 
189  // TODO update V2ChannelInfo to match functionality of ChannelInfo,
190  // ultimately replacing it's progenitor?
191  pChannel->setChanId(channelInfo.m_chanId);
192  pChannel->setChanNum(channelInfo.m_chanNum);
193  pChannel->setCallSign(channelInfo.m_callSign);
194  if (!channelInfo.m_icon.isEmpty())
195  {
196  QString sIconURL = QString( "/Guide/GetChannelIcon?FileName=%1")
197  .arg( channelInfo.m_icon );
198  pChannel->setIconURL( sIconURL );
199  pChannel->setIcon( channelInfo.m_icon );
200  }
201  pChannel->setChannelName(channelInfo.m_name);
202  pChannel->setVisible(channelInfo.m_visible > kChannelNotVisible);
203  pChannel->setExtendedVisible(toRawString(channelInfo.m_visible));
204 
205  if (bDetails)
206  {
207  pChannel->setMplexId(channelInfo.m_mplexId);
208  pChannel->setServiceId(channelInfo.m_serviceId);
209  pChannel->setATSCMajorChan(channelInfo.m_atscMajorChan);
210  pChannel->setATSCMinorChan(channelInfo.m_atscMinorChan);
211  pChannel->setFormat(channelInfo.m_tvFormat);
212  pChannel->setFineTune(channelInfo.m_fineTune);
213  pChannel->setFrequencyId(channelInfo.m_freqId);
214  pChannel->setChanFilters(channelInfo.m_videoFilters);
215  pChannel->setSourceId(channelInfo.m_sourceId);
216  pChannel->setCommFree(channelInfo.m_commMethod == -2);
217  pChannel->setUseEIT(channelInfo.m_useOnAirGuide);
218  pChannel->setXMLTVID(channelInfo.m_xmltvId);
219  pChannel->setDefaultAuth(channelInfo.m_defaultAuthority);
220  pChannel->setServiceType(channelInfo.m_serviceType);
221  pChannel->setRecPriority(channelInfo.m_recPriority);
222  pChannel->setTimeOffset(channelInfo.m_tmOffset);
223  pChannel->setCommMethod(channelInfo.m_commMethod);
224 
225  QList<uint> groupIds = channelInfo.GetGroupIds();
226  QString sGroupIds;
227  for (int x = 0; x < groupIds.size(); x++)
228  {
229  if (x > 0)
230  sGroupIds += ",";
231 
232  sGroupIds += QString::number(groupIds.at(x));
233  }
234  pChannel->setChannelGroups(sGroupIds);
235 
236  QList<uint> inputIds = channelInfo.GetInputIds();
237  QString sInputIds;
238  for (int x = 0; x < inputIds.size(); x++)
239  {
240  if (x > 0)
241  sInputIds += ",";
242 
243  sInputIds += QString::number(inputIds.at(x));
244  }
245  pChannel->setInputs(sInputIds);
246  }
247 
248  return true;
249 }
250 
251 void V2FillChannelGroup(V2ChannelGroup* pGroup, const ChannelGroupItem& pGroupItem)
252 {
253  if (!pGroup)
254  return;
255 
256  pGroup->setGroupId(pGroupItem.m_grpId);
257  pGroup->setName(pGroupItem.m_name);
258  pGroup->setPassword(""); // Not currently supported
259 }
260 
262 //
264 
265 void V2FillRecRuleInfo( V2RecRule *pRecRule,
266  RecordingRule *pRule )
267 {
268  if ((pRecRule == nullptr) || (pRule == nullptr))
269  return;
270 
271  pRecRule->setId ( pRule->m_recordID );
272  pRecRule->setParentId ( pRule->m_parentRecID );
273  pRecRule->setInactive ( pRule->m_isInactive );
274  pRecRule->setTitle ( pRule->m_title );
275  pRecRule->setSubTitle ( pRule->m_subtitle );
276  pRecRule->setDescription ( pRule->m_description );
277  pRecRule->setSeason ( pRule->m_season );
278  pRecRule->setEpisode ( pRule->m_episode );
279  pRecRule->setCategory ( pRule->m_category );
280 #if QT_VERSION < QT_VERSION_CHECK(6,5,0)
281  pRecRule->setStartTime ( QDateTime(pRule->m_startdate,
282  pRule->m_starttime, Qt::UTC));
283  pRecRule->setEndTime ( QDateTime(pRule->m_enddate,
284  pRule->m_endtime, Qt::UTC));
285 #else
286  static const QTimeZone utc(QTimeZone::UTC);
287  pRecRule->setStartTime ( QDateTime(pRule->m_startdate,
288  pRule->m_starttime, utc));
289  pRecRule->setEndTime ( QDateTime(pRule->m_enddate,
290  pRule->m_endtime, utc));
291 #endif
292  pRecRule->setSeriesId ( pRule->m_seriesid );
293  pRecRule->setProgramId ( pRule->m_programid );
294  pRecRule->setInetref ( pRule->m_inetref );
295  pRecRule->setChanId ( pRule->m_channelid );
296  pRecRule->setCallSign ( pRule->m_station );
297  pRecRule->setFindDay ( pRule->m_findday );
298  pRecRule->setFindTime ( pRule->m_findtime );
299  pRecRule->setType ( toRawString(pRule->m_type) );
300  pRecRule->setSearchType ( toRawString(pRule->m_searchType));
301  pRecRule->setRecPriority ( pRule->m_recPriority );
302  pRecRule->setPreferredInput ( pRule->m_prefInput );
303  pRecRule->setStartOffset ( pRule->m_startOffset );
304  pRecRule->setEndOffset ( pRule->m_endOffset );
305  pRecRule->setDupMethod ( toRawString(pRule->m_dupMethod) );
306  pRecRule->setDupIn ( toRawString(pRule->m_dupIn) );
307  pRecRule->setNewEpisOnly ( newEpifromDupIn(pRule->m_dupIn) );
308  pRecRule->setFilter ( pRule->m_filter );
309  pRecRule->setRecProfile ( pRule->m_recProfile );
310  pRecRule->setRecGroup ( RecordingInfo::GetRecgroupString(pRule->m_recGroupID) );
311  pRecRule->setStorageGroup ( pRule->m_storageGroup );
312  pRecRule->setPlayGroup ( pRule->m_playGroup );
313  pRecRule->setAutoExpire ( pRule->m_autoExpire );
314  pRecRule->setMaxEpisodes ( pRule->m_maxEpisodes );
315  pRecRule->setMaxNewest ( pRule->m_maxNewest );
316  pRecRule->setAutoCommflag ( pRule->m_autoCommFlag );
317  pRecRule->setAutoTranscode ( pRule->m_autoTranscode );
318  pRecRule->setAutoMetaLookup ( pRule->m_autoMetadataLookup );
319  pRecRule->setAutoUserJob1 ( pRule->m_autoUserJob1 );
320  pRecRule->setAutoUserJob2 ( pRule->m_autoUserJob2 );
321  pRecRule->setAutoUserJob3 ( pRule->m_autoUserJob3 );
322  pRecRule->setAutoUserJob4 ( pRule->m_autoUserJob4 );
323  pRecRule->setTranscoder ( pRule->m_transcoder );
324  pRecRule->setNextRecording ( pRule->m_nextRecording );
325  pRecRule->setLastRecorded ( pRule->m_lastRecorded );
326  pRecRule->setLastDeleted ( pRule->m_lastDeleted );
327  pRecRule->setAverageDelay ( pRule->m_averageDelay );
328  pRecRule->setAutoExtend ( toString(pRule->m_autoExtend) );
329 }
330 
331 void V2FillArtworkInfoList( V2ArtworkInfoList *pArtworkInfoList,
332  const QString &sInetref,
333  uint nSeason )
334 {
335  ArtworkMap map = GetArtwork(sInetref, nSeason);
336  for (auto i = map.cbegin(); i != map.cend(); ++i)
337  {
338  V2ArtworkInfo *pArtInfo = pArtworkInfoList->AddNewArtworkInfo();
339  pArtInfo->setFileName(i.value().url);
340  switch (i.key())
341  {
342  case kArtworkFanart:
343  pArtInfo->setStorageGroup("Fanart");
344  pArtInfo->setType("fanart");
345  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
346  "&FileName=%2")
347  .arg("Fanart",
348  QString(QUrl::toPercentEncoding(
349  QUrl(i.value().url).path()))));
350  break;
351  case kArtworkBanner:
352  pArtInfo->setStorageGroup("Banners");
353  pArtInfo->setType("banner");
354  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
355  "&FileName=%2")
356  .arg("Banners",
357  QString(QUrl::toPercentEncoding(
358  QUrl(i.value().url).path()))));
359  break;
360  case kArtworkCoverart:
361  default:
362  pArtInfo->setStorageGroup("Coverart");
363  pArtInfo->setType("coverart");
364  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
365  "&FileName=%2")
366  .arg("Coverart",
367  QString(QUrl::toPercentEncoding(
368  QUrl(i.value().url).path()))));
369  break;
370  }
371  }
372 }
373 
374 void V2FillGenreList(V2GenreList* pGenreList, int videoID)
375 {
376  if (!pGenreList)
377  return;
378 
379  MSqlQuery query(MSqlQuery::InitCon());
380  query.prepare("SELECT genre from videogenre "
381  "LEFT JOIN videometadatagenre ON videometadatagenre.idgenre = videogenre.intid "
382  "WHERE idvideo = :ID "
383  "ORDER BY genre;");
384  query.bindValue(":ID", videoID);
385 
386  if (query.exec() && query.size() > 0)
387  {
388  while (query.next())
389  {
390  V2Genre *pGenre = pGenreList->AddNewGenre();
391  QString genre = query.value(0).toString();
392  pGenre->setName(genre);
393  }
394  }
395 }
396 
397 
399  V2VideoMetadataInfo *pVideoMetadataInfo,
401  bool bDetails)
402 {
403  pVideoMetadataInfo->setId(pMetadata->GetID());
404  pVideoMetadataInfo->setTitle(pMetadata->GetTitle());
405  pVideoMetadataInfo->setSubTitle(pMetadata->GetSubtitle());
406  pVideoMetadataInfo->setTagline(pMetadata->GetTagline());
407  pVideoMetadataInfo->setDirector(pMetadata->GetDirector());
408  pVideoMetadataInfo->setStudio(pMetadata->GetStudio());
409  pVideoMetadataInfo->setDescription(pMetadata->GetPlot());
410  pVideoMetadataInfo->setCertification(pMetadata->GetRating());
411  pVideoMetadataInfo->setInetref(pMetadata->GetInetRef());
412  pVideoMetadataInfo->setCollectionref(pMetadata->GetCollectionRef());
413  pVideoMetadataInfo->setHomePage(pMetadata->GetHomepage());
414 #if QT_VERSION < QT_VERSION_CHECK(6,5,0)
415  pVideoMetadataInfo->setReleaseDate(
416  QDateTime(pMetadata->GetReleaseDate(),
417  QTime(0,0),Qt::LocalTime).toUTC());
418  pVideoMetadataInfo->setAddDate(
419  QDateTime(pMetadata->GetInsertdate(),
420  QTime(0,0),Qt::LocalTime).toUTC());
421 #else
422  static const QTimeZone localtime(QTimeZone::LocalTime);
423  pVideoMetadataInfo->setReleaseDate(
424  QDateTime(pMetadata->GetReleaseDate(),
425  QTime(0,0),localtime).toUTC());
426  pVideoMetadataInfo->setAddDate(
427  QDateTime(pMetadata->GetInsertdate(),
428  QTime(0,0),localtime).toUTC());
429 #endif
430  pVideoMetadataInfo->setUserRating(pMetadata->GetUserRating());
431  pVideoMetadataInfo->setChildID(pMetadata->GetChildID());
432  pVideoMetadataInfo->setLength(pMetadata->GetLength().count());
433  pVideoMetadataInfo->setPlayCount(pMetadata->GetPlayCount());
434  pVideoMetadataInfo->setSeason(pMetadata->GetSeason());
435  pVideoMetadataInfo->setEpisode(pMetadata->GetEpisode());
436  pVideoMetadataInfo->setParentalLevel(pMetadata->GetShowLevel());
437  pVideoMetadataInfo->setVisible(pMetadata->GetBrowse());
438  pVideoMetadataInfo->setWatched(pMetadata->GetWatched());
439  pVideoMetadataInfo->setProcessed(pMetadata->GetProcessed());
440  pVideoMetadataInfo->setContentType(ContentTypeToString(
441  pMetadata->GetContentType()));
442  pVideoMetadataInfo->setFileName(pMetadata->GetFilename());
443  pVideoMetadataInfo->setHash(pMetadata->GetHash());
444  pVideoMetadataInfo->setHostName(pMetadata->GetHost());
445  pVideoMetadataInfo->setCoverart(pMetadata->GetCoverFile());
446  pVideoMetadataInfo->setFanart(pMetadata->GetFanart());
447  pVideoMetadataInfo->setBanner(pMetadata->GetBanner());
448  pVideoMetadataInfo->setScreenshot(pMetadata->GetScreenshot());
449  pVideoMetadataInfo->setTrailer(pMetadata->GetTrailer());
450 
451  if (bDetails)
452  {
453  if (!pMetadata->GetFanart().isEmpty())
454  {
455  V2ArtworkInfo *pArtInfo =
456  pVideoMetadataInfo->Artwork()->AddNewArtworkInfo();
457  pArtInfo->setStorageGroup("Fanart");
458  pArtInfo->setType("fanart");
459  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
460  "&FileName=%2")
461  .arg("Fanart",
462  QString(
463  QUrl::toPercentEncoding(pMetadata->GetFanart()))));
464  }
465  if (!pMetadata->GetCoverFile().isEmpty())
466  {
467  V2ArtworkInfo *pArtInfo =
468  pVideoMetadataInfo->Artwork()->AddNewArtworkInfo();
469  pArtInfo->setStorageGroup("Coverart");
470  pArtInfo->setType("coverart");
471  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
472  "&FileName=%2")
473  .arg("Coverart",
474  QString(
475  QUrl::toPercentEncoding(pMetadata->GetCoverFile()))));
476  }
477  if (!pMetadata->GetBanner().isEmpty())
478  {
479  V2ArtworkInfo *pArtInfo =
480  pVideoMetadataInfo->Artwork()->AddNewArtworkInfo();
481  pArtInfo->setStorageGroup("Banners");
482  pArtInfo->setType("banner");
483  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
484  "&FileName=%2")
485  .arg("Banners",
486  QString(
487  QUrl::toPercentEncoding(pMetadata->GetBanner()))));
488  }
489  if (!pMetadata->GetScreenshot().isEmpty())
490  {
491  V2ArtworkInfo *pArtInfo =
492  pVideoMetadataInfo->Artwork()->AddNewArtworkInfo();
493  pArtInfo->setStorageGroup("Screenshots");
494  pArtInfo->setType("screenshot");
495  pArtInfo->setURL(QString("/Content/GetImageFile?StorageGroup=%1"
496  "&FileName=%2")
497  .arg("Screenshots",
498  QString(
499  QUrl::toPercentEncoding(pMetadata->GetScreenshot()))));
500  }
501  }
502 
503  V2FillGenreList(pVideoMetadataInfo->Genres(), pVideoMetadataInfo->GetId());
504 
505  auto castList = pMetadata->GetCast();
506  V2CastMemberList* pCastMemberList = pVideoMetadataInfo->Cast();
507 
508  QString actors = QObject::tr("Actors");
509  for (const VideoMetadata::cast_entry& ent : castList )
510  {
511  V2CastMember *pCastMember = pCastMemberList->AddNewCastMember();
512  pCastMember->setTranslatedRole(actors);
513  pCastMember->setRole("ACTOR");
514  pCastMember->setName(ent.second);
515  }
516 
517 }
518 
520 //
522 
524  MusicMetadata *pMetadata, bool bDetails)
525 {
526  pVideoMetadataInfo->setId(pMetadata->ID());
527  pVideoMetadataInfo->setArtist(pMetadata->Artist());
528  pVideoMetadataInfo->setCompilationArtist(pMetadata->CompilationArtist());
529  pVideoMetadataInfo->setAlbum(pMetadata->Album());
530  pVideoMetadataInfo->setTitle(pMetadata->Title());
531  pVideoMetadataInfo->setTrackNo(pMetadata->Track());
532  pVideoMetadataInfo->setGenre(pMetadata->Genre());
533  pVideoMetadataInfo->setYear(pMetadata->Year());
534  pVideoMetadataInfo->setPlayCount(pMetadata->PlayCount());
535  pVideoMetadataInfo->setLength(pMetadata->Length().count());
536  pVideoMetadataInfo->setRating(pMetadata->Rating());
537  pVideoMetadataInfo->setFileName(pMetadata->Filename());
538  pVideoMetadataInfo->setHostName(pMetadata->Hostname());
539  pVideoMetadataInfo->setLastPlayed(pMetadata->LastPlay());
540  pVideoMetadataInfo->setCompilation(pMetadata->Compilation());
541 
542  if (bDetails)
543  {
544  //TODO add coverart here
545  }
546 }
547 
548 void V2FillInputInfo(V2Input* input, const InputInfo& inputInfo)
549 {
550  input->setId(inputInfo.m_inputId);
551  input->setInputName(inputInfo.m_name);
552  input->setCardId(inputInfo.m_inputId);
553  input->setSourceId(inputInfo.m_sourceId);
554  input->setDisplayName(inputInfo.m_displayName);
555  input->setLiveTVOrder(inputInfo.m_liveTvOrder);
556  input->setScheduleOrder(inputInfo.m_scheduleOrder);
557  input->setRecPriority(inputInfo.m_recPriority);
558  input->setQuickTune(inputInfo.m_quickTune);
559 }
560 
561 
562 
564  ProgramInfo* pInfo)
565 {
566  if (!pCastMemberList || !pInfo)
567  return;
568 
569  MSqlQuery query(MSqlQuery::InitCon());
570 
571  QString table;
572  if (pInfo->GetFilesize() > 0) // FIXME: This shouldn't be the way to determine what is or isn't a recording!
573  table = "recordedcredits";
574  else
575  table = "credits";
576 
577  query.prepare(QString("SELECT role, people.name, roles.name FROM %1"
578  " AS credits"
579  " LEFT JOIN people ON"
580  " credits.person = people.person"
581  " LEFT JOIN roles ON"
582  " credits.roleid = roles.roleid"
583  " WHERE credits.chanid = :CHANID"
584  " AND credits.starttime = :STARTTIME"
585  " ORDER BY role, priority;").arg(table));
586 
587  query.bindValue(":CHANID", pInfo->GetChanID());
588  query.bindValue(":STARTTIME", pInfo->GetScheduledStartTime());
589 
590  if (query.exec() && query.size() > 0)
591  {
592  QMap<QString, QString> translations;
593  translations["ACTOR"] = QObject::tr("Actors");
594  translations["DIRECTOR"] = QObject::tr("Director");
595  translations["PRODUCER"] = QObject::tr("Producer");
596  translations["EXECUTIVE_PRODUCER"] = QObject::tr("Executive Producer");
597  translations["WRITER"] = QObject::tr("Writer");
598  translations["GUEST_STAR"] = QObject::tr("Guest Star");
599  translations["HOST"] = QObject::tr("Host");
600  translations["ADAPTER"] = QObject::tr("Adapter");
601  translations["PRESENTER"] = QObject::tr("Presenter");
602  translations["COMMENTATOR"] = QObject::tr("Commentator");
603  translations["GUEST"] = QObject::tr("Guest");
604 
605  while (query.next())
606  {
607  V2CastMember *pCastMember = pCastMemberList->AddNewCastMember();
608 
609  QString role = query.value(0).toString();
610  pCastMember->setTranslatedRole(translations.value(role.toUpper()));
611  pCastMember->setRole(role); // role is invalid after this call.
612  /* The people.name column uses utf8_bin collation.
613  * Qt-MySQL drivers use QVariant::ByteArray for string-type
614  * MySQL fields marked with the BINARY attribute (those using a
615  * *_bin collation) and QVariant::String for all others.
616  * Since QVariant::toString() uses QString::fromAscii()
617  * (through QVariant::convert()) when the QVariant's type is
618  * QVariant::ByteArray, we have to use QString::fromUtf8()
619  * explicitly to prevent corrupting characters.
620  * The following code should be changed to use the simpler
621  * toString() approach, as above, if we do a DB update to
622  * coalesce the people.name values that differ only in case and
623  * change the collation to utf8_general_ci, to match the
624  * majority of other columns, or we'll have the same problem in
625  * reverse.
626  */
627  pCastMember->setName(QString::fromUtf8(query.value(1)
628  .toByteArray().constData()));
629  pCastMember->setCharacterName(QString::fromUtf8(query.value(2)
630  .toByteArray().constData()));
631  }
632  }
633 
634 }
635 
636 
637 void V2FillCutList(V2CutList* pCutList, ProgramInfo* rInfo, int marktype, bool includeFps)
638 {
639  frm_dir_map_t markMap;
640  frm_dir_map_t::const_iterator it;
641 
642  if (rInfo && rInfo->GetChanID())
643  {
644  if (includeFps)
645  {
646  rInfo->QueryMarkupMap(markMap, MARK_VIDEO_RATE);
647  it = markMap.cbegin();
648  if (it != markMap.cend())
649  {
650  V2Cutting *pCutting = pCutList->AddNewCutting();
651  pCutting->setMark(*it);
652  pCutting->setOffset(it.key());
653  }
654  markMap.clear();
655  }
656  rInfo->QueryCutList(markMap);
657 
658  for (it = markMap.cbegin(); it != markMap.cend(); ++it)
659  {
660  bool isend = (*it) == MARK_CUT_END || (*it) == MARK_COMM_END;
661  if (marktype == 0)
662  {
663  V2Cutting *pCutting = pCutList->AddNewCutting();
664  pCutting->setMark(*it);
665  pCutting->setOffset(it.key());
666  }
667  else if (marktype == 1)
668  {
669  uint64_t offset = 0;
670  if (rInfo->QueryKeyFramePosition(&offset, it.key(), isend))
671  {
672  V2Cutting *pCutting = pCutList->AddNewCutting();
673  pCutting->setMark(*it);
674  pCutting->setOffset(offset);
675  }
676  }
677  else if (marktype == 2)
678  {
679  uint64_t offset = 0;
680  if (rInfo->QueryKeyFrameDuration(&offset, it.key(), isend))
681  {
682  V2Cutting *pCutting = pCutList->AddNewCutting();
683  pCutting->setMark(*it);
684  pCutting->setOffset(offset);
685  }
686  }
687  }
688  }
689 }
690 
691 void V2FillCommBreak(V2CutList* pCutList, ProgramInfo* rInfo, int marktype, bool includeFps)
692 {
693  frm_dir_map_t markMap;
694  frm_dir_map_t::const_iterator it;
695 
696  if (rInfo)
697  {
698  if (includeFps)
699  {
700  rInfo->QueryMarkupMap(markMap, MARK_VIDEO_RATE);
701  it = markMap.cbegin();
702  if (it != markMap.cend())
703  {
704  V2Cutting *pCutting = pCutList->AddNewCutting();
705  pCutting->setMark(*it);
706  pCutting->setOffset(it.key());
707  }
708  markMap.clear();
709  }
710  rInfo->QueryCommBreakList(markMap);
711 
712  for (it = markMap.cbegin(); it != markMap.cend(); ++it)
713  {
714  bool isend = (*it) == MARK_CUT_END || (*it) == MARK_COMM_END;
715  if (marktype == 0)
716  {
717  V2Cutting *pCutting = pCutList->AddNewCutting();
718  pCutting->setMark(*it);
719  pCutting->setOffset(it.key());
720  }
721  else if (marktype == 1)
722  {
723  uint64_t offset = 0;
724  if (rInfo->QueryKeyFramePosition(&offset, it.key(), isend))
725  {
726  V2Cutting *pCutting = pCutList->AddNewCutting();
727  pCutting->setMark(*it);
728  pCutting->setOffset(offset);
729  }
730  }
731  else if (marktype == 2)
732  {
733  uint64_t offset = 0;
734  if (rInfo->QueryKeyFrameDuration(&offset, it.key(), isend))
735  {
736  V2Cutting *pCutting = pCutList->AddNewCutting();
737  pCutting->setMark(*it);
738  pCutting->setOffset(offset);
739  }
740  }
741  }
742  }
743 }
744 
746 //
748 
749 void V2FillSeek(V2CutList* pCutList, RecordingInfo* rInfo, MarkTypes marktype)
750 {
751  frm_pos_map_t markMap;
752  frm_pos_map_t::const_iterator it;
753 
754  if (rInfo && rInfo->GetChanID())
755  {
756  rInfo->QueryPositionMap(markMap, marktype);
757 
758  for (it = markMap.cbegin(); it != markMap.cend(); ++it)
759  {
760  V2Cutting *pCutting = pCutList->AddNewCutting();
761  pCutting->setMark(it.key());
762  pCutting->setOffset(it.value());
763  }
764  }
765 }
766 
767 void FillEncoderList(QVariantList &list, QObject* parent)
768 {
769  QReadLocker tvlocker(&TVRec::s_inputsLock);
770  QList<InputInfo> inputInfoList = CardUtil::GetAllInputInfo(true);
771  for (auto * elink : std::as_const(gTVList))
772  {
773  if (elink != nullptr)
774  {
775  // V2Encoder *pEncoder = list->AddNewEncoder();
776  auto *pEncoder = new V2Encoder( parent );
777  list.append( QVariant::fromValue<QObject *>( pEncoder ));
778 
779  pEncoder->setId ( elink->GetInputID() );
780  pEncoder->setState ( elink->GetState() );
781  pEncoder->setLocal ( elink->IsLocal() );
782  pEncoder->setConnected ( elink->IsConnected() );
783  pEncoder->setSleepStatus ( elink->GetSleepStatus() );
784 
785  if (pEncoder->GetLocal())
786  pEncoder->setHostName( gCoreContext->GetHostName() );
787  else
788  pEncoder->setHostName( elink->GetHostName() );
789 
790  for (const auto & inputInfo : std::as_const(inputInfoList))
791  {
792  if (inputInfo.m_inputId == static_cast<uint>(elink->GetInputID()))
793  {
794  V2Input *input = pEncoder->AddNewInput();
795  V2FillInputInfo(input, inputInfo);
796  }
797  }
798 
799  bool progFound = false;
800  V2Program *pProgram = pEncoder->Recording();
801  switch ( pEncoder->GetState() )
802  {
806  {
807  ProgramInfo *pInfo = elink->GetRecording();
808 
809  if (pInfo)
810  {
811  progFound= true;
812  V2FillProgramInfo( pProgram, pInfo, true, true );
813  delete pInfo;
814  }
815 
816  break;
817  }
818 
819  default:
820  break;
821  }
822  if (!progFound)
823  pProgram->setProperty("isNull",QVariant(true));
824  }
825  }
826 }
827 
828 // Note - special value -999 for nRecStatus means all values less than 0.
829 // This is needed by BackendStatus API
830 int FillUpcomingList(QVariantList &list, QObject* parent,
831  int& nStartIndex,
832  int& nCount,
833  bool bShowAll,
834  int nRecordId,
835  int nRecStatus,
836  const QString &Sort )
837 {
838  RecordingList recordingList; // Auto-delete deque
839  RecList tmpList; // Standard deque, objects must be deleted
840 
841  if (nRecordId <= 0)
842  nRecordId = -1;
843 
844  // For nRecStatus to be effective, showAll must be true.
845  if (nRecStatus != 0)
846  bShowAll = true;
847 
848  // NOTE: Fetching this information directly from the schedule is
849  // significantly faster than using ProgramInfo::LoadFromScheduler()
850  auto *scheduler = dynamic_cast<Scheduler*>(gCoreContext->GetScheduler());
851  if (scheduler)
852  scheduler->GetAllPending(tmpList, nRecordId);
853 
854  // Sort the upcoming into only those which will record
855  // NOLINTNEXTLINE(modernize-loop-convert)
856  for (auto it = tmpList.begin(); it < tmpList.end(); ++it)
857  {
858  if ((nRecStatus == -999
859  && (*it)->GetRecordingStatus() >= 0)
860  || (nRecStatus != 0 && nRecStatus != -999
861  && (*it)->GetRecordingStatus() != nRecStatus))
862  {
863  delete *it;
864  *it = nullptr;
865  continue;
866  }
867 
868  if (!bShowAll && ((((*it)->GetRecordingStatus() >= RecStatus::Pending) &&
869  ((*it)->GetRecordingStatus() <= RecStatus::WillRecord)) ||
870  ((*it)->GetRecordingStatus() == RecStatus::Offline) ||
871  ((*it)->GetRecordingStatus() == RecStatus::Conflict)) &&
872  ((*it)->GetRecordingEndTime() > MythDate::current()))
873  { // NOLINT(bugprone-branch-clone)
874  recordingList.push_back(new RecordingInfo(**it));
875  }
876  else if (bShowAll &&
877  ((*it)->GetRecordingEndTime() > MythDate::current()))
878  {
879  recordingList.push_back(new RecordingInfo(**it));
880  }
881 
882  delete *it;
883  *it = nullptr;
884  }
885 
886  // Sort the list
887 
888  int sortType = 0;
889  if (Sort.startsWith("channum", Qt::CaseInsensitive))
890  sortType = 10;
891  else if (Sort.startsWith("title", Qt::CaseInsensitive))
892  sortType = 20;
893  if (Sort.endsWith("desc", Qt::CaseInsensitive))
894  sortType += 1;
895 
896  static QRegularExpression regex("[_-]");
897 
898  auto comp = [sortType](const RecordingInfo *First, const RecordingInfo *Second)
899  {
900  switch (sortType)
901  {
902  case 0:
903  return First->GetScheduledStartTime() < Second->GetScheduledStartTime();
904  case 1:
905  return First->GetScheduledStartTime() > Second->GetScheduledStartTime();
906  case 10:
907  return First->GetChanNum().replace(regex,".").toDouble()
908  < Second->GetChanNum().replace(regex,".").toDouble();
909  case 11:
910  return First->GetChanNum().replace(regex,".").toDouble()
911  > Second->GetChanNum().replace(regex,".").toDouble();
912  case 20:
913  return QString::compare(First->GetTitle(), Second->GetTitle(), Qt::CaseInsensitive) < 0 ;
914  case 21:
915  return QString::compare(First->GetTitle(), Second->GetTitle(), Qt::CaseInsensitive) > 0 ;
916  }
917  return false;
918  };
919 
920  // no need to sort when zero because that is the default order from the scheduler
921  if (sortType > 0)
922  std::stable_sort(recordingList.begin(), recordingList.end(), comp);
923 
924  // ----------------------------------------------------------------------
925  // Build Response
926  // ----------------------------------------------------------------------
927 
928  nStartIndex = (nStartIndex > 0) ? std::min( nStartIndex, (int)recordingList.size() ) : 0;
929  nCount = (nCount > 0) ? std::min( nCount, (int)recordingList.size() ) : recordingList.size();
930  int nEndIndex = std::min((nStartIndex + nCount), (int)recordingList.size() );
931 
932  for( int n = nStartIndex; n < nEndIndex; n++)
933  {
934  ProgramInfo *pInfo = recordingList[ n ];
935  auto *pProgram = new V2Program( parent );
936  list.append( QVariant::fromValue<QObject *>( pProgram ));
937  V2FillProgramInfo( pProgram, pInfo, true );
938  }
939 
940  return recordingList.size();
941 }
942 
943 void FillFrontendList(QVariantList &list, QObject* parent, bool OnLine)
944 {
945  QMap<QString, Frontend*> frontends;
946  if (OnLine)
947  frontends = gBackendContext->GetConnectedFrontends();
948  else
949  frontends = gBackendContext->GetFrontends();
950 
951  for (auto * fe : std::as_const(frontends))
952  {
953  auto *pFrontend = new V2Frontend( parent );
954  list.append( QVariant::fromValue<QObject *>( pFrontend ));
955  pFrontend->setName(fe->m_name);
956  pFrontend->setIP(fe->m_ip.toString());
957  int port = gCoreContext->GetNumSettingOnHost("FrontendStatusPort",
958  fe->m_name, 6547);
959  pFrontend->setPort(port);
960  pFrontend->setOnLine(fe->m_connectionCount > 0);
961  }
962 }
963 
964 
965 int V2CreateRecordingGroup(const QString& groupName)
966 {
967  int groupID = -1;
968  MSqlQuery query(MSqlQuery::InitCon());
969 
970  query.prepare("INSERT INTO recgroups SET recgroup = :NAME, "
971  "displayname = :DISPLAYNAME");
972  query.bindValue(":NAME", groupName);
973  query.bindValue(":DISPLAYNAME", groupName);
974 
975  if (query.exec())
976  groupID = query.lastInsertId().toInt();
977 
978  if (groupID <= 0)
979  LOG(VB_GENERAL, LOG_ERR, QString("Could not create recording group (%1). "
980  "Does it already exist?").arg(groupName));
981 
982  return groupID;
983 }
984 
985 DBCredits * V2jsonCastToCredits(const QJsonObject &cast)
986 {
987  int priority = 1;
988  auto* credits = new DBCredits;
989 
990  QJsonArray members = cast["CastMembers"].toArray();
991  for (const auto & m : std::as_const(members))
992  {
993  QJsonObject actor = m.toObject();
994  QString name = actor.value("Name").toString("");
995  QString character = actor.value("CharacterName").toString("");
996  QString role = actor.value("Role").toString("");
997 
998  credits->emplace_back(role, name, priority++, character);
999  }
1000 
1001  return credits;
1002 }
1003 
1004 // Code copied from class VideoDevice
1005 V2CaptureDeviceList* getV4l2List ( const QRegularExpression &driver, const QString & cardType )
1006 {
1007  auto* pList = new V2CaptureDeviceList();
1008  uint minor_min = 0;
1009  uint minor_max = 15;
1010  QString card = QString();
1011 
1012  // /dev/v4l/video*
1013  QDir dev("/dev/v4l", "video*", QDir::Name, QDir::System);
1014  fillSelectionsFromDir(dev, minor_min, minor_max,
1015  card, driver, false, pList, cardType);
1016 
1017  // /dev/video*
1018  dev.setPath("/dev");
1019  fillSelectionsFromDir(dev, minor_min, minor_max,
1020  card, driver, false, pList, cardType);
1021 
1022  // /dev/dtv/video*
1023  dev.setPath("/dev/dtv");
1024  fillSelectionsFromDir(dev, minor_min, minor_max,
1025  card, driver, false, pList, cardType);
1026 
1027  // /dev/dtv*
1028  dev.setPath("/dev");
1029  dev.setNameFilters(QStringList("dtv*"));
1030  fillSelectionsFromDir(dev, minor_min, minor_max,
1031  card, driver, false, pList, cardType);
1032 
1033  return pList;
1034 }
1035 
1036 uint fillSelectionsFromDir(const QDir& dir,
1037  uint minor_min, uint minor_max,
1038  const QString& card, const QRegularExpression& driver,
1039  bool allow_duplicates, V2CaptureDeviceList *pList,
1040  const QString & cardType)
1041 {
1042  uint cnt = 0;
1043  QMap<uint, uint> minorlist;
1044  QFileInfoList entries = dir.entryInfoList();
1045  for (const auto & fi : std::as_const(entries))
1046  {
1047  struct stat st {};
1048  QString filepath = fi.absoluteFilePath();
1049  int err = lstat(filepath.toLocal8Bit().constData(), &st);
1050 
1051  if (err)
1052  {
1053  LOG(VB_GENERAL, LOG_ERR,
1054  QString("Could not stat file: %1").arg(filepath));
1055  continue;
1056  }
1057 
1058  // is this is a character device?
1059  if (!S_ISCHR(st.st_mode))
1060  continue;
1061 
1062  // is this device is in our minor range?
1063  uint minor_num = minor(st.st_rdev);
1064  if (minor_min > minor_num || minor_max < minor_num)
1065  continue;
1066 
1067  // ignore duplicates if allow_duplicates not set
1068  if (!allow_duplicates && minorlist[minor_num])
1069  continue;
1070 
1071  // if the driver returns any info add this device to our list
1072  QByteArray tmp = filepath.toLatin1();
1073  int videofd = open(tmp.constData(), O_RDWR);
1074  if (videofd >= 0)
1075  {
1076  QString card_name;
1077  QString driver_name;
1078  if (CardUtil::GetV4LInfo(videofd, card_name, driver_name))
1079  {
1080  auto match = driver.match(driver_name);
1081  if ((!driver.pattern().isEmpty() || match.hasMatch()) &&
1082  (card.isEmpty() || (card_name == card)))
1083  {
1084  auto* pDev = pList->AddCaptureDevice();
1085  pDev->setCardType (cardType);
1086  pDev->setVideoDevice (filepath);
1087  pDev->setFrontendName(card_name);
1088  QStringList inputs;
1089  CardUtil::GetDeviceInputNames(filepath, cardType, inputs);
1090  pDev->setInputNames(inputs);
1091  inputs = CardUtil::ProbeAudioInputs(filepath);
1092  pDev->setAudioDevices(inputs);
1093  if (cardType == "HDPVR")
1094  pDev->setChannelTimeout ( 15000 );
1095  cnt++;
1096  }
1097  }
1098  close(videofd);
1099  }
1100  // add to list of minors discovered to avoid duplicates
1101  minorlist[minor_num] = 1;
1102  }
1103 
1104  return cnt;
1105 }
1106 
1107 V2CaptureDeviceList* getFirewireList ([[maybe_unused]] const QString & cardType)
1108 {
1109  auto* pList = new V2CaptureDeviceList();
1110 
1111 #ifdef USING_FIREWIRE
1112  std::vector<AVCInfo> list = FirewireDevice::GetSTBList();
1113  for (auto & info : list)
1114  {
1115  auto* pDev = pList->AddCaptureDevice();
1116  pDev->setCardType (cardType);
1117  QString guid = info.GetGUIDString();
1118  pDev->setVideoDevice (guid);
1119  QString model = FirewireDevice::GetModelName(info.m_vendorid, info.m_modelid);
1120  pDev->setFirewireModel(model);
1121  pDev->setDescription(info.m_product_name);
1122  pDev->setSignalTimeout ( 2000 );
1123  pDev->setChannelTimeout ( 9000 );
1124  }
1125 #endif // USING_FIREWIRE
1126  return pList;
1127 }
ChannelInfo
Definition: channelinfo.h:31
V2FillGenreList
void V2FillGenreList(V2GenreList *pGenreList, int videoID)
Definition: v2serviceUtil.cpp:374
ChannelGroupItem::m_grpId
uint m_grpId
Definition: channelgroup.h:28
RecordingRule::m_channelid
int m_channelid
callsign?
Definition: recordingrule.h:99
Scheduler
Definition: scheduler.h:45
MSqlQuery::next
bool next(void)
Wrap QSqlQuery::next() so we can display the query results.
Definition: mythdbcon.cpp:812
MSqlQuery
QSqlQuery wrapper that fetches a DB connection from the connection pool.
Definition: mythdbcon.h:127
V2CaptureDeviceList::AddCaptureDevice
V2CaptureDevice * AddCaptureDevice()
Definition: v2captureCardList.h:117
RecordingRule::m_autoTranscode
bool m_autoTranscode
Definition: recordingrule.h:132
ChannelInfo::m_serviceType
uint m_serviceType
Definition: channelinfo.h:112
RecordingRule::m_enddate
QDate m_enddate
Definition: recordingrule.h:90
MusicMetadata::Title
QString Title() const
Definition: musicmetadata.h:162
RecordingRule::m_playGroup
QString m_playGroup
Definition: recordingrule.h:122
MythDate::toString
QString toString(const QDateTime &raw_dt, uint format)
Returns formatted string representing the time.
Definition: mythdate.cpp:93
MSqlQuery::size
int size(void) const
Definition: mythdbcon.h:214
RecordingRule::m_seriesid
QString m_seriesid
Definition: recordingrule.h:84
RecordingRule::m_parentRecID
int m_parentRecID
Definition: recordingrule.h:71
MusicMetadata::Filename
QString Filename(bool find=true)
Definition: musicmetadata.cpp:977
ProgramInfo::GetFilesize
virtual uint64_t GetFilesize(void) const
Definition: programinfo.cpp:6446
MARK_COMM_END
@ MARK_COMM_END
Definition: programtypes.h:59
backendcontext.h
V2FillProgramInfo
void V2FillProgramInfo(V2Program *pProgram, ProgramInfo *pInfo, bool bIncChannel, bool bDetails, bool bIncCast, bool bIncArtwork, bool bIncRecording)
Definition: v2serviceUtil.cpp:40
RecordingRule::m_description
QString m_description
Definition: recordingrule.h:81
MusicMetadata::Genre
QString Genre() const
Definition: musicmetadata.h:175
RecordingRule::m_autoCommFlag
bool m_autoCommFlag
Definition: recordingrule.h:131
RecordingRule::m_inetref
QString m_inetref
Definition: recordingrule.h:87
ProgramInfo::GetHostname
QString GetHostname(void) const
Definition: programinfo.h:422
ProgramInfo::GetInputName
QString GetInputName(void) const
Definition: programinfo.h:468
MythCoreContext::GetScheduler
MythScheduler * GetScheduler(void)
Definition: mythcorecontext.cpp:1913
RecordingRule::m_maxNewest
bool m_maxNewest
Definition: recordingrule.h:127
ProgramInfo::QueryPositionMap
void QueryPositionMap(frm_pos_map_t &posMap, MarkTypes type) const
Definition: programinfo.cpp:3784
RecordingRule::m_category
QString m_category
Definition: recordingrule.h:82
toRawString
QString toRawString(RecordingType rectype)
Converts "rectype" into an untranslated string.
Definition: recordingtypes.cpp:76
RecordingRule::m_nextRecording
QDateTime m_nextRecording
Definition: recordingrule.h:142
ChannelInfo::m_chanId
uint m_chanId
Definition: channelinfo.h:85
RecordingRule::m_starttime
QTime m_starttime
Definition: recordingrule.h:91
V2RecordingInfo
Definition: v2recording.h:23
V2ArtworkInfoList
Definition: v2artworkInfoList.h:22
V2Program::Recording
QObject Recording
Definition: v2programAndChannel.h:150
MusicMetadata::CompilationArtist
QString CompilationArtist() const
Definition: musicmetadata.h:138
simple_ref_ptr
Definition: quicksp.h:24
ChannelInfo::m_freqId
QString m_freqId
Definition: channelinfo.h:87
V2FillVideoMetadataInfo
void V2FillVideoMetadataInfo(V2VideoMetadataInfo *pVideoMetadataInfo, const VideoMetadataListManager::VideoMetadataPtr &pMetadata, bool bDetails)
Definition: v2serviceUtil.cpp:398
FirewireDevice::GetModelName
static QString GetModelName(uint vendor_id, uint model_id)
Definition: firewiredevice.cpp:350
ChannelGroupItem
Definition: channelgroup.h:15
RecordingInfo
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:35
newEpifromDupIn
bool newEpifromDupIn(RecordingDupInType recdupin)
Definition: recordingtypes.cpp:211
RecordingInfo::GetFilesize
uint64_t GetFilesize(void) const override
Definition: recordinginfo.cpp:1779
MarkTypes
MarkTypes
Definition: programtypes.h:46
V2VideoMetadataInfo::Cast
QObject Cast
Definition: v2videoMetadataInfo.h:47
ProgramInfo::GetRecordingID
uint GetRecordingID(void) const
Definition: programinfo.h:450
ProgramInfo::GetChanNum
QString GetChanNum(void) const
This is the channel "number", in the form 1, 1_2, 1-2, 1#1, etc.
Definition: programinfo.h:377
ChannelInfo::m_fineTune
int m_fineTune
Definition: channelinfo.h:95
MSqlQuery::lastInsertId
QVariant lastInsertId()
Return the id of the last inserted row.
Definition: mythdbcon.cpp:935
RecordingRule::m_title
QString m_title
Definition: recordingrule.h:77
MSqlQuery::value
QVariant value(int i) const
Definition: mythdbcon.h:204
V2ChannelGroup
Definition: v2channelGroup.h:19
ProgramInfo::GetCategory
QString GetCategory(void) const
Definition: programinfo.h:370
RecordingRule::m_averageDelay
int m_averageDelay
Definition: recordingrule.h:141
GetArtwork
ArtworkMap GetArtwork(const QString &inetref, uint season, bool strict)
Definition: metadataimagehelper.cpp:23
frm_dir_map_t
QMap< uint64_t, MarkTypes > frm_dir_map_t
Frame # -> Mark map.
Definition: programtypes.h:117
RecordingRule::m_lastDeleted
QDateTime m_lastDeleted
Definition: recordingrule.h:144
RecStatus::Unknown
@ Unknown
Definition: recordingstatus.h:32
RecordingRule
Internal representation of a recording rule, mirrors the record table.
Definition: recordingrule.h:28
RecordingRule::m_endOffset
int m_endOffset
Definition: recordingrule.h:110
ChannelInfo::m_atscMajorChan
uint m_atscMajorChan
Definition: channelinfo.h:113
MusicMetadata::ID
IdType ID() const
Definition: musicmetadata.h:218
MSqlQuery::exec
bool exec(void)
Wrap QSqlQuery::exec() so we can display SQL.
Definition: mythdbcon.cpp:618
V2Frontend
Definition: v2frontend.h:18
VideoMetadata::cast_entry
std::pair< int, QString > cast_entry
Definition: videometadata.h:31
ChannelInfo::m_name
QString m_name
Definition: channelinfo.h:92
MusicMetadata::Track
int Track() const
Definition: musicmetadata.h:199
ContentTypeToString
QString ContentTypeToString(VideoContentType type)
Definition: videoutils.cpp:295
LOG
#define LOG(_MASK_, _LEVEL_, _QSTRING_)
Definition: mythlogging.h:39
ProgramInfo::GetScheduledEndTime
QDateTime GetScheduledEndTime(void) const
The scheduled end time of the program.
Definition: programinfo.h:398
ProgramInfo::QueryKeyFrameDuration
bool QueryKeyFrameDuration(uint64_t *duration, uint64_t keyframe, bool backwards) const
Definition: programinfo.cpp:4238
firewiredevice.h
MusicMetadata
Definition: musicmetadata.h:81
MusicMetadata::Length
std::chrono::milliseconds Length() const
Definition: musicmetadata.h:205
gBackendContext
BackendContext * gBackendContext
Definition: backendcontext.cpp:9
recordingtypes.h
RecordingRule::m_dupIn
RecordingDupInType m_dupIn
Definition: recordingrule.h:114
RecordingRule::m_isInactive
bool m_isInactive
Recording rule is enabled?
Definition: recordingrule.h:74
ProgramInfo::GetRecordingEndTime
QDateTime GetRecordingEndTime(void) const
Approximate time the recording should have ended, did end, or is intended to end.
Definition: programinfo.h:413
ProgramInfo::GetProgramFlags
uint32_t GetProgramFlags(void) const
Definition: programinfo.h:474
ProgramInfo::GetRecordingGroup
QString GetRecordingGroup(void) const
Definition: programinfo.h:420
getV4l2List
V2CaptureDeviceList * getV4l2List(const QRegularExpression &driver, const QString &cardType)
Definition: v2serviceUtil.cpp:1005
MusicMetadata::Artist
QString Artist() const
Definition: musicmetadata.h:126
ProgramInfo::GetRecordingPriority
int GetRecordingPriority(void) const
Definition: programinfo.h:444
V2CaptureDeviceList
Definition: v2captureCardList.h:97
RecordingRule::m_season
uint m_season
Definition: recordingrule.h:94
FirewireDevice::GetSTBList
static std::vector< AVCInfo > GetSTBList(void)
Definition: firewiredevice.cpp:363
V2Program::Channel
QObject Channel
Definition: v2programAndChannel.h:149
ChannelInfo::m_icon
QString m_icon
Definition: channelinfo.h:93
scheduler.h
MythDate::current
QDateTime current(bool stripped)
Returns current Date and Time in UTC.
Definition: mythdate.cpp:15
ProgramInfo::GetRecordingStartTime
QDateTime GetRecordingStartTime(void) const
Approximate time the recording started.
Definition: programinfo.h:405
ProgramInfo::GetPathname
QString GetPathname(void) const
Definition: programinfo.h:344
FillFrontendList
void FillFrontendList(QVariantList &list, QObject *parent, bool OnLine)
Definition: v2serviceUtil.cpp:943
close
#define close
Definition: compat.h:43
tmp
static guint32 * tmp
Definition: goom_core.cpp:26
programtypes.h
DBCredits
std::vector< DBPerson > DBCredits
Definition: programdata.h:73
V2CutList::AddNewCutting
V2Cutting * AddNewCutting()
Definition: v2cutList.h:43
AutoDeleteDeque::begin
iterator begin(void)
Definition: autodeletedeque.h:50
ProgramInfo::IsRepeat
bool IsRepeat(void) const
Definition: programinfo.h:491
RecStatus::WillRecord
@ WillRecord
Definition: recordingstatus.h:31
RecordingInfo::GetProgramRecordingProfile
QString GetProgramRecordingProfile(void) const
Returns recording profile name that will be, or was used, for this program, creating "record" field i...
Definition: recordinginfo.cpp:496
ProgramInfo::GetInetRef
QString GetInetRef(void) const
Definition: programinfo.h:441
V2FillCommBreak
void V2FillCommBreak(V2CutList *pCutList, ProgramInfo *rInfo, int marktype, bool includeFps)
Definition: v2serviceUtil.cpp:691
ProgramInfo::GetVideoPropertyNames
QString GetVideoPropertyNames(void) const
Definition: programinfo.cpp:1520
RecordingRule::m_startOffset
int m_startOffset
Definition: recordingrule.h:109
ProgramInfo::GetYearOfInitialRelease
uint GetYearOfInitialRelease(void) const
Definition: programinfo.h:424
ChannelInfo::m_commMethod
int m_commMethod
Definition: channelinfo.h:119
V2FillInputInfo
void V2FillInputInfo(V2Input *input, const InputInfo &inputInfo)
Definition: v2serviceUtil.cpp:548
ChannelInfo::m_useOnAirGuide
bool m_useOnAirGuide
Definition: channelinfo.h:108
RecordingRule::m_episode
uint m_episode
Definition: recordingrule.h:95
kArtworkCoverart
@ kArtworkCoverart
Definition: metadataimagehelper.h:11
InputInfo::m_recPriority
int m_recPriority
Definition: inputinfo.h:53
minor
#define minor(X)
Definition: compat.h:78
programinfo.h
ProgramInfo::GetScheduledStartTime
QDateTime GetScheduledStartTime(void) const
The scheduled start time of program.
Definition: programinfo.h:391
kArtworkFanart
@ kArtworkFanart
Definition: metadataimagehelper.h:12
ProgramInfo::GetRecordingStatus
RecStatus::Type GetRecordingStatus(void) const
Definition: programinfo.h:451
V2VideoMetadataInfo::Artwork
QObject Artwork
Definition: v2videoMetadataInfo.h:46
v2serviceUtil.h
InputInfo::m_liveTvOrder
uint m_liveTvOrder
order for live TV use
Definition: inputinfo.h:55
RecordingRule::m_autoUserJob4
bool m_autoUserJob4
Definition: recordingrule.h:136
CardUtil::GetV4LInfo
static bool GetV4LInfo(int videofd, QString &input, QString &driver, uint32_t &version, uint32_t &capabilities)
Definition: cardutil.cpp:2353
V2FillRecRuleInfo
void V2FillRecRuleInfo(V2RecRule *pRecRule, RecordingRule *pRule)
Definition: v2serviceUtil.cpp:265
ProgramInfo::GetProgramFlagNames
QString GetProgramFlagNames(void) const
Definition: programinfo.cpp:1509
ProgramInfo::GetSubtitleTypeNames
QString GetSubtitleTypeNames(void) const
Definition: programinfo.cpp:1514
ChannelInfo::GetGroupIds
QList< uint > GetGroupIds() const
Definition: channelinfo.h:57
v2encoder.h
FillEncoderList
void FillEncoderList(QVariantList &list, QObject *parent)
Definition: v2serviceUtil.cpp:767
ChannelInfo::m_atscMinorChan
uint m_atscMinorChan
Definition: channelinfo.h:114
RecordingInfo::GetRecgroupString
static QString GetRecgroupString(uint recGroupID)
Temporary helper during transition from string to ID.
Definition: recordinginfo.cpp:1729
MSqlQuery::InitCon
static MSqlQueryInfo InitCon(ConnectionReuse _reuse=kNormalConnection)
Only use this in combination with MSqlQuery constructor.
Definition: mythdbcon.cpp:550
ProgramInfo::GetTitle
QString GetTitle(void) const
Definition: programinfo.h:362
ProgramInfo::GetDescription
QString GetDescription(void) const
Definition: programinfo.h:366
compat.h
kArtworkBanner
@ kArtworkBanner
Definition: metadataimagehelper.h:13
RecordingRule::m_autoUserJob2
bool m_autoUserJob2
Definition: recordingrule.h:134
BackendContext::GetFrontends
QMap< QString, Frontend * > GetFrontends() const
Definition: backendcontext.h:43
V2FillSeek
void V2FillSeek(V2CutList *pCutList, RecordingInfo *rInfo, MarkTypes marktype)
Definition: v2serviceUtil.cpp:749
ProgramInfo::GetEpisodeTotal
uint GetEpisodeTotal(void) const
Definition: programinfo.h:369
RecordingRule::m_findtime
QTime m_findtime
Time for timeslot rules.
Definition: recordingrule.h:101
V2FillCastMemberList
void V2FillCastMemberList(V2CastMemberList *pCastMemberList, ProgramInfo *pInfo)
Definition: v2serviceUtil.cpp:563
RecordingRule::m_lastRecorded
QDateTime m_lastRecorded
Definition: recordingrule.h:143
RecordingRule::m_autoExpire
bool m_autoExpire
Definition: recordingrule.h:126
V2Encoder
Definition: v2encoder.h:23
RecordingRule::m_recProfile
QString m_recProfile
Definition: recordingrule.h:120
ChannelInfo::m_chanNum
QString m_chanNum
Definition: channelinfo.h:86
ProgramInfo::QueryCutList
bool QueryCutList(frm_dir_map_t &delMap, bool loadAutosave=false) const
Definition: programinfo.cpp:3475
RecordingRule::m_searchType
RecSearchType m_searchType
Definition: recordingrule.h:112
RecordingRule::m_type
RecordingType m_type
Definition: recordingrule.h:111
RecStatus::Conflict
@ Conflict
Definition: recordingstatus.h:39
MythCoreContext::GetNumSettingOnHost
int GetNumSettingOnHost(const QString &key, const QString &host, int defaultval=0)
Definition: mythcorecontext.cpp:947
RecordingRule::m_subtitle
QString m_subtitle
Definition: recordingrule.h:79
V2FillChannelGroup
void V2FillChannelGroup(V2ChannelGroup *pGroup, const ChannelGroupItem &pGroupItem)
Definition: v2serviceUtil.cpp:251
ProgramInfo::GetAudioProperties
uint GetAudioProperties(void) const
Definition: programinfo.h:501
V2CutList
Definition: v2cutList.h:21
kState_WatchingLiveTV
@ kState_WatchingLiveTV
Watching LiveTV is the state for when we are watching a recording and the user has control over the c...
Definition: tv.h:66
ProgramInfo::GetPlaybackGroup
QString GetPlaybackGroup(void) const
Definition: programinfo.h:421
V2Genre
Definition: v2genre.h:21
RecordingRule::m_findday
int m_findday
Day of the week for once per week etc.
Definition: recordingrule.h:104
V2FillChannelInfo
bool V2FillChannelInfo(V2ChannelInfo *pChannel, uint nChanID, bool bDetails)
Definition: v2serviceUtil.cpp:167
ChannelInfo::m_tmOffset
int m_tmOffset
Definition: channelinfo.h:120
RecordingRule::m_filter
unsigned m_filter
Definition: recordingrule.h:115
V2Program::Artwork
QObject Artwork
Definition: v2programAndChannel.h:151
TVRec::s_inputsLock
static QReadWriteLock s_inputsLock
Definition: tv_rec.h:432
gTVList
QMap< int, EncoderLink * > gTVList
Definition: backendcontext.cpp:7
gCoreContext
MythCoreContext * gCoreContext
This global variable contains the MythCoreContext instance for the app.
Definition: mythcorecontext.cpp:55
ProgramInfo::GetSeriesID
QString GetSeriesID(void) const
Definition: programinfo.h:439
MARK_VIDEO_RATE
@ MARK_VIDEO_RATE
Definition: programtypes.h:72
ChannelGroupItem::m_name
QString m_name
Definition: channelgroup.h:29
V2ArtworkInfoList::AddNewArtworkInfo
V2ArtworkInfo * AddNewArtworkInfo()
Definition: v2artworkInfoList.h:46
AutoDeleteDeque::end
iterator end(void)
Definition: autodeletedeque.h:51
V2CreateRecordingGroup
int V2CreateRecordingGroup(const QString &groupName)
Definition: v2serviceUtil.cpp:965
ProgramInfo::GetStorageGroup
QString GetStorageGroup(void) const
Definition: programinfo.h:423
RecordingRule::m_maxEpisodes
int m_maxEpisodes
Definition: recordingrule.h:125
RecStatus::Offline
@ Offline
Definition: recordingstatus.h:44
ProgramInfo::GetOriginalAirDate
QDate GetOriginalAirDate(void) const
Definition: programinfo.h:432
RecordingRule::m_programid
QString m_programid
Definition: recordingrule.h:85
kState_WatchingRecording
@ kState_WatchingRecording
Watching Recording is the state for when we are watching an in progress recording,...
Definition: tv.h:83
channelutil.h
frm_pos_map_t
QMap< long long, long long > frm_pos_map_t
Frame # -> File offset map.
Definition: programtypes.h:44
InputInfo::m_inputId
uint m_inputId
unique key in DB for this input
Definition: inputinfo.h:49
ProgramInfo::GetVideoProperties
uint GetVideoProperties(void) const
Definition: programinfo.h:499
RecStatus::Pending
@ Pending
Definition: recordingstatus.h:17
RecordingRule::m_recGroupID
uint m_recGroupID
Definition: recordingrule.h:123
RecordingRule::m_endtime
QTime m_endtime
Definition: recordingrule.h:92
MusicMetadata::Album
QString Album() const
Definition: musicmetadata.h:150
InputInfo::m_quickTune
bool m_quickTune
Definition: inputinfo.h:56
BackendContext::GetConnectedFrontends
QMap< QString, Frontend * > GetConnectedFrontends() const
Definition: backendcontext.h:42
ProgramInfo::GetDuplicateCheckMethod
RecordingDupMethodType GetDuplicateCheckMethod(void) const
What should be compared to determine if two programs are the same?
Definition: programinfo.h:463
AutoDeleteDeque
Definition: autodeletedeque.h:8
channelinfo.h
ProgramInfo::GetInputID
uint GetInputID(void) const
Definition: programinfo.h:467
V2MusicMetadataInfo
Definition: v2musicMetadataInfo.h:22
InputInfo::m_scheduleOrder
uint m_scheduleOrder
Definition: inputinfo.h:54
InputInfo::m_sourceId
uint m_sourceId
associated channel listings source
Definition: inputinfo.h:48
recordinginfo.h
lstat
#define lstat
Definition: compat.h:121
RecordingRule::m_storageGroup
QString m_storageGroup
Definition: recordingrule.h:121
ProgramInfo::GetChanID
uint GetChanID(void) const
This is the unique key used in the database to locate tuning information.
Definition: programinfo.h:373
ProgramInfo::GetRecordingRuleType
RecordingType GetRecordingRuleType(void) const
Definition: programinfo.h:455
ProgramInfo::GetEpisode
uint GetEpisode(void) const
Definition: programinfo.h:368
RecordingRule::m_transcoder
int m_transcoder
Definition: recordingrule.h:130
RecordingRule::m_autoUserJob1
bool m_autoUserJob1
Definition: recordingrule.h:133
AutoDeleteDeque::push_back
void push_back(T info)
Definition: autodeletedeque.h:69
V2Program::Cast
QObject Cast
Definition: v2programAndChannel.h:152
ChannelInfo::m_serviceId
uint m_serviceId
Definition: channelinfo.h:111
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
channelgroup.h
RecordingRule::m_recordID
int m_recordID
Unique Recording Rule ID.
Definition: recordingrule.h:70
ProgramInfo::GetAudioPropertyNames
QString GetAudioPropertyNames(void) const
Definition: programinfo.cpp:1525
ProgramInfo::QueryKeyFramePosition
bool QueryKeyFramePosition(uint64_t *position, uint64_t keyframe, bool backwards) const
Definition: programinfo.cpp:4220
MusicMetadata::Hostname
QString Hostname(void)
Definition: musicmetadata.h:230
getFirewireList
V2CaptureDeviceList * getFirewireList([[maybe_unused]] const QString &cardType)
Definition: v2serviceUtil.cpp:1107
ProgramInfo::QueryMarkupMap
void QueryMarkupMap(frm_dir_map_t &marks, MarkTypes type, bool merge=false) const
Definition: programinfo.cpp:3674
MARK_CUT_END
@ MARK_CUT_END
Definition: programtypes.h:54
ProgramInfo::GetLastModifiedTime
QDateTime GetLastModifiedTime(void) const
Definition: programinfo.h:433
mythscheduler.h
V2CastMember
Definition: v2castMember.h:19
ProgramInfo::GetSeason
uint GetSeason(void) const
Definition: programinfo.h:367
cardutil.h
v2frontend.h
RecordingRule::m_dupMethod
RecordingDupMethodType m_dupMethod
Definition: recordingrule.h:113
ProgramInfo::GetCategoryTypeString
QString GetCategoryTypeString(void) const
Returns catType as a string.
Definition: programinfo.cpp:1898
V2FillMusicMetadataInfo
void V2FillMusicMetadataInfo(V2MusicMetadataInfo *pVideoMetadataInfo, MusicMetadata *pMetadata, bool bDetails)
Definition: v2serviceUtil.cpp:523
ChannelInfo::Load
bool Load(uint lchanid=-1)
Definition: channelinfo.cpp:131
MSqlQuery::bindValue
void bindValue(const QString &placeholder, const QVariant &val)
Add a single binding.
Definition: mythdbcon.cpp:888
MusicMetadata::LastPlay
QDateTime LastPlay() const
Definition: musicmetadata.h:244
MusicMetadata::Compilation
bool Compilation() const
Definition: musicmetadata.h:252
ChannelInfo::m_sourceId
uint m_sourceId
Definition: channelinfo.h:89
CardUtil::ProbeAudioInputs
static QStringList ProbeAudioInputs(const QString &device, const QString &inputtype=QString())
Definition: cardutil.cpp:2540
RecList
std::deque< RecordingInfo * > RecList
Definition: mythscheduler.h:12
ChannelInfo::m_tvFormat
QString m_tvFormat
Definition: channelinfo.h:105
V2Program
Definition: v2programAndChannel.h:107
RecordingRule::m_autoExtend
AutoExtendType m_autoExtend
Definition: recordingrule.h:116
ChannelInfo::m_recPriority
int m_recPriority
Definition: channelinfo.h:98
tv_rec.h
ProgramInfo::GetDuplicateCheckSource
RecordingDupInType GetDuplicateCheckSource(void) const
Where should we check for duplicates?
Definition: programinfo.h:459
MusicMetadata::PlayCount
int PlayCount() const
Definition: musicmetadata.h:248
InputInfo
Definition: inputinfo.h:14
V2CastMemberList
Definition: v2castMemberList.h:13
kState_RecordingOnly
@ kState_RecordingOnly
Recording Only is a TVRec only state for when we are recording a program, but there is no one current...
Definition: tv.h:87
ChannelInfo::m_xmltvId
QString m_xmltvId
Definition: channelinfo.h:97
V2CastMemberList::AddNewCastMember
V2CastMember * AddNewCastMember()
Definition: v2castMemberList.h:37
ArtworkMap
QMultiMap< VideoArtworkType, ArtworkInfo > ArtworkMap
Definition: metadataimagehelper.h:31
ProgramInfo::QueryCommBreakList
void QueryCommBreakList(frm_dir_map_t &frames) const
Definition: programinfo.cpp:3561
MythCoreContext::GetHostName
QString GetHostName(void)
Definition: mythcorecontext.cpp:842
ChannelInfo::m_videoFilters
QString m_videoFilters
Definition: channelinfo.h:96
Scheduler::GetAllPending
bool GetAllPending(RecList &retList, int recRuleId=0) const
Definition: scheduler.cpp:1745
MusicMetadata::Rating
int Rating() const
Definition: musicmetadata.h:239
V2GenreList
Definition: v2genreList.h:22
ProgramInfo::GetProgramID
QString GetProgramID(void) const
Definition: programinfo.h:440
azlyrics.info
dictionary info
Definition: azlyrics.py:7
ChannelInfo::GetInputIds
QList< uint > GetInputIds() const
Definition: channelinfo.h:67
RecordingRule::m_station
QString m_station
Definition: recordingrule.h:98
V2FillCutList
void V2FillCutList(V2CutList *pCutList, ProgramInfo *rInfo, int marktype, bool includeFps)
Definition: v2serviceUtil.cpp:637
ProgramInfo::GetRecordingRuleID
uint GetRecordingRuleID(void) const
Definition: programinfo.h:453
fillSelectionsFromDir
uint fillSelectionsFromDir(const QDir &dir, uint minor_min, uint minor_max, const QString &card, const QRegularExpression &driver, bool allow_duplicates, V2CaptureDeviceList *pList, const QString &cardType)
Definition: v2serviceUtil.cpp:1036
V2VideoMetadataInfo::Genres
QObject Genres
Definition: v2videoMetadataInfo.h:48
CardUtil::GetAllInputInfo
static QList< InputInfo > GetAllInputInfo(bool virtTuners)
Definition: cardutil.cpp:1733
RecordingRule::m_recPriority
int m_recPriority
Definition: recordingrule.h:107
CardUtil::GetDeviceInputNames
static void GetDeviceInputNames(const QString &device, const QString &inputtype, QStringList &inputs)
Definition: cardutil.cpp:2658
V2GenreList::AddNewGenre
V2Genre * AddNewGenre()
Definition: v2genreList.h:48
ProgramInfo::GetSubtitleType
uint GetSubtitleType(void) const
Definition: programinfo.h:497
RecordingRule::m_autoUserJob3
bool m_autoUserJob3
Definition: recordingrule.h:135
ChannelInfo::m_mplexId
uint m_mplexId
Definition: channelinfo.h:110
ChannelInfo::m_visible
ChannelVisibleType m_visible
Definition: channelinfo.h:106
V2FillArtworkInfoList
void V2FillArtworkInfoList(V2ArtworkInfoList *pArtworkInfoList, const QString &sInetref, uint nSeason)
Definition: v2serviceUtil.cpp:331
V2ArtworkInfo
Definition: v2artworkInfo.h:21
InputInfo::m_displayName
QString m_displayName
Definition: inputinfo.h:52
V2Input
Definition: v2input.h:20
videoutils.h
MusicMetadata::Year
int Year() const
Definition: musicmetadata.h:196
RecordingRule::m_startdate
QDate m_startdate
Definition: recordingrule.h:89
ChannelInfo::m_defaultAuthority
QString m_defaultAuthority
Definition: channelinfo.h:118
ChannelInfo::m_callSign
QString m_callSign
Definition: channelinfo.h:91
RecordingRule::m_autoMetadataLookup
bool m_autoMetadataLookup
Definition: recordingrule.h:137
V2ChannelInfo
Definition: v2programAndChannel.h:27
AutoDeleteDeque::size
size_t size(void) const
Definition: autodeletedeque.h:67
V2Cutting
Definition: v2cutting.h:19
RecordingRule::m_prefInput
int m_prefInput
Definition: recordingrule.h:108
kChannelNotVisible
@ kChannelNotVisible
Definition: channelinfo.h:24
V2jsonCastToCredits
DBCredits * V2jsonCastToCredits(const QJsonObject &cast)
Definition: v2serviceUtil.cpp:985
uint
unsigned int uint
Definition: freesurround.h:24
V2VideoMetadataInfo
Definition: v2videoMetadataInfo.h:9
InputInfo::m_name
QString m_name
input name
Definition: inputinfo.h:47
FillUpcomingList
int FillUpcomingList(QVariantList &list, QObject *parent, int &nStartIndex, int &nCount, bool bShowAll, int nRecordId, int nRecStatus, const QString &Sort)
Definition: v2serviceUtil.cpp:830
MSqlQuery::prepare
bool prepare(const QString &query)
QSqlQuery::prepare() is not thread safe in Qt <= 3.3.2.
Definition: mythdbcon.cpp:837
V2RecRule
Definition: v2recRule.h:12
ProgramInfo::GetSubtitle
QString GetSubtitle(void) const
Definition: programinfo.h:364
ProgramInfo::GetStars
float GetStars(void) const
Definition: programinfo.h:446