Skip to content

Commit

Permalink
Merge pull request #16697 from ksooo/guiinfo-listitem-isnew
Browse files Browse the repository at this point in the history
[guiinfo][pvr][Estuary] Rename Listitem.IsPremiere to Listitem.IsNew.
  • Loading branch information
ksooo committed Oct 2, 2019
2 parents c3b50ae + f05b712 commit 9d52eab
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions addons/skin.estuary/xml/Includes_PVR.xml
Expand Up @@ -461,7 +461,7 @@
<label>$INFO[ListItem.Label]</label>
</control>
<control type="image">
<visible>ListItem.IsPremiere</visible>
<visible>ListItem.IsNew</visible>
<left>6</left>
<top>35</top>
<width>16</width>
Expand All @@ -475,7 +475,7 @@
<width>16</width>
<height>16</height>
<texture>$VAR[PVRTimerIcon]</texture>
<animation effect="slide" start="0,0" end="19,0" condition="ListItem.IsPremiere">Conditional</animation>
<animation effect="slide" start="0,0" end="19,0" condition="ListItem.IsNew">Conditional</animation>
</control>
</itemlayout>
<focusedlayout height="62" width="60">
Expand Down Expand Up @@ -508,7 +508,7 @@
<label>$INFO[ListItem.Label]</label>
</control>
<control type="image">
<visible>ListItem.IsPremiere</visible>
<visible>ListItem.IsNew</visible>
<left>6</left>
<top>35</top>
<width>16</width>
Expand All @@ -522,7 +522,7 @@
<width>16</width>
<height>16</height>
<texture>$VAR[PVRTimerIcon]</texture>
<animation effect="slide" start="0,0" end="19,0" condition="ListItem.IsPremiere">Conditional</animation>
<animation effect="slide" start="0,0" end="19,0" condition="ListItem.IsNew">Conditional</animation>
</control>
</focusedlayout>
</control>
Expand Down
2 changes: 1 addition & 1 deletion addons/skin.estuary/xml/Variables.xml
Expand Up @@ -462,7 +462,7 @@
<value>$INFO[ListItem.Season,S]$INFO[ListItem.Episode,E,: ]</value>
</variable>
<variable name="PremieredLabel">
<value condition="!String.IsEmpty(ListItem.Premiered) + ListItem.IsPremiere">[COLOR grey]$LOCALIZE[20416]:[/COLOR] $INFO[ListItem.Premiered] [B]([COLOR button_focus]$LOCALIZE[842][/COLOR])[/B][CR]</value>
<value condition="!String.IsEmpty(ListItem.Premiered) + ListItem.IsNew">[COLOR grey]$LOCALIZE[20416]:[/COLOR] $INFO[ListItem.Premiered] [B]([COLOR button_focus]$LOCALIZE[842][/COLOR])[/B][CR]</value>
<value>$INFO[ListItem.Premiered,[COLOR grey]$LOCALIZE[20416]:[/COLOR] ,[CR]]</value>
</variable>
<variable name="ExpirationDateTimeLabel">
Expand Down
10 changes: 5 additions & 5 deletions xbmc/GUIInfoManager.cpp
Expand Up @@ -5727,12 +5727,12 @@ const infomap container_str[] = {{ "property", CONTAINER_PROPERTY },
/// @skinning_v19 **[New Infolabel]** \link ListItem_CurrentItem `ListItem.CurrentItem`\endlink
/// <p>
/// }
/// \table_row3{ <b>`ListItem.IsPremiere`</b>,
/// \anchor ListItem_IsPremiere
/// \table_row3{ <b>`ListItem.IsNew`</b>,
/// \anchor ListItem_IsNew
/// _boolean_,
/// @return **True** if the item is a premiere (for example, a Live TV show that will be first aired).
/// @return **True** if the item is new (for example, a Live TV show that will be first aired).
/// <p><hr>
/// @skinning_v19 **[New Infolabel]** \link ListItem_IsPremiere `ListItem.IsPremiere`\endlink
/// @skinning_v19 **[New Infolabel]** \link ListItem_IsNew `ListItem.IsNew`\endlink
/// <p>
/// }
/// \table_end
Expand Down Expand Up @@ -5927,7 +5927,7 @@ const infomap listitem_labels[]= {{ "thumb", LISTITEM_THUMB },
{ "property", LISTITEM_PROPERTY },
{ "parentalrating", LISTITEM_PARENTAL_RATING },
{ "currentitem", LISTITEM_CURRENTITEM },
{ "ispremiere", LISTITEM_IS_PREMIERE },
{ "isnew", LISTITEM_IS_NEW },
};

/// \page modules__infolabels_boolean_conditions
Expand Down
2 changes: 1 addition & 1 deletion xbmc/guilib/guiinfo/GUIInfoLabels.h
Expand Up @@ -883,7 +883,7 @@
#define LISTITEM_ISPLAYABLE (LISTITEM_START + 186)
#define LISTITEM_FILENAME_NO_EXTENSION (LISTITEM_START + 187)
#define LISTITEM_CURRENTITEM (LISTITEM_START + 188)
#define LISTITEM_IS_PREMIERE (LISTITEM_START + 189)
#define LISTITEM_IS_NEW (LISTITEM_START + 189)

#define LISTITEM_END (LISTITEM_START + 2500)

Expand Down
2 changes: 1 addition & 1 deletion xbmc/pvr/PVRGUIInfo.cpp
Expand Up @@ -1242,7 +1242,7 @@ bool CPVRGUIInfo::GetListItemAndPlayerBool(const CFileItem* item, const CGUIInfo
return true;
}
break;
case LISTITEM_IS_PREMIERE:
case LISTITEM_IS_NEW:
if (item->IsEPG())
{
const std::shared_ptr<CPVREpgInfoTag> epgTag = item->GetEPGInfoTag();
Expand Down

0 comments on commit 9d52eab

Please sign in to comment.