From e9425236a9606bbbd58a6168265b57d2e587ca75 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 26 Apr 2018 15:54:40 +0200 Subject: [PATCH] Removed additional file_name parameter --- platypush/plugins/video/omxplayer.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platypush/plugins/video/omxplayer.py b/platypush/plugins/video/omxplayer.py index ffa1ec34..6f2b7bbe 100644 --- a/platypush/plugins/video/omxplayer.py +++ b/platypush/plugins/video/omxplayer.py @@ -379,14 +379,11 @@ class VideoOmxplayerPlugin(Plugin): if torrent_file: files = [os.path.join( self.download_dir, - torrent_file.files().file_path(i), - torrent_file.files().file_name(i)) + torrent_file.files().file_path(i)) for i in range(0, torrent_file.files().num_files()) if self._is_video_file(torrent_file.files().file_name(i)) ] - print(files) - self.torrent_state['progress'] = 100 * status.progress self.torrent_state['download_rate'] = status.download_rate self.torrent_state['upload_rate'] = status.upload_rate