Skip to content

Commit

Permalink
fixed setting property fanart_image from python
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Marshall committed Oct 28, 2012
1 parent bf210d1 commit 8ab4836
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions xbmc/interfaces/legacy/ListItem.cpp
Expand Up @@ -177,6 +177,8 @@ namespace XBMCAddon
else if (value == "top")
item->SetSpecialSort(SortSpecialOnTop);
}
else if (lowerKey.CompareNoCase("fanart_image") == 0)
item->SetArt("fanart", value);
else
item->SetProperty(lowerKey.ToLower(), value.c_str());
}
Expand All @@ -195,6 +197,8 @@ namespace XBMCAddon
value.Format("%f", item->GetVideoInfoTag()->m_resumePoint.totalTimeInSeconds);
else if (lowerKey.CompareNoCase("resumetime") == 0)
value.Format("%f", item->GetVideoInfoTag()->m_resumePoint.timeInSeconds);
else if (lowerKey.CompareNoCase("fanart_image") == 0)
value = item->GetArt("fanart");
else
value = item->GetProperty(lowerKey.ToLower()).asString();

Expand Down

0 comments on commit 8ab4836

Please sign in to comment.