@@ -557,11 +557,12 @@ def Browse(self, path, bNoSort=False, export=0):
557557 gtis = self ._videodata ['urn2gti' ].get (gt , gt )
558558 in_wl = 1 if path .split ('/' )[:3 ] == ['root' , 'Watchlist' , 'watchlist' ] else 0
559559 if gtis is not None :
560+ mt = self ._g .langID .get (m ['videometa' ]['mediatype' ])
561+ if mt is None :
562+ continue
560563 if m ['videometa' ]['mediatype' ] != 'live' :
561- ctxitems .append ((getString (30180 + in_wl ) % getString (self ._g .langID [m ['videometa' ]['mediatype' ]]),
562- f'RunPlugin({ self ._g .pluginid } pv/wltoogle/{ path } /{ quote_plus (gtis )} /{ in_wl } )' ))
563- ctxitems .append ((getString (30185 ) % getString (self ._g .langID [m ['videometa' ]['mediatype' ]]),
564- f'RunPlugin({ self ._g .pluginid } pv/browse/{ itemPathURI } /export={ ft_exp [folderType ] + 10 } )' ))
564+ ctxitems .append ((getString (30180 + in_wl ) % getString (mt ), f'RunPlugin({ self ._g .pluginid } pv/wltoogle/{ path } /{ quote_plus (gtis )} /{ in_wl } )' ))
565+ ctxitems .append ((getString (30185 ) % getString (mt ), f'RunPlugin({ self ._g .pluginid } pv/browse/{ itemPathURI } /export={ ft_exp [folderType ] + 10 } )' ))
565566 ctxitems .append ((getString (30186 ), 'UpdateLibrary(video)' ))
566567
567568 if 'schedule' in m :
@@ -1074,6 +1075,8 @@ def ParseSinglePage(oid, o, bCacheRefresh, data=None, url=None):
10741075 # not inside a season/show: (oid not in details)
10751076 # not already appended: (gti not in GTIs)
10761077 # part of the page details: ('self' in state) & (gti in state['self'])
1078+ if details [gti ]['titleType' ].lower () == 'collection' :
1079+ continue
10771080 if details [gti ]['titleType' ].lower () == 'season' and 'widgets' in data :
10781081 continue
10791082 if (oid not in details ) and (gti not in GTIs ) and ('self' in state ) and (gti in state ['self' ]):
@@ -1113,7 +1116,7 @@ def ParseSinglePage(oid, o, bCacheRefresh, data=None, url=None):
11131116
11141117 # Title
11151118 if bCacheRefresh or ('title' not in vd ):
1116- if item [ ' titleType' ]. lower () == 'season' and 'seasonNumber' in item :
1119+ if titleType == 'season' and 'seasonNumber' in item :
11171120 try :
11181121 vd ['title' ] = data ['strings' ]['AVOD_DP_season_selector' ].format (seasonNumber = item ['seasonNumber' ])
11191122 except :
0 commit comments