From d5ea1ffc2c9fdc321775e886f3a48f9b9df207c3 Mon Sep 17 00:00:00 2001 From: Julien Hebert Date: Thu, 6 Dec 2012 19:31:12 +0100 Subject: [PATCH] on est pas sous apple. --- weboob/tools/application/media_player.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/weboob/tools/application/media_player.py b/weboob/tools/application/media_player.py index d673b0c5..f479f579 100644 --- a/weboob/tools/application/media_player.py +++ b/weboob/tools/application/media_player.py @@ -73,10 +73,7 @@ class MediaPlayer(object): _play_rtmp for special rtmp streams using SWF verification. """ player_names = [player[0] for player in PLAYERS] - if player_name: - if player_name not in player_names: - raise InvalidMediaPlayer(player_name) - else: + if not player_name: self.logger.debug(u'No media player given. Using the first available from: %s.' % \ ', '.join(player_names)) player_name = self.guess_player_name()