diff --git a/CHANGELOG b/CHANGELOG new file mode 100644 index 0000000..d87bdef --- /dev/null +++ b/CHANGELOG @@ -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. + diff --git a/mythboxee/mythboxee.py b/mythboxee/mythboxee.py index 0bb498e..53d9610 100644 --- a/mythboxee/mythboxee.py +++ b/mythboxee/mythboxee.py @@ -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("(.*?)").findall(html) banners = re.compile("(.*?)").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) diff --git a/mythboxee/skin/Boxee Skin NG/720p/main.xml b/mythboxee/skin/Boxee Skin NG/720p/main.xml index 07a7c0f..27149c6 100644 --- a/mythboxee/skin/Boxee Skin NG/720p/main.xml +++ b/mythboxee/skin/Boxee Skin NG/720p/main.xml @@ -1,6 +1,6 @@ - 13 + 13 yes 82 1280 592 - 122 - 112 + - + - - - @@ -68,6 +68,7 @@ import mythboxee font16b FFFEFEFE + @@ -130,6 +132,7 @@ import mythboxee FFFEFEFE true + diff --git a/mythboxee/skin/Boxee Skin NG/720p/show.xml b/mythboxee/skin/Boxee Skin NG/720p/show.xml index aa3065c..a682925 100644 --- a/mythboxee/skin/Boxee Skin NG/720p/show.xml +++ b/mythboxee/skin/Boxee Skin NG/720p/show.xml @@ -59,7 +59,8 @@ import mythboxee font16b FFFEFEFE true - + + !stringcompare(Container(21).ListItem.property(custom:category),movie) description 22 - 430 + 400 228 160 left @@ -89,7 +91,8 @@ import mythboxee font16 FFCCCCCC Control.HasFocus(2013) - + + description stringcompare(Container(21).ListItem.property(custom:category),movie) 22 - 430 + 400 228 160 left diff --git a/mythboxee/skin/Boxee Skin NG/media/mb_artwork_error.png b/mythboxee/skin/Boxee Skin NG/media/mb_artwork_error.png new file mode 100644 index 0000000..d370470 Binary files /dev/null and b/mythboxee/skin/Boxee Skin NG/media/mb_artwork_error.png differ diff --git a/mythboxee/skin/Boxee Skin NG/media/mb_poster_error.png b/mythboxee/skin/Boxee Skin NG/media/mb_poster_error.png new file mode 100644 index 0000000..e9a7b61 Binary files /dev/null and b/mythboxee/skin/Boxee Skin NG/media/mb_poster_error.png differ