Skip to content

Commit ffdea26

Browse files
committed
Fixed mp3 conversion failing to pick up mp3 filename
1 parent f969b34 commit ffdea26

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

Modules/download_element.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ def process_output(self):
185185
percent = '{0:.1f}%'.format(current_segment / segment_no * 100)
186186
self.progress = percent
187187

188-
elif stdout[0] == '[ffmpeg]':
188+
elif stdout[0] in ('[ffmpeg]', '[EmbedThumbnail]', '[ThumbnailsConvertor]',
189+
'[ExtractAudio]', '[Metadata]', '[Merger]'):
189190
self.status = 'Post Processing'
190191

191192
if stdout[1] == 'Merging':

core.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -727,11 +727,11 @@ def parameter_updater(self, item: QTreeWidgetItem, col=None, save=True):
727727
def dir_info(self):
728728
# TODO: Print this info to GUI.
729729
file_dir = os.path.dirname(os.path.abspath(__file__)).replace('\\', '/')
730-
debug = [color_text('Youtube-dl.exe path: ') + self.youtube_dl_path,
731-
color_text('ffmpeg.exe path: ') + self.ffmpeg_path,
732-
color_text('Filedir: ') + file_dir,
733-
color_text('Workdir: ') + self.file_handler.work_dir,
734-
color_text('Youtube-dl working directory: ') + self.program_workdir]
730+
debug = [color_text('Youtube-dl.exe path: ') + str(self.youtube_dl_path),
731+
color_text('ffmpeg.exe path: ') + str(self.ffmpeg_path),
732+
color_text('Filedir: ') + str(file_dir),
733+
color_text('Workdir: ') + str(self.file_handler.work_dir),
734+
color_text('Youtube-dl working directory: ') + str(self.program_workdir)]
735735

736736
debug += [color_text('\nIcon paths:'), *self.icon_list]
737737

0 commit comments

Comments
 (0)