@@ -34,24 +34,24 @@ def __init__( self, plugin ):
3434 self .settings = plugin .settings
3535 self .notifier = plugin .notifier
3636
37- def play_movie_with_subs ( self , filmid , external ):
37+ def play_movie_with_subs ( self , filmid , only_set_resolved_url ):
3838 film = self .database .RetrieveFilmInfo ( filmid )
3939 if film is None :
4040 self .notifier .ShowError ( 30990 , self .plugin .language ( 30991 ) )
4141 return
42- ttmname = self .plugin .datapath + '/ subtitle.ttml'
43- srtname = self .plugin .datapath + '/ subtitle.srt'
42+ ttmname = os . path . join ( self .plugin .datapath , ' subtitle.ttml' )
43+ srtname = os . path . join ( self .plugin .datapath , ' subtitle.srt' )
4444 subs = []
4545 if self .download_subtitle ( film , ttmname , srtname , 'subtitle' ):
4646 subs .append ( srtname )
4747 ( videourl , listitem ) = FilmUI ( self .plugin ).get_list_item ( None , film )
4848 if listitem :
4949 if subs :
5050 listitem .setSubtitles ( subs )
51- if external :
52- xbmc .Player ().play ( videourl , listitem )
53- else :
51+ if only_set_resolved_url :
5452 self .plugin .setResolvedUrl ( True , listitem )
53+ else :
54+ xbmc .Player ().play ( videourl , listitem )
5555
5656 def download_subtitle ( self , film , ttmname , srtname , filename ):
5757 ret = False
0 commit comments