Removed Recordings label, as it wasn't being used. Adding new artwork to fill in some places. Added CHANGELOG.

This commit is contained in:
Erik Kristensen 2010-07-25 08:05:00 -04:00
parent a23f0d742d
commit 67a281845c
6 changed files with 51 additions and 23 deletions

13
CHANGELOG Normal file
View File

@ -0,0 +1,13 @@
CHANGELOG
3.23.1.beta
-----------
Resolved several issues with index out of range in python. Mainly revolving around when the app cannot locate a TV shows artwork.
The app now remembers your last sort settings.
The app's default sort settings are now Original Air Date Descending.
3.32.0.beta
-----------
Changed the versioning schema to MAJOR.MYTHTV_VERSION.MINOR.(STATUS)
Added multiple new lines of debugging code to the app to help out with troubleshooting, they will be removed at a later date.

View File

@ -5,6 +5,12 @@ from xml.dom import minidom
config = mc.GetApp().GetLocalConfig()
if not config.GetValue("SortBy"):
config.GetValue("SortBy", "Original Air Date")
if not config.GetValue("SortDir"):
config.GetValue("SortDir", "Descending")
titles = []
recordings = []
idbanners = {}
@ -83,8 +89,6 @@ def LoadSingleShow():
def SetSortables():
config.SetValue("SortBy", "Recorded Date")
config.SetValue("SortDir", "Descending")
sortable = ['Original Air Date', 'Recorded Date', 'Title']
items = mc.ListItems()
for sorttype in sortable:
@ -93,7 +97,7 @@ def SetSortables():
items.append(item)
mc.GetActiveWindow().GetList(2014).SetItems(items)
mc.GetActiveWindow().GetList(2014).SetSelected(1, True)
mc.GetActiveWindow().GetList(2014).SetSelected(0, True)
sortableby = ['Ascending', 'Descending']
items = mc.ListItems()
@ -106,10 +110,6 @@ def SetSortables():
mc.GetActiveWindow().GetList(2015).SetSelected(1, True)
def ShowEpisodeDetails():
print "ShowEpisodeDetails"
def SortBySeriesEpisodes():
sortByItems = sortByItemNumber = mc.GetWindow(14001).GetList(2014).GetSelected()
sortDirectionItems = sortDirectionItemNumber = mc.GetWindow(14001).GetList(2015).GetSelected()
@ -140,12 +140,13 @@ def GetSeriesIDBanner(name):
series = re.compile("<seriesid>(.*?)</seriesid>").findall(html)
banners = re.compile("<banner>(.*?)</banner>").findall(html)
show = []
if series:
try:
show.append(series[0])
show.append("http://www.thetvdb.com/banners/" + banners[0])
else:
except IndexError:
show.append("00000")
show.append("http://192.168.1.210/")
show.append("mb_artwork_error.png")
return show
@ -159,10 +160,16 @@ def GetSetSeriesDetails(name, seriesid):
item = mc.ListItem( mc.ListItem.MEDIA_UNKNOWN )
item.SetLabel(name)
item.SetTitle(name)
if overview:
try:
item.SetDescription(overview[0])
item.SetProperty("description", overview[0])
item.SetThumbnail("http://www.thetvdb.com/banners/" + poster[0])
except:
item.SetDescription("No Description")
item.SetProperty("description", "No Description")
try:
item.SetThumbnail("http://www.thetvdb.com/banners/" + poster[0])
except:
item.SetThumbnail("mb_poster_error.png")
items.append(item)
mc.GetWindow(14001).GetList(21).SetItems(items)

View File

@ -1,6 +1,6 @@
<?xml version="1.0"?>
<window type="window" id="14000">
<defaultcontrol always="true">13</defaultcontrol>
<defaultcontrol>13</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<onload lang="python"><![CDATA[
import mythboxee
@ -32,8 +32,8 @@ import mythboxee
<posy>82</posy>
<width>1280</width>
<height>592</height>
<onleft>122</onleft>
<onright>112</onright>
<onleft>-</onleft>
<onright>-</onright>
<onup>-</onup>
<ondown>-</ondown>
<itemlayout width="420" height="120">
@ -68,6 +68,7 @@ import mythboxee
<font>font16b</font>
<textcolor>FFFEFEFE</textcolor>
</control>
<!--
<control type="label">
<description>videos</description>
<posx>275</posx>
@ -79,7 +80,8 @@ import mythboxee
<label>Recordings: $INFO[ListItem.property(custom:videos)]</label>
<font>font14</font>
<textcolor>FFCCCCCC</textcolor>
</control>
</control>
-->
</itemlayout>
<focusedlayout width="420" height="120">
<control type="togglebutton">
@ -130,6 +132,7 @@ import mythboxee
<textcolor>FFFEFEFE</textcolor>
<scroll>true</scroll>
</control>
<!--
<control type="label">
<description>videos</description>
<posx>275</posx>
@ -142,7 +145,8 @@ import mythboxee
<font>font14</font>
<textcolor>FFCCCCCC</textcolor>
<scroll>true</scroll>
</control>
</control>
-->
</focusedlayout>
<content type="action">
<onclick lang="python"><![CDATA[mythboxee.LoadSingleShow()]]></onclick>

View File

@ -59,7 +59,8 @@ import mythboxee
<font>font16b</font>
<textcolor>FFFEFEFE</textcolor>
<wrapmultiline>true</wrapmultiline>
</control>
</control>
<!--
<control type="label">
<description>recordings</description>
<visible>!stringcompare(Container(21).ListItem.property(custom:category),movie)</visible>
@ -74,12 +75,13 @@ import mythboxee
<font>font16b</font>
<textcolor>FFCCCCCC</textcolor>
<wrapmultiline>false</wrapmultiline>
</control>
</control>
-->
<control type="textbox">
<visible>!stringcompare(Container(21).ListItem.property(custom:category),movie)</visible>
<description>description</description>
<posx>22</posx>
<posy>430</posy>
<posy>400</posy>
<width>228</width>
<height>160</height>
<align>left</align>
@ -89,7 +91,8 @@ import mythboxee
<font>font16</font>
<textcolor>FFCCCCCC</textcolor>
<autoscroll delay="3000" time="2000" repeat="10000">Control.HasFocus(2013)</autoscroll>
</control>
</control>
<!--
<control type="label">
<visible>stringcompare(Container(21).ListItem.property(custom:category),movie)</visible>
<description>videos</description>
@ -104,12 +107,13 @@ import mythboxee
<font>font16b</font>
<textcolor>FFCCCCCC</textcolor>
<wrapmultiline>false</wrapmultiline>
</control>
</control>
-->
<control type="textbox">
<description>description</description>
<visible>stringcompare(Container(21).ListItem.property(custom:category),movie)</visible>
<posx>22</posx>
<posy>430</posy>
<posy>400</posy>
<width>228</width>
<height>160</height>
<align>left</align>

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB