Jump to content

Server - Add Musicbrainz's Album Type to Emby Album Schema


ginjaninja

Recommended Posts

ginjaninja
<release id="d39590fe-e002-3153-9347-cd7d2216225f" ext:score="100">


<title>Now That I've Found You: A Collection</title>

<status>Official</status>



<text-representation>


<language>eng</language>

<script>Latn</script>


</text-representation>





<artist-credit>




<name-credit>




<artist id="6b064ead-91a4-4ac8-8076-b1febe4f4aac">


<name>Alison Krauss</name>

<sort-name>Krauss, Alison</sort-name>



<alias-list>


<alias sort-name="Alisson Krauss">Alisson Krauss</alias>

<alias sort-name="Allison Krauss">Allison Krauss</alias>


</alias-list>




</artist>




</name-credit>




</artist-credit>





<release-group id="078e07cf-f0d0-3302-b539-7e73eb74ce25" type="Compilation">


<primary-type>Album</primary-type>



<secondary-type-list>


<secondary-type>Compilation</secondary-type>


</secondary-type-list>




</release-group>



<date>1995</date>

<country>US</country>



<release-event-list>...</release-event-list>



<barcode>0208311203245</barcode>



<label-info-list>...</label-info-list>





<medium-list count="1">...</medium-list>




</release>

 

 

This would allow clients to segment the artist view of albums into a more meaningful categories such as

Single/(Studio )Album/Compilation/Live( Performance)/Other

and provide a richer ui.

 

if the idea has legs, i would be happy to document the different album types returned by MBZ, to save time for a programmer to implement in code.

  • Like 4
Link to comment
Share on other sites

ginjaninja

The mbz schema allows for 1 primary type and multiple secondary types..

the schema for release-id also includes the tag <status>, examples for which are Official|Bootleg

 

Primary-type common examples are Album|Single|Ep (but could be anything)

Secondary-Type common examples are Compilation|Live|Remix|Interview|Soundtrack (but could be anything)

 

Examples

<release-group id="a9981376-d6f7-3fa5-ac76-766e8ba814bd" type="Compilation">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Compilation</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="a9981376-d6f7-3fa5-ac76-766e8ba814bd" type="Compilation">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Compilation</secondary-type>
</secondary-type-list>
<release-group id="6a4028be-549e-45c3-938a-0bb2bdaaf332" type="Live">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Live</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="02f2feaa-aba1-4e31-9a7f-c0fe889fc988" type="Remix">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Remix</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="fa236320-8ab3-3d4c-8c63-c4a35f76f4b2" type="Soundtrack">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Soundtrack</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="cb4fc61e-0ab6-3019-817a-ced84ec15d13" type="Single">
<primary-type>Single</primary-type>
</release-group>
<release-group id="03bdcf51-1a7d-34a6-a461-e0de5db5eff3" type="Single">
<primary-type>Single</primary-type>
<secondary-type-list>
<secondary-type>Compilation</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="13d1a986-96e2-414a-9431-b870baf37b19" type="Single">
<primary-type>Single</primary-type>
<secondary-type-list>
<secondary-type>Interview</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="5a824915-94b5-38c0-b1d0-65a31518423d" type="EP">
<primary-type>EP</primary-type>
</release-group>
<release-group id="030b3af5-8028-3cc6-90b7-255c6c14aa6b" type="Compilation">
<primary-type>Album</primary-type>
<secondary-type-list>
<secondary-type>Compilation</secondary-type>
<secondary-type>Live</secondary-type>
</secondary-type-list>
</release-group>
<release-group id="1cfa9682-fcf4-42a9-bde7-cd2a8cb9f65d" type="Other">
<primary-type>Other</primary-type>
<secondary-type-list>
<secondary-type>Compilation</secondary-type>
</secondary-type-list>
</release-group>

Various Artist Soundtrack

<release-group id="01b0a06e-c65d-46f6-b294-6b855fc1bef9">
<secondary-type-list>
<secondary-type>Soundtrack</secondary-type>
</secondary-type-list>
</release-group>

Although the possible values of pt/st are limitless, it might be more functional for Emby to interpret the infinite gamut of possibilities into a more meaningful presentation in the ui. Such as my category preference of Studio Albums/EPs/Singles/Live Performance/Soundtrack/Other

(IMO No value in showing categories with 0 members)

 

Where

Case 'Live Performance' - Meaning A release with live content

status=any

pt=any including blank

st="Live"

Note: would include live bootlegs but thats fine/helpful

 

Case 'Soundtrack' - Meaning any release that would be considered a soundtrack

status=any

pt=any including blank

st=Soundtrack

 

Case 'Studio Album' - Meaning Official Albums

status=Official (Avoid bootlegs as members)

pt=Album

st=blank (official releases dont seem to have a st)

Note: (Although some artists may release a live performance as an official album, but it would be better under live performance)

 

Case 'EP' - Meaning Official EP

status=Official (although unlikely to be any false positives through lack of specificity)

pt=EP

st=blank (official releases dont seem to have a st)

 

Case 'Single' - Meaning Official Single

status=Official (although unlikely to be any false positives through lack of specificity)

pt=Single

st=Any (in practise i dont need to sub categorise singles for my listening pleasure)

 

Case 'Other' - Catch Content not yet fetched/indexed

everything else, all other 'releases' where the artist is member of albumartist(s)

 

Case 'Featuring' - Content not belonging to the artist.

releases not belonging to the artist (where the artist is not a member of albumartist(s)) but where the artist does feature on one or more tracks on the release.

note: such granularity would be useless if artists views did not separate out artist's albums from other peoples albums where they feature.

 

Would need a classical music buff to consider for classical music as this genre probably has its own nuances for pt/st values and recommended presentation. Classical Artists might need their own design, but thats another can of worms.

Edited by ginjaninja
Link to comment
Share on other sites

  • 3 years later...
  • 2 months later...
ginjaninja

Missing Studio Albums

As emby became more aware of  the studio albums for an album artist, this awareness could perhaps support a "missing studio  album view"......this is useful because sometimes i miss a release of an artist because i am not following them 100%. could be limited to album artists and their studio albums. The individual album artist view would get very cluttered (for album artists where you only have greatest hits), so mostly little point showing missing in the general view, better suited to a dedicated view for missing content.

 

we have missing content for tv, why not for studio albums. :-)

Link to comment
Share on other sites

We should have never done missing TV. It has complicated things in more ways than you can imagine and has been the root cause for many defects that have come over the years.

 

Maybe we could do missing albums, but in a less integrated fashion than how we did it with TV. Like just some sort of plain list off to the side that doesn't end up impacting all of the other core functions of the server.

Link to comment
Share on other sites

ginjaninja

We should have never done missing TV. It has complicated things in more ways than you can imagine and has been the root cause for many defects that have come over the years.

 

Maybe we could do missing albums, but in a less integrated fashion than how we did it with TV. Like just some sort of plain list off to the side that doesn't end up impacting all of the other core functions of the server.

sounds like a challenge...to keep it 100% separate from emby core was thinking a plugin could write out the studio albums of each album artist to an sqllite table, linked by mbzid and tag whether the studio album is present in library (at least 1 release ids in the release group present). with perhaps a dashboard ui to report missing.

 

EDIT

 

got the shell of a plugin with a configuration page, now reviewing autoorganise code for ideas to copy...

Sent from my SM-G955F using Tapatalk

Edited by ginjaninja
Link to comment
Share on other sites

  • 5 months later...
electricwildflower

Just what i was looking for and a great idea especially for people like myself that have huge collections of albums, singles, ep, live, bootleg etc, having everything separate would look cleaner and easier for me see what i do and don't have :)  

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...