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

Set importer metadata source as a item/album field #1311

Closed
l-t-k opened this issue Feb 6, 2015 · 2 comments
Closed

Set importer metadata source as a item/album field #1311

l-t-k opened this issue Feb 6, 2015 · 2 comments
Assignees
Labels
feature features we would like to implement

Comments

@l-t-k
Copy link
Contributor

l-t-k commented Feb 6, 2015

I'm using three types of sources in my library: MB, Discogs or none (imported asis). The ability to list/modify etc. albums or items that came from a particular source would be useful.

@sampsyo
Copy link
Member

sampsyo commented Feb 6, 2015

Seems like a good idea! I could have sworn we'd talked about this before, but I can't find a previous issue either.

@sampsyo sampsyo added the feature features we would like to implement label Feb 6, 2015
@sampsyo sampsyo changed the title Set source as a item/album field Set importer metadata source as a item/album field Feb 6, 2015
@l-t-k
Copy link
Contributor Author

l-t-k commented Feb 6, 2015

I was thinking the same, but didn't find anything similar. For now, I think I found a workaround. Figured out that the mb_albumartistid is filled with a number (e.g. 255410) if the release is from discogs. If it's from MB it looks a bit like 4de9f2e9-164b-4c0a-9573.... In conclusion this means that the mb_albumartistid is at least 15 characters long if the release is from MB and probably below that value if it's from discogs. For items that are tagged asis the length will be zero (not always the case if you are having a messy library). By using the inline plugin I set the source tag like this:
source: 1 if len(mb_albumartistid) < 15 and len(mb_albumartistid) > 0 else 2 if len(mb_albumartistid) == 0 else 0
Not perfect, but it works. Maybe others can use this as well.

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

No branches or pull requests

3 participants