Skip to content

Commit

Permalink
Fix All metadata in the library view is temporarily missing after goi…
Browse files Browse the repository at this point in the history
…ng back from pre-play xbmc#1337
  • Loading branch information
LongChair committed Aug 31, 2014
1 parent 0042686 commit c44be61
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions plex/GUI/GUIPlexMediaWindow.cpp
Expand Up @@ -529,10 +529,15 @@ bool CGUIPlexMediaWindow::GetDirectory(const CStdString &strDirectory, CFileItem
{
CURL u(strDirectory);
#ifdef USE_PAGING
// find the item range we need
int Index = m_viewControl.GetSelectedItem();
int NeededRangeStart = Index - PLEX_DEFAULT_PAGE_SIZE / 2;
int NeededRangeEnd = Index + PLEX_DEFAULT_PAGE_SIZE / 2;

if (!boost::algorithm::ends_with(u.GetFileName() , "url/lookup"))
{
u.SetOption("X-Plex-Container-Start", "0");
u.SetOption("X-Plex-Container-Size", boost::lexical_cast<std::string>(PLEX_DEFAULT_PAGE_SIZE));
u.SetOption("X-Plex-Container-Start", boost::lexical_cast<std::string>(NeededRangeStart));
u.SetOption("X-Plex-Container-Size", boost::lexical_cast<std::string>(NeededRangeEnd));
}
#endif

Expand Down

0 comments on commit c44be61

Please sign in to comment.