convert: Playlist feature linting fixes

This commit is contained in:
J0J0 T 2022-07-04 15:09:31 +02:00 committed by J0J0 Todos
parent d448e0c4de
commit fd8fe69738

View file

@ -490,8 +490,8 @@ class ConvertPlugin(BeetsPlugin):
with open(os.path.join(dest, playlist), "w") as playlist_file: with open(os.path.join(dest, playlist), "w") as playlist_file:
playlist_file.write("#EXTM3U" + "\n") playlist_file.write("#EXTM3U" + "\n")
self._parallel_convert(dest, opts.keep_new, path_formats, fmt, self._parallel_convert(dest, opts.keep_new, path_formats, fmt, pretend,
pretend, link, hardlink, threads, items, playlist) link, hardlink, threads, items, playlist)
def convert_on_import(self, lib, item): def convert_on_import(self, lib, item):
"""Transcode a file automatically after it is imported into the """Transcode a file automatically after it is imported into the
@ -592,8 +592,8 @@ class ConvertPlugin(BeetsPlugin):
hardlink = self.config['hardlink'].get(bool) hardlink = self.config['hardlink'].get(bool)
link = self.config['link'].get(bool) link = self.config['link'].get(bool)
return (dest, threads, path_formats, fmt, pretend, hardlink, link,
return dest, threads, path_formats, fmt, pretend, hardlink, link, playlist playlist)
def _parallel_convert(self, dest, keep_new, path_formats, fmt, def _parallel_convert(self, dest, keep_new, path_formats, fmt,
pretend, link, hardlink, threads, items, playlist): pretend, link, hardlink, threads, items, playlist):