This commit is contained in:
Phill Ridout 2017-12-04 20:49:59 +00:00
parent 4374200ab0
commit baed193444
2 changed files with 2 additions and 2 deletions

View File

@ -281,7 +281,7 @@ class VlcPlayer(MediaPlayer):
log.debug('mediatype: ' + str(controller.media_info.media_type))
# Set tracks for the optical device
if controller.media_info.media_type == MediaType.DVD and \
self.get_live_state() != MediaState.Paused and self.get_preview_state() != MediaState.Paused:
self.get_live_state() != MediaState.Paused and self.get_preview_state() != MediaState.Paused:
log.debug('vlc play, playing started')
if controller.media_info.title_track > 0:
log.debug('vlc play, title_track set: ' + str(controller.media_info.title_track))

View File

@ -38,7 +38,7 @@ class TestValidationError(TestCase):
# GIVEN: The ValidationError class
# WHEN: Creating an instance of ValidationError
error = ValidationError('Test ValidationError')
error = ValidationError('Test ValidationError')
# THEN: Then calling str on the error should return the correct text and it should be an instance of `Exception`
assert str(error) == 'Test ValidationError'