Post Reply 
prefix disc number
07-12-2023, 13:01
Post: #1
Question prefix disc number
Hi,

How would I prefix disc number to tracks?

the merging of discs into a consecutive sequence is often undesirable for me with albums such as DJ mixes. I would prefer "1-01" for disc 1 and "2-01..." for disc 2 etc.

Is this possible?

Thanks.
Find all posts by this user
Quote this message in a reply
07-12-2023, 13:45
Post: #2
RE: prefix disc number
You can add DiscNumber and TrackNumber to track titles by adding the following to the tagFormat property:

Title.displayFormat={$discnumber^^-^$tracknumber^^ ^$title}

You will also need to add DiscNumber and TrackNumber to the itemTags property.

If you also want to prevent discs being merged, you can add showAllDiscs=true to the serverOptions property.
Find all posts by this user
Quote this message in a reply
12-12-2023, 11:46
Post: #3
RE: prefix disc number
(07-12-2023 13:45)simoncn Wrote:  You can add DiscNumber and TrackNumber to track titles by adding the following to the tagFormat property:

Title.displayFormat={$discnumber^^-^$tracknumber^^ ^$title}

You will also need to add DiscNumber and TrackNumber to the itemTags property.

If you also want to prevent discs being merged, you can add showAllDiscs=true to the serverOptions property.

thanks for the info.

I would like to replace track numbering with the disc prefix for multidisc albums rather than what the above which appears to add the disc and track number to track titles.

So this:

1-01. artist - track title
1-02. artist - track title
etc.

rather than this:

01. artist - 1-01 track title
02. artist - 1-02 track title
etc.

On a related note without any of your suggested changes about when using kodi for multidisc albums with a disc subtitle when sorted by album it will order tracks 01 01, 02 02, 03 03 etc. This should be disc 1, 01, 02, 03 etc. then disc 2, 01, 02, 03 etc...

hope this makes sense!

Thanks for your help
Find all posts by this user
Quote this message in a reply
12-12-2023, 13:35 (This post was last modified: 12-12-2023 16:12 by simbun.)
Post: #4
RE: prefix disc number
(12-12-2023 11:46)minimaleffort Wrote:  I would like to replace track numbering with the disc prefix for multidisc albums rather than what the above which appears to add the disc and track number to track titles.

So this:

1-01. artist - track title
1-02. artist - track title
etc.

rather than this:

01. artist - 1-01 track title
02. artist - 1-02 track title
etc.

It looks like KODI is displaying:
Code:
<tracknumber>. <artist> - <title>

I asked a similar question to simoncn previously, but unfortunately:
(08-04-2021 22:35)simoncn Wrote:  The UPnP specification requires the track number to be an integer.

As you have discovered, MinimServer does not allow track numbers to be modified using value.display or displayFormat.
I guess you may be able to change the trackNumber (for the affected albums) in the tags (or via tagUpdate) to 0101, 0102, 0201, 0202... - although that's obviously not a nice "solution"!


(12-12-2023 11:46)minimaleffort Wrote:  On a related note without any of your suggested changes about when using kodi for multidisc albums with a disc subtitle when sorted by album it will order tracks 01 01, 02 02, 03 03 etc. This should be disc 1, 01, 02, 03 etc. then disc 2, 01, 02, 03 etc...

Control points should display the items in the order they're sent, unfortunately some don't and there's nothing that the server can do to influence it (unless they're sorting by a tag that you can change with displayFormat).
Find all posts by this user
Quote this message in a reply
16-12-2023, 17:07
Post: #5
RE: prefix disc number
(07-12-2023 13:01)minimaleffort Wrote:  Hi,

How would I prefix disc number to tracks?

the merging of discs into a consecutive sequence is often undesirable for me with albums such as DJ mixes. I would prefer "1-01" for disc 1 and "2-01..." for disc 2 etc.

Is this possible?

Thanks.

Personally I use two different tagging approaches for multi-disc albums, depending on what they are:
* Simple compilations - just tag them with disc and track number (making sure to restart the track numbering at 1 for each disc) and let Minim merge them into a single album where the track numbers in disc 2 automatically continue from the end of disc 1.

* DJ Mixes or something where individual discs have some meaning: Either append "(Disc 1)", etc. to the end of the album title, or use DISCSUBTITLE if the different discs have a title, e.g. different DJs on each. Minim still merges the discs but does NOT continue the track numbering on disc 2,etc. Also when browsing the album you see the disc number or title prior to the tracks and you can drill down on a particular disc to see just the tracks for that disc and add them to your play queue in 1 click (depending on control point).

See Albums and Folders in the MinimServer user guide
Find all posts by this user
Quote this message in a reply
20-12-2023, 15:52
Post: #6
RE: prefix disc number
(16-12-2023 17:07)jarvis Wrote:  
(07-12-2023 13:01)minimaleffort Wrote:  Hi,

How would I prefix disc number to tracks?

the merging of discs into a consecutive sequence is often undesirable for me with albums such as DJ mixes. I would prefer "1-01" for disc 1 and "2-01..." for disc 2 etc.

Is this possible?

Thanks.

Personally I use two different tagging approaches for multi-disc albums, depending on what they are:
* Simple compilations - just tag them with disc and track number (making sure to restart the track numbering at 1 for each disc) and let Minim merge them into a single album where the track numbers in disc 2 automatically continue from the end of disc 1.

* DJ Mixes or something where individual discs have some meaning: Either append "(Disc 1)", etc. to the end of the album title, or use DISCSUBTITLE if the different discs have a title, e.g. different DJs on each. Minim still merges the discs but does NOT continue the track numbering on disc 2,etc. Also when browsing the album you see the disc number or title prior to the tracks and you can drill down on a particular disc to see just the tracks for that disc and add them to your play queue in 1 click (depending on control point).

See Albums and Folders in the MinimServer user guide

Good info, thanks.
Find all posts by this user
Quote this message in a reply
20-12-2023, 17:09
Post: #7
RE: prefix disc number
(12-12-2023 13:35)simbun Wrote:  
(12-12-2023 11:46)minimaleffort Wrote:  I would like to replace track numbering with the disc prefix for multidisc albums rather than what the above which appears to add the disc and track number to track titles.

So this:

1-01. artist - track title
1-02. artist - track title
etc.

rather than this:

01. artist - 1-01 track title
02. artist - 1-02 track title
etc.

It looks like KODI is displaying:
Code:
<tracknumber>. <artist> - <title>

I asked a similar question to simoncn previously, but unfortunately:
(08-04-2021 22:35)simoncn Wrote:  The UPnP specification requires the track number to be an integer.

As you have discovered, MinimServer does not allow track numbers to be modified using value.display or displayFormat.
I guess you may be able to change the trackNumber (for the affected albums) in the tags (or via tagUpdate) to 0101, 0102, 0201, 0202... - although that's obviously not a nice "solution"!


(12-12-2023 11:46)minimaleffort Wrote:  On a related note without any of your suggested changes about when using kodi for multidisc albums with a disc subtitle when sorted by album it will order tracks 01 01, 02 02, 03 03 etc. This should be disc 1, 01, 02, 03 etc. then disc 2, 01, 02, 03 etc...

Control points should display the items in the order they're sent, unfortunately some don't and there's nothing that the server can do to influence it (unless they're sorting by a tag that you can change with displayFormat).

Sorry for the very late reply, many thanks for the info!
Find all posts by this user
Quote this message in a reply
21-12-2023, 13:03
Post: #8
RE: prefix disc number
@minimaleffort: Thank you for your contributions to the forum. They are much appreciated.

Please don't quote long chains of previous posts in a brief reply post. The repeated text makes the forum thread hard to read. This is even more of a problem when a reply post quotes text from a previous reply post which includes text from an earlier reply post, etc.

When viewing a forum thread, there is a large New Reply button below and to the right of the last post to the thread. If you click this button to compose your reply, your reply will not contain any quoted text from previous posts. If you are replying to previous general discussion on the thread or to the previous post, there is no need to include quoted text and it is better not to do this.

There is also a smaller Reply button within each post. If you click this, your reply will contain the full text of that post as quoted text. Quoting a previous post might be neccesary to provide context for something you are saying in your reply. If you decide to do this, it can be helpful to edit the quoted text from the previous post so that you don't quote more text than is needed to provide the necessary context for your reply.

When you have written your reply, click the Preview Post button (next to the Post Reply button) before posting the reply. This shows you exactly how your post will look including any quoted text.

Thanks for your understanding.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)