Removed additional file_name parameter

This commit is contained in:
Fabio Manganiello 2018-04-26 15:54:40 +02:00
parent 63b3d196e8
commit e9425236a9

View file

@ -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