Skip to content

Commit

Permalink
Merge pull request #23094 from garbear/backport-fix-game-infotag
Browse files Browse the repository at this point in the history
[Backport] Python API: Fix setting picture/game info via InfoTags
  • Loading branch information
garbear committed Apr 10, 2023
2 parents 7a9f581 + d4d6075 commit 672afa5
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions xbmc/interfaces/legacy/ListItem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -901,17 +901,13 @@ namespace XBMCAddon
xbmc::InfoTagPicture* ListItem::getPictureInfoTag()
{
XBMCAddonUtils::GuiLock lock(languageHook, m_offscreen);
if (item->HasPictureInfoTag())
return new xbmc::InfoTagPicture(item->GetPictureInfoTag(), m_offscreen);
return new xbmc::InfoTagPicture();
return new xbmc::InfoTagPicture(item->GetPictureInfoTag(), m_offscreen);
}

xbmc::InfoTagGame* ListItem::getGameInfoTag()
{
XBMCAddonUtils::GuiLock lock(languageHook, m_offscreen);
if (item->HasGameInfoTag())
return new xbmc::InfoTagGame(item->GetGameInfoTag(), m_offscreen);
return new xbmc::InfoTagGame();
return new xbmc::InfoTagGame(item->GetGameInfoTag(), m_offscreen);
}

std::vector<std::string> ListItem::getStringArray(const InfoLabelValue& alt,
Expand Down

0 comments on commit 672afa5

Please sign in to comment.