swingmx / swingmusic

Swing Music is a beautiful, self-hosted music player for your local audio files. Like a cooler Spotify ... but bring your own music.
https://swingmx.com
MIT License
800 stars 43 forks source link

The original year of release #204

Open VlaK0r opened 7 months ago

VlaK0r commented 7 months ago

Hello! Thank you for your hard work!

There are two types of dates in Musicbrains tags. The first is "date" and the second is "originaldate". "originaldate" is the release date of the album. "date" is the release date of the disc. Swingmusic uses the tag "date". As a result, it turns out like this.

image

Q: Do you have plans to support Musicbraints tags? Or the ability to select or customize tags?

cwilvx commented 7 months ago

Hello @VlaK0r

Thanks for opening this issue. Swing Music uses the date field which is provided by the TinyTag module used to extract metadata. I don't know whether it supports Musicbrainz tags.

Would you mind sharing a single file that has the musicbrainz tags. I can look at it and see whether I can make it work.

Thanks.

VlaK0r commented 7 months ago

1.01. Good Times Bad Times - 1969 (2012-11-28) Led Zeppelin - Led Zeppelin.zip

cwilvx commented 7 months ago

@VlaK0r

This is all the metadata extracted from the sample file using Tinytag:

{
    "filename": ".../1.01. Good Times Bad Times - 1969 (2012-11-28) Led Zeppelin - Led Zeppelin.flac",
    "filesize": 19494758,
    "album": "Led Zeppelin",
    "albumartist": "Led Zeppelin",
    "artist": "Led Zeppelin",
    "audio_offset": null,
    "bitrate": 933.5079648842777,
    "channels": 2,
    "comment": null,
    "composer": null,
    "disc": "1",
    "disc_total": "1",
    "duration": 167.06666666666666,
    "extra": {},
    "genre": "Hard Rock",
    "samplerate": 44100,
    "bitdepth": 16,
    "title": "Good Times Bad Times",
    "track": "1",
    "track_total": "9",
    "year": "2012-11-28"
}

There are no music brainz metadata in there. This seems to be an issue with TinyTag. You should open this issue on their repo. Once we have the Music brainz tags in the result (most likely in the extra field), we can make it work from Swing Music.

Thanks.