mirror of
https://github.com/KevinMidboe/spotify-downloader.git
synced 2025-12-08 20:39:08 +00:00
Move 'encoder not found' warning to more appropriate place
This commit is contained in:
@@ -131,6 +131,8 @@ class Downloader:
|
|||||||
trim_silence=const.args.trim_silence,
|
trim_silence=const.args.trim_silence,
|
||||||
)
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
|
encoder = "avconv" if const.args.avconv else "ffmpeg"
|
||||||
|
log.warning("Could not find {0}, skip encoding".format(encoder))
|
||||||
output_song = self.unconverted_filename(songname)
|
output_song = self.unconverted_filename(songname)
|
||||||
|
|
||||||
if not const.args.no_metadata and self.meta_tags is not None:
|
if not const.args.no_metadata and self.meta_tags is not None:
|
||||||
@@ -169,8 +171,6 @@ class Downloader:
|
|||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def unconverted_filename(songname):
|
def unconverted_filename(songname):
|
||||||
encoder = "avconv" if const.args.avconv else "ffmpeg"
|
|
||||||
log.warning("Could not find {0}, skipping conversion".format(encoder))
|
|
||||||
const.args.output_ext = const.args.input_ext
|
const.args.output_ext = const.args.input_ext
|
||||||
output_song = songname + const.args.output_ext
|
output_song = songname + const.args.output_ext
|
||||||
return output_song
|
return output_song
|
||||||
|
|||||||
Reference in New Issue
Block a user