Skip to content

Commit

Permalink
FIX: partial revert of videodb implem
Browse files Browse the repository at this point in the history
  • Loading branch information
koying committed Sep 25, 2018
1 parent 5ff20e6 commit 8984134
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 0 additions & 4 deletions xbmc/PlayListPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
#include "input/Key.h"
#include "URL.h"
#include "messaging/ApplicationMessenger.h"
#include "filesystem/VideoDatabaseFile.h"
#include "messaging/helpers/DialogOKHelper.h"
#include "ServiceBroker.h"

Expand Down Expand Up @@ -296,9 +295,6 @@ bool CPlayListPlayer::Play(int iSong, std::string player, bool bAutoPlay /* = fa

m_iCurrentSong = iSong;
CFileItemPtr item = playlist[m_iCurrentSong];
if (item->IsVideoDb() && !item->HasVideoInfoTag())
*(item->GetVideoInfoTag()) = XFILE::CVideoDatabaseFile::GetVideoTag(CURL(item->GetPath()));

playlist.SetPlayed(true);

m_bPlaybackStarted = false;
Expand Down
3 changes: 3 additions & 0 deletions xbmc/playlists/PlayList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ void CPlayList::Add(const CFileItemPtr &item, int iPosition, int iOrder)
else
item->m_iprogramCount = iOrder;

if (item->IsVideoDb())
item->SetPath(item->GetVideoInfoTag()->m_strFileNameAndPath);

// increment the playable counter
item->ClearProperty("unplayable");
if (m_iPlayableItems < 0)
Expand Down

0 comments on commit 8984134

Please sign in to comment.