Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Attachments to items and albums #111

Open
ghost opened this issue Feb 28, 2013 · 65 comments
Open

Attachments to items and albums #111

ghost opened this issue Feb 28, 2013 · 65 comments
Labels
feature features we would like to implement migrated Issue migrated from Google Code

Comments

@ghost
Copy link

ghost commented Feb 28, 2013

This issue was automatically migrated from Google Code.
Original author: adrian.sampson (November 17, 2010 23:05:05)
Original issue: google-code-export/beets#109

@jonathanthomas83
Copy link

I wish to add my vote to this, I am a FLAC (100% log & CUE) man, and until I can move log & CUE files with the beets import, I am unable to use beets (at least, without manually moving those files after import).

However, a suggestion on google code worries me slightly. No changes should ever be made to log files, the point of them is to be accurate at the time of the rip. That means they should never be changed, not even if file names change later on.

So making changes to log & CUE sheets aren't an issue for me, nor is storing them in the database. I simply would love to move them along with the rest of the files, upon import. With options would be a great bonus.

Many thanks.

@jonathanthomas83
Copy link

If there is any way I can help, please let me know. I'm not a Python developer, but if there's anything I can do to help, I will try my very best.

@sampsyo
Copy link
Member

sampsyo commented Sep 11, 2013

If you do have extra time, it can never hurt to have some help thinking though exactly how the feature will work in the form of a set of requirements. Something like the following process would be helpful:

  • Brainstorm a list of all the possible things a user—not just yourself—might want to do with an attachments-like feature.
  • Prioritize this list roughly. Draw a line above which things seem important enough to address and below which the use cases are more optional.
  • Make a second list describing the set of concrete bits of functionality that beets would need to cover all the use cases.
  • Finally, translate these features into detailed designs for the command-line flags, an config options that form the user interface to the functionality. Write proto-documentation for these notional options to describe what they do.

It's not coding, but requirements design like this can sometimes be more helpful than the code itself! Let me know if you're interested.

@jonathanthomas83
Copy link

I'm very interested, it'll help me get on my feet with this stuff. A bit of the language you've used is new to me, being a web designer/HTML/CSS monkey!

What are command-line flags? Proto-documentation? And I'll probably need a it of help with "config options that form the user interface to the functionality"... other than that, I get the gist of what you're asking.

I will try my very best to help you out! :-)

@sampsyo
Copy link
Member

sampsyo commented Sep 11, 2013

Great! I'm happy to clarify; sorry for the use of jargon.

command-line flags: Here I mean the relevant commands and options for the beet CLI program. For example, might we want a beet attach command for adding new files to an album?

config options: Like these.

proto-documentation: Here I was just suggesting that we write up documentation for any commands or config options we invent even though they don't yet exist. Writing documentation before code can help clarify what we want the code to do.

Here's a wiki page to start taking notes in.

@jonathanthomas83
Copy link

Thank you very much and sorry for the lack of understanding. I appreciate your clarification. I'll get cracking on that and will hopefully help out when I get a spare five minutes. Thank you! :-)

@jonathanthomas83
Copy link

Little bit of work on the use cases, not a definitive list and will add to it in the coming few days.

@sampsyo
Copy link
Member

sampsyo commented Sep 12, 2013

Looking good! This is a great start.

I wanted to make one comment on how things are shaping up here: I see the "core" functionality of attachments as being separate from anything we add for dealing with cue files (splitting/joining album FLACs, etc.). The former will become part of beets core; the latter will be a plugin (or possibly multiple plugins) that uses the attachments functionality.

@sampsyo
Copy link
Member

sampsyo commented Sep 12, 2013

Relevant ticket on a potential cuesheet plugin: #136.

@jonathanthomas83
Copy link

Totally agree with your above sentiment. It makes sense for the attachments stuff to be core with further cue sheet functionality offered via plugins. I will endeavor to write a little more later today if I get a chance.

@puretokyo
Copy link

Per my duplicate issue identified in the previous post, I propose that the mechanism be flexible to allow users to specify arbitrary filetypes that could be attached whenever an album is copied or moved. For instance, filetypes could be arbitrarily specified in config.yaml as follows:

attachfiletypes: jpg png log cue nfo m3u

@jonathanthomas83
Copy link

Sounds good to me. I'm sure that's not meant to be a definitive list but I'd like to toss "pdf" into the mix too! :-)

@aquada
Copy link

aquada commented Oct 31, 2013

Want to add my vote for this option. I have found recently I am spending a lot of time going through each processed album and moving the extra files from a CD rip (log, cue, m3u, txt, jpg sometimes in a separate directory), to a directory on my collection. This would be a great assett to get this implemented.

I would like to suggest the option of not only being able to add specific file types, but the option of adding everything. Maybe

attachfiletypes: *

I would like to see it remove the directory also on a move, but that is not a major thing.

thanks

@holms
Copy link

holms commented Nov 3, 2013

I would also vote for attachfiletypes: * because it's a usual case when you have directory name 'Artworks' with full cd scans. Actually there's nice guides on what.cd how a scene organizes music album :) would be handy I think.

@aquada
Copy link

aquada commented Nov 9, 2013

Has anyone got any workarounds? I have many folders with odd files I need to move to my music collection and looking for some time saving. :)

@jonathanthomas83
Copy link

No workarounds from me, it's a chore but as soon as I run "beet import" I drag and drop the attachments into the same folder as the music. However, this isn't ideal because it's not going to be associated with the music in the beets database. A couple of days ago I added a section on how "beet attach" should handle these cases to the wiki page...

https://github.com/sampsyo/beets/wiki/Attachments#beets-functionality

@zeltak
Copy link

zeltak commented Nov 16, 2013

+1 for this issue, i discovered beets today and very anxious to start using it but have thousands of file (lyrics, cue etc) associated with my thousands of albums and dont want to loose it..any update on this?

best

Z

@sampsyo
Copy link
Member

sampsyo commented Nov 18, 2013

Thanks for your vote of confidence, but we're still working on it. If you'd like to contribute, the wiki for the use cases would be a great place to start.

@zeltak
Copy link

zeltak commented Nov 18, 2013

Thx!

As requested I added a non technical (i cant code at all unfortunately :) ) use case (see also pasted below at the end of the post):

I would also like to take the time to thank you alot for beets, i just discovered it and it looks amazing. I cant code but would love to continue and help out and contribute in other areas needed.

A quick related question. since it will take some time (any idea how much very roughly..weeks. months?) to implement the move associated files, how do you recommend i proceed with my use? im really dying to start using beets but i am dependent on associated files in my library (artist images, album images, lyrics files etc). if i import currently all my files into beets i will obviously loose these files. since i have thousands of entry's in my music library i cant manually move the associated files. should i just wait for that move feature or is there another clever way of doing this?

Thx

Z

WIKI entry:
Plugin for moving additional files (like cuesheets, scans etc.) into library on import
This would work in the following way: in the config file you would enable the "move additional files" plugin (maybe "filemove" plugin for short) and configure it based on file type. Also it would be very useful to define the level of files, that is the album folder level (move the album folder files to the associated $album folder and the artist level (move the files found in the artist root folder to the $albumartist/$artist) folder. Also a move/copy option and a delete previous/empty folder could also be great in terms of the config file i assume it would look like this plugins: bpd fetchart embedart replaygain mpdupdate fromfilename filemove filemove: type: *.jpg *.png *.lyric *.lyrics level: 2

Then when you start beet import it will move/copy the audio files and arrange them but in addition will move/copy the associated files to the respective locations based on the configs that is: album level files -> album folder artist levelfiles -> artist root folder

@jonathanthomas83
Copy link

zeltak, see #111 (comment) on how I manually manage attachments, it's not great.

@franciscolourenco
Copy link

+1 to attach everything. I just want all the extras which come with the folder

@ccruzen
Copy link

ccruzen commented Jan 21, 2014

Very interested to see this feature added. Literally the only thing keeping me from using Beets full time for my music org.

@sbarakat
Copy link

Has there been any progress on this?

I've just been writing a plugin to do exactly this. What I've got so far is a plugin that copies any non imported files (album artefacts eg. .log, .cue, etc.) to the destination directory on import. It's a bit rough at the moment, but does the job. I then found this feature request and wondered if anyone has done an implementation of it yet.

I'm happy to work on the plugin and share it (I have a need for it, so I'll be doing it anyway). I develop in Python, so this isn't an issue.

@sampsyo
Copy link
Member

sampsyo commented Feb 13, 2014

We've made progress on the infrastructure level—flexible attributes have come a long way and we've revamped the data model to make this more feasible. But we're not all the way there yet; contributions are still welcome!

And yes, please do publish your plugin! We'll certainly link to it from the docs at the very least.

@jonathanthomas83
Copy link

Anything I can do to help guys? I think there's a few of us willing
attachments on, if there's anything we can do, let us know! :-)

Sami, well done on getting a plugin sorted! :-)

On 13 February 2014 01:29, Adrian Sampson notifications@github.com wrote:

We've made progress on the infrastructure level--flexible attributes have
come a long way and we've revamped the data model to make this more
feasible. But we're not all the way there yet; contributions are still
welcome!

And yes, please do publish your plugin! We'll certainly link to it from
the docs at the very least.

Reply to this email directly or view it on GitHubhttps://github.com//issues/111#issuecomment-34939334
.

@taylorthurlow
Copy link

A lot of great edits on the CLI documentation.

@vext01
Copy link

vext01 commented Jun 1, 2014

Registering interest in this. See #797. My music collection has other files that came with the albums:

  • Album art
  • PDF flyers or other PDF cruft.
  • LSDJ SAV files.
  • ...

I would like to keep those. Ideally in the same dir as the rest of the album.

@holms
Copy link

holms commented Jun 2, 2014

@vext01 i believe you will be able to register any kind of filename you want manually in your configuration file. my personal interest is covers, cue files, log files, and maybe whole directory with cover files. usually 300dpi scans being attached with album :)

@vext01
Copy link

vext01 commented Jun 2, 2014

@holms what configuration directive am I looking for?

@holms
Copy link

holms commented Jun 2, 2014

@vext01 we still don't have attachments ready? or i'm missing something?

@vext01
Copy link

vext01 commented Jun 18, 2014

Any news on this?

@sampsyo
Copy link
Member

sampsyo commented Jun 18, 2014

@vext01 Whenever there's news, it will be posted here! If you're interested in this feature, the best thing you can do is help out.

@Profpatsch
Copy link
Member

The easiest way to handle this is to give an option to simply copy any files over that are not recognized (and not clutter). That way nothing gets lost.

@sampsyo
Copy link
Member

sampsyo commented Jun 21, 2014

@Profpatsch Yes, that's what the stopgap copyartifacts plugin (above) does. This ticket concerns a more complete solution, which would keep track of files in the database also.

@NeuroWinter
Copy link

Has there been any implementation of this as of yet?

@benpye
Copy link

benpye commented Oct 5, 2016

I feel like I'm just repeating the last comment, but I am looking for an organisation solution and beets seems great, however, I would like to keep cue+log files. Is there any workflow that can currently do that with beets or is it going to be impossible without the attachment support? And if the latter, is there any indication that this is a feature that is going to be undertaken.

@Stunner
Copy link
Contributor

Stunner commented Feb 5, 2017

@benpye this task is being undertaken, however slowly as is characteristic with all projects in the open source domain. You can find the in-progress plugin for this here, I have been using it for a little while now and I have no issues with it.

@tom--
Copy link

tom-- commented Feb 5, 2017

UPDATE: ignore me. i hadn't spotted the wip plugin

Perhaps a set of regex substitutions?

When beets processes a dir, for each file in the dir, if the file is not an audio file processed by core beets functionality, and if the file matches one of the configured regexes, then the plugin copies the file to the corresponding destination of the audio files and applies the re.sub.

keepfile:
    - ["^artist\.(?:jpg|png)$", "\0"]
    - ["^.+?\.cue$", "\0"]

Perhaps the substitution strings can include path format variables and functions too.

I'm not familiar with Python regexing but do you get the idea?

@eharris
Copy link

eharris commented Jul 30, 2019

It should be noted that the copyartifacts plugin does not support the link or hardlink config options at all, so support for this within beets is still needed.

@kassisaf
Copy link
Contributor

It may be worth mentioning beets-extrafiles here. It was originally created to replace the copyartifacts plugin, which is no longer maintained. Unfortunately it also hasn't been touched in about 8 months now, despite some significant issues.

@SE2Dev
Copy link

SE2Dev commented Jun 9, 2022

It may be worth mentioning beets-extrafiles here. It was originally created to replace the copyartifacts plugin, which is no longer maintained. Unfortunately it also hasn't been touched in about 8 months now, despite some significant issues.

I'm fairly certain that at this point, both beets-extrafiles and copyartifacts no longer operate correctly with modern versions of beets. I'd imagine that we're pretty likely to repeat the cycle of creating new plugins as a workaround this issue every time the old ones stop being maintained.

@kelvinhammond
Copy link

How do you handle extra files with beets these days?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature features we would like to implement migrated Issue migrated from Google Code
Projects
None yet
Development

No branches or pull requests