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

import: Support importing .7z archives #3906

Closed
Freso opened this issue Apr 13, 2021 · 2 comments · Fixed by #3929
Closed

import: Support importing .7z archives #3906

Freso opened this issue Apr 13, 2021 · 2 comments · Fixed by #3929
Labels
feature features we would like to implement

Comments

@Freso
Copy link
Member

Freso commented Apr 13, 2021

Use case

I'm trying to use beets to import music currently bundled in .7z archives.

Solution

Should work similar to how importing of .zip and .rar etc. works.

Alternatives

There is currently a beets feature supporting import for archives, however, it doesn’t (currently) support .7z archives. There seem to be some Python libraries available for handling .7z/LZMA, but not sure if any of them are directly usable by beets (ie., they don’t seem to share a similar interface to the current archive extractors from a cursory glance).

@Freso Freso added the feature features we would like to implement label Apr 13, 2021
@wisp3rwind
Copy link
Member

Sounds like a nice addition! If you've already done some research on 7z libraries, maybe you could link them here? That might be useful for anyone who's interested in implementing it. I don't think the current unzipping stage is set in stone, see also the discussion in #3538.

@Freso
Copy link
Member Author

Freso commented Apr 21, 2021

I have not done much more research than going to https://pypi.org/search/?q=lzma and https://pypi.org/search/?q=7z and looking at some of the modules, trying to see if they had a similar API to what is currently used by beets. Don’t remember which specific ones I looked at.

@arogl arogl mentioned this issue May 7, 2021
2 tasks
sampsyo added a commit that referenced this issue May 10, 2021
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
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants