Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[video] no need to re-fetch (and stack) directory in case we already kno... #6975

Merged
merged 1 commit into from
Apr 18, 2015

Conversation

mkortstiege
Copy link
Member

This gets rid of a useless extra directory fetch and stacking when you hit info on a folder that is already added and known.

@Montellese, @xhaggi for review please.

@@ -227,7 +227,7 @@ void CGUIWindowVideoBase::OnInfo(CFileItem* pItem, ADDON::ScraperPtr& scraper)
// so take a copy of the item now
CFileItem item(*pItem);
bool fromDB = false;
if (item.IsVideoDb() && item.HasVideoInfoTag())
if (item.IsVideoDb() || (item.HasVideoInfoTag() && item.GetVideoInfoTag()->m_iDbId != -1))

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@xhaggi xhaggi added the Type: Improvement non-breaking change which improves existing functionality label Apr 18, 2015
@mkortstiege
Copy link
Member Author

Updated. Double checking now.

@Montellese
Copy link
Member

Looks good. I agree with @xhaggi's comments.

@mkortstiege mkortstiege added this to the Isengard 15.0-beta1 milestone Apr 18, 2015
mkortstiege added a commit that referenced this pull request Apr 18, 2015
[video] no need to re-fetch (and stack) directory in case we already kno...
@mkortstiege mkortstiege merged commit a47a31e into xbmc:master Apr 18, 2015
@mkortstiege mkortstiege deleted the fix-oninfo branch July 3, 2015 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants