Skip to content

Commit

Permalink
Fixed test in movieSelected (#4176)
Browse files Browse the repository at this point in the history
  • Loading branch information
ims21 authored Jan 26, 2025
1 parent 6d36942 commit e416fc7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/python/Screens/InfoBar.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,11 @@ def movieSelected(self, service):
if service is None:
if ref and not self.session.nav.getCurrentlyPlayingServiceOrGroup():
self.session.nav.playService(ref)
elif type(service) is eServiceReference:
elif service.valid():
from Components.ParentalControl import parentalControl
if parentalControl.isServicePlayable(service, self.openMoviePlayer):
self.openMoviePlayer(service)
elif service == True:
elif service is True:
self.showMovies()

def openMoviePlayer(self, ref):
Expand Down Expand Up @@ -536,14 +536,14 @@ def showMovies(self):
self.movieselection_dlg = self.session.openWithCallback(self.movieSelected, Screens.MovieSelection.MovieSelection, ref)

def movieSelected(self, service):
if type(service) is eServiceReference:
if service.valid():
if self.cur_service and self.cur_service != service:
resumePointsInstance.setResumePoint(self.session)
self.cur_service = service
self.is_closing = False
self.session.nav.playService(service)
self.returning = False
elif service == True:
elif service is True:
self.showMovies()
elif self.returning:
self.close()
Expand Down

0 comments on commit e416fc7

Please sign in to comment.