Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Commit

Permalink
Childtype of any item in recently added episodes/movies/music videos …
Browse files Browse the repository at this point in the history
…node is NODE_TYPE_NONE (default child type)

Fixes items from these nodes being considered directories in CDirectory::Exists() check. This fixes not being able to play items from upnp server's recently added nodes on some upnp clients (including other xbmc instances) as UPnP server would specify item as container on single item details request

Removes unneeded includes
  • Loading branch information
pieh committed Sep 2, 2012
1 parent 2a3f091 commit 3dcbb48
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/

#include "DirectoryNodeRecentlyAddedEpisodes.h"
#include "QueryParams.h"
#include "video/VideoDatabase.h"

using namespace XFILE::VIDEODATABASEDIRECTORY;
Expand All @@ -31,11 +30,6 @@ CDirectoryNodeRecentlyAddedEpisodes::CDirectoryNodeRecentlyAddedEpisodes(const C

}

NODE_TYPE CDirectoryNodeRecentlyAddedEpisodes::GetChildType() const
{
return NODE_TYPE_EPISODES;
}

bool CDirectoryNodeRecentlyAddedEpisodes::GetContent(CFileItemList& items) const
{
CVideoDatabase videodatabase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ namespace XFILE
CDirectoryNodeRecentlyAddedEpisodes(const CStdString& strEntryName, CDirectoryNode* pParent);
protected:
virtual bool GetContent(CFileItemList& items) const;
virtual NODE_TYPE GetChildType() const;
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/

#include "DirectoryNodeRecentlyAddedMovies.h"
#include "QueryParams.h"
#include "video/VideoDatabase.h"

using namespace XFILE::VIDEODATABASEDIRECTORY;
Expand All @@ -31,11 +30,6 @@ CDirectoryNodeRecentlyAddedMovies::CDirectoryNodeRecentlyAddedMovies(const CStdS

}

NODE_TYPE CDirectoryNodeRecentlyAddedMovies::GetChildType() const
{
return NODE_TYPE_TITLE_MOVIES;
}

bool CDirectoryNodeRecentlyAddedMovies::GetContent(CFileItemList& items) const
{
CVideoDatabase videodatabase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ namespace XFILE
CDirectoryNodeRecentlyAddedMovies(const CStdString& strEntryName, CDirectoryNode* pParent);
protected:
virtual bool GetContent(CFileItemList& items) const;
virtual NODE_TYPE GetChildType() const;
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
*/

#include "DirectoryNodeRecentlyAddedMusicVideos.h"
#include "QueryParams.h"
#include "video/VideoDatabase.h"

using namespace XFILE::VIDEODATABASEDIRECTORY;
Expand All @@ -31,11 +30,6 @@ CDirectoryNodeRecentlyAddedMusicVideos::CDirectoryNodeRecentlyAddedMusicVideos(c

}

NODE_TYPE CDirectoryNodeRecentlyAddedMusicVideos::GetChildType() const
{
return NODE_TYPE_TITLE_MUSICVIDEOS;
}

bool CDirectoryNodeRecentlyAddedMusicVideos::GetContent(CFileItemList& items) const
{
CVideoDatabase videodatabase;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ namespace XFILE
CDirectoryNodeRecentlyAddedMusicVideos(const CStdString& strEntryName, CDirectoryNode* pParent);
protected:
virtual bool GetContent(CFileItemList& items) const;
virtual NODE_TYPE GetChildType() const;
};
}
}
Expand Down

0 comments on commit 3dcbb48

Please sign in to comment.