From 32ac864cbb6ea32eb05ad57b08bd696af28024f4 Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Tue, 27 Dec 2016 16:23:20 +0200 Subject: [PATCH] Set 'Already Downloaded' message when using 'default' format --- youtube_dl_gui/downloaders.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/youtube_dl_gui/downloaders.py b/youtube_dl_gui/downloaders.py index c1417c6..a764c62 100644 --- a/youtube_dl_gui/downloaders.py +++ b/youtube_dl_gui/downloaders.py @@ -408,6 +408,13 @@ def extract_data(stdout): data_dictionary['playlist_index'] = stdout[3] data_dictionary['playlist_size'] = stdout[5] + # Remove the 'and merged' part from stdout when using ffmpeg to merge the formats + if stdout[-3] == 'downloaded' and stdout [-1] == 'merged': + stdout = stdout[:-2] + stdout_with_spaces = stdout_with_spaces[:-2] + + data_dictionary['percent'] = '100%' + # Get file already downloaded status if stdout[-1] == 'downloaded': data_dictionary['status'] = 'Already Downloaded'