@@ -80,10 +80,11 @@ class VideoPlayHandleMedia : public VideoPlayProc
8080 VideoPlayHandleMedia (const QString &handler, const QString &mrl,
8181 const QString &plot, const QString &title, const QString &subtitle,
8282 const QString &director, int season, int episode, const QString &inetref,
83- int length, const QString &year) :
83+ int length, const QString &year, const QString &id ) :
8484 m_handler (handler), m_mrl(mrl), m_plot(plot), m_title(title),
8585 m_subtitle (subtitle), m_director(director), m_season(season),
86- m_episode (episode), m_inetref(inetref), m_length(length), m_year(year)
86+ m_episode (episode), m_inetref(inetref), m_length(length), m_year(year),
87+ m_id (id)
8788 {
8889 }
8990
@@ -92,17 +93,17 @@ class VideoPlayHandleMedia : public VideoPlayProc
9293 const QString &mrl, const QString &plot, const QString &title,
9394 const QString &subtitle, const QString &director,
9495 int season, int episode, const QString &inetref,
95- int length, const QString &year)
96+ int length, const QString &year, const QString &id )
9697 {
9798 return new VideoPlayHandleMedia (handler, mrl, plot, title, subtitle,
98- director, season, episode, inetref, length, year);
99+ director, season, episode, inetref, length, year, id );
99100 }
100101
101102 bool Play () const
102103 {
103104 return GetMythMainWindow ()->HandleMedia (m_handler, m_mrl,
104105 m_plot, m_title, m_subtitle, m_director, m_season,
105- m_episode, m_inetref, m_length, m_year);
106+ m_episode, m_inetref, m_length, m_year, m_id );
106107 }
107108
108109 QString GetCommandDisplayName () const
@@ -127,6 +128,7 @@ class VideoPlayHandleMedia : public VideoPlayProc
127128 QString m_inetref;
128129 int m_length;
129130 QString m_year;
131+ QString m_id;
130132};
131133
132134// //////////////////////////////////////////////////////////////////////
@@ -216,7 +218,8 @@ class VideoPlayerCommandPrivate
216218 item->GetTitle (), item->GetSubtitle (),
217219 item->GetDirector (), item->GetSeason (),
218220 item->GetEpisode (), item->GetInetRef (),
219- item->GetLength (), QString::number (item->GetYear ()));
221+ item->GetLength (), QString::number (item->GetYear ()),
222+ QString::number (item->GetID ()));
220223 }
221224 else
222225 {
@@ -244,7 +247,8 @@ class VideoPlayerCommandPrivate
244247 item->GetTitle (), item->GetSubtitle (),
245248 item->GetDirector (), item->GetSeason (),
246249 item->GetEpisode (), item->GetInetRef (),
247- item->GetLength (), QString::number (item->GetYear ()));
250+ item->GetLength (), QString::number (item->GetYear ()),
251+ QString::number (item->GetID ()));
248252 }
249253 else
250254 {
@@ -290,6 +294,7 @@ class VideoPlayerCommandPrivate
290294 QString inetref;
291295 int length = 0 ;
292296 QString year = QString::number (VIDEO_YEAR_DEFAULT);
297+ QString id;
293298
294299 if (extraData)
295300 {
@@ -302,10 +307,11 @@ class VideoPlayerCommandPrivate
302307 inetref = extraData->GetInetRef ();
303308 length = extraData->GetLength ();
304309 year = QString::number (extraData->GetYear ());
310+ id = QString::number (extraData->GetID ());
305311 }
306312
307313 AddPlayer (play_command, filename, plot, title, subtitle, director,
308- season, episode, inetref, length, year);
314+ season, episode, inetref, length, year, id );
309315 }
310316
311317 void ClearPlayerList ()
@@ -338,11 +344,11 @@ class VideoPlayerCommandPrivate
338344 void AddPlayer (const QString &player, const QString &filename,
339345 const QString &plot, const QString &title, const QString &subtitle,
340346 const QString &director, int season, int episode, const QString &inetref,
341- int length, const QString &year)
347+ int length, const QString &year, const QString &id )
342348 {
343349 m_player_procs.push_back (VideoPlayHandleMedia::Create (player, filename,
344350 plot, title, subtitle, director, season, episode, inetref,
345- length, year));
351+ length, year, id ));
346352 m_player_procs.push_back (VideoPlayMythSystem::Create (player, filename));
347353 }
348354
0 commit comments