@@ -1078,6 +1078,7 @@ def buildRecommendedMediaListing(limit,ondeckContent=False,recommendedContent=Tr
10781078 lastplayed = None
10791079 if not item ["title" ] in allTitles and item ["playcount" ] == 0 :
10801080 item ["art" ] = getPVRThumbs (item ["title" ], item ["channel" ],"recordings" )
1081+ item ["tvshowtitle" ] = item ["title" ]
10811082 allOndeckItems .append ((lastplayed ,item ))
10821083 allTitles .append (item ["title" ])
10831084
@@ -1112,11 +1113,11 @@ def buildRecommendedMediaListing(limit,ondeckContent=False,recommendedContent=Tr
11121113 for item in json_result :
11131114 rating = item ["rating" ]
11141115 if not item ["title" ] in set (allTitles ):
1115-
11161116 #get the first unwatched episode for this show
11171117 json_query2 = getJSON ('VideoLibrary.GetEpisodes' , '{ "tvshowid": %d, "sort": {"method":"episode"}, "filter": {"and": [ {"field": "playcount", "operator": "lessthan", "value":"1"}, {"field": "season", "operator": "greaterthan", "value": "0"} ]}, "properties": [ "title", "file" ], "limits":{"end":1}}' % item ['tvshowid' ])
11181118 if json_query2 :
11191119 item ["file" ] = json_query2 [0 ]["file" ]
1120+ item ["tvshowtitle" ] = item ["title" ]
11201121 allRecommendedItems .append ((rating ,item ))
11211122 allTitles .append (item ["title" ])
11221123
@@ -1247,6 +1248,7 @@ def getRecentMedia(limit):
12471248 if not item ["title" ] in allTitles and item ["playcount" ] == 0 :
12481249 channelname = item ["channel" ]
12491250 item ["channel" ] = channelname
1251+ item ["tvshowtitle" ] = item ["title" ]
12501252 item ["art" ] = getPVRThumbs (item ["title" ], channelname , "recordings" )
12511253 if item .get ("art" ) and item ["art" ].get ("thumb" ):
12521254 item ["art" ]["thumb" ] = item ["art" ].get ("thumb" )
0 commit comments