Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -776,3 +776,11 @@ msgstr ""
msgctxt "#32184"
msgid "ExtendedInfo Script"
msgstr ""

msgctxt "#32194"
msgid "Last Air Date"
msgstr ""

msgctxt "#32195"
msgid "Next Air Date"
msgstr ""
1 change: 1 addition & 0 deletions script.extendedinfo/resources/lib/themoviedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,6 +1375,7 @@ def extended_tvshow_info(tvshow_id:int=None, cache_days:int=7, dbid:str=None) ->
'showtype': info.get('type'),
'homepage': info.get('homepage'),
'last_air_date': info.get('last_air_date'),
'next_air_date': info.get('next_episode_to_air')['air_date'] if info.get('next_episode_to_air') else '',
'totalepisodes': info.get('number_of_episodes'),
'totalseasons': info.get('number_of_seasons'),
'in_production': info.get('in_production')})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2930,12 +2930,9 @@
<texture>info/upright.png</texture>
</control>
<control type="group">
<width>220</width>
<width>252</width>
<visible>!String.IsEmpty(Window.Property(Premiered))</visible>
<control type="label">
<left>0</left>
<top>8</top>
<width>220</width>
<height>38</height>
<align>center</align>
<textcolor>FFFAFAFA</textcolor>
Expand All @@ -2945,7 +2942,6 @@
<control type="label">
<left>0</left>
<top>37</top>
<width>220</width>
<height>38</height>
<align>center</align>
<aligny>center</aligny>
Expand All @@ -2954,6 +2950,31 @@
<font>font10</font>
</control>
</control>
<control type="group">
<description>Last episode and next episode air dates for tv shows</description>
<visible>String.IsEqual(Window.Property(type),tvshow)</visible>
<width>440</width>
<control type="image">
<height>79</height>
<width>2</width>
<texture>info/upright.png</texture>
</control>
<control type="label">
<description>Last episode air date</description>
<left>5</left>
<height>39</height>
<textcolor>FFFAFAFA</textcolor>
<label>$INFO[Window.Property(last_air_date),$ADDON[script.extendedinfo 32194]: ]</label>
</control>
<control type="label">
<description>Next episode air date</description>
<left>5</left>
<height>39</height>
<top>40</top>
<textcolor>FFFAFAFA</textcolor>
<label>$INFO[Window.Property(next_air_date),$ADDON[script.extendedinfo 32195]: ]</label>
</control>
</control>
<control type="group">
<left>0</left>
<width>220</width>
Expand Down