Replies: 3 comments 3 replies
-
|
In case anyone comes here from google, the way I worked around problem number two was some really lame python to get a list of artists, albums, and print out the command needed to run to convert the files. Still a lot of copy/paste, but it's fine. import subprocess
flac_album_command = [
"beet",
"list",
"-a",
"format:flac"
]
flac_album_result = subprocess.run(
flac_album_command,
capture_output=True,
text=True
)
flac_albums = set(flac_album_result.stdout.split("\n"))
alac_album_command = [
"beet",
"list",
"-a",
"format:alac"
]
alac_album_result = subprocess.run(
alac_album_command,
capture_output=True,
text=True
)
alac_albums = set(alac_album_result.stdout.split("\n"))
artists_albums_to_sync = flac_albums - alac_albums
for entry in artists_albums_to_sync:
artist, _, album = entry.partition(" - ")
print(f"beet convert artist:'{artist}' album:'{album}' -y format:flac --format alac --dest ./ALAC") |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
|
Ok, I fixed both issues in one go with making one change to def convert_item(
self,
dest_dir,
keep_new,
path_formats,
fmt,
pretend=False,
link=False,
hardlink=False,
):
"""A pipeline thread that converts `Item` objects from a
library.
"""
command, ext = get_format(fmt)
item, original, converted = None, None, None
while True:
item = yield (item, original, converted)
item.format = fmt.upper() # <-- add this line here
dest = item.destination(basedir=dest_dir, path_formats=path_formats)Issue stems from the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello beets community,
I'm new to the project, but with the help of the documentation, I have my beets config file fairly well tuned, but there are a few pain points I still have that I'm hoping I can get help with.
The relevant sections of my config file are as suhc...
The majority of my music collection is in
flacformat, however, I still use iPod's (what can I say, I'm nostalgic and the touch-user interface cannot be beat), so I effectively have a duplicate library inalacformat, and let Apple Music automatically convert toaacwhen I sync to my iPod.I have two problems when I convert, when I run two things happen that I wish I could avoid
FLACdirectory is preserved so my converted files are./ALAC/FLAC/Artist/Album/..., would be good to know if there was a way to have the output go to./ALAC/Artist/Album/....beetsconverts content that has already been converted; I just want it to convert stuff that has yet to be converted.Any input would be greatly appreciated, thanks for creating and maintaining such an awesome tool!
EDIT: I decided for point 2 that I could likely do some fancy query syntax, but I don't seem to have gotten any luck:
Beta Was this translation helpful? Give feedback.
All reactions