DVinyl icon indicating copy to clipboard operation
DVinyl copied to clipboard

[Feature]: Logical parsing of "LP" Discogs format

Open HalbridiousBall opened this issue 2 weeks ago • 3 comments

Before suggesting

  • [x] I searched the existing issues and did not find a similar request.

What problem would this solve?

This is related to recently implemented feature #224

Discogs formatting rules state that you should not add "33 1/3rd RPM" and "12 inch" tags to items that have been tagged as "LP", treating them as synonymous. Therefore when synchronizing data from discogs, DVinyl cannot pull speed/size information as the fields are not filled out.

I previously managed this data using custom fields from Discogs, but with #224 being merged, these are now flagged as conflicts with DVinyl's native Speed/Size fields.

It would be nice if we could logically parse the speed/size from the LP Format tag during synchronization.

I did a quick scan of the discogs formatting rules and I didn't see other obvious logical interactions like this but there may be other similar opportunities

How could it work?

When pulling sync data from Discogs, if no other size/speed data is included, the size is updated to 12" and the speed to 33 1/3rd RPM

Special situation consideration: if the user has already selected custom information on DVinyl, sync should probably NOT overwrite the selection

Alternatives you considered

The other (much more complicated) alternative is to allow users to map their custom field to a native field, which also requires mapping custom enumerations to DVinyl enums1 . This has several risky interactions however: - User fields need to share a format with the native field2 - User enumerations may be more extensive so Dvinyl would have to support extending native enumerations

Footnotes:

  1. Example: I use an "RPM" field with "33" as shorthand for "33 1/3rd". This needs to be mapped to the "Speed" field and 33 needs to be mapped to "33 1/3rd"
  2. It might be possible to allow the user to identify plain text from a text field that can get regex parsed into an enum or vice versa but this seems excessive. Additionally, DVinyl supports significantly more format structures than discogs does.

Would you like to help build it?

I could help test it

HalbridiousBall avatar Nov 15 '26 20:11 HalbridiousBall

Hey! Thank you for the detailed write-up, and you're right about the Discogs rule :D I'll make the sync read "LP" as 12" at 33 ⅓ when nothing else is given, and a value you set yourself won't be overwritten. I'll also make "Use the built-in field" understand values like your "33", so you can move your old RPM field into the built-in one. In the meantime, "keep both" makes the warning go away. No promises on timing, but it's a small one. Thanks for offering to test! ;)

Kyonew avatar Nov 15 '26 20:11 Kyonew

A similar item I just noticed as I don't have many digital releases logged on Discogs. Currently, when imported they get logged as Vinyl. You could parse format data from Discogs into "Media Type/Support" selection.

Example: https://www.discogs.com/release/22660226-King-Gizzard-And-The-Lizard-Wizard-Nonagon-Infinity Format shows "File" and "FLAC" compared to a traditional record which should say "Vinyl" in the format.

You also currently support CD and Cassette media types and both have format labels on Discogs.

(There are also other rare legacy media type like Reel-to-Reel, SACD etc. I don't know if you want to support those out-of-the-box, as you use that Media Type field for different layout structures and not just a sort field.)

HalbridiousBall avatar Nov 15 '26 21:11 HalbridiousBall

Good catch, thanks! Right now anything that isn't a CD or a cassette comes in as vinyl, which is wrong for a "File" release. I'll make Discogs' format pick the media type on import and sync, so files come in as Digital. I'll stick to those four types for now, rarer ones like reel-to-reel can stay in a custom field ;)

Kyonew avatar Nov 26 '26 17:11 Kyonew