Browse Source

Set 'Already Downloaded' message when using 'default' format

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
32ac864cbb
1 changed files with 7 additions and 0 deletions
  1. 7
      youtube_dl_gui/downloaders.py

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

Loading…
Cancel
Save