Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
geigerzaehler committed Apr 1, 2024
1 parent 69d1bcc commit af1cc7b
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion beetsplug/alternatives.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,13 @@
from beets.library import Item, Library, parse_query_string
from beets.plugins import BeetsPlugin
from beets.ui import Subcommand, UserError, decargs, get_path_formats, input_yn, print_
from beets.util import FilesystemError, bytestring_path, displayable_path, syspath
from beets.util import (
FilesystemError,
bytestring_path,
displayable_path,
shlex,
syspath,
)
from typing_extensions import override

import beetsplug.convert as convert
Expand Down Expand Up @@ -386,6 +392,8 @@ def _convert(item):
util.mkdirall(dest)

if self._should_transcode(item):
print("encode", self.convert_cmd, item.path, dest)
print(shlex.split(self.convert_cmd))
self._encode(self.convert_cmd, item.path, dest)
# Don't rely on the converter to write correct/complete tags.
item.write(path=dest)
Expand Down

0 comments on commit af1cc7b

Please sign in to comment.