Kodi Community Forum

Full Version: Get subsong number (music files with cue sheet)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello everyone.
Maybe I've opened this in wrong subforum, feel free to move it to the right place.

I am trying to check whether list item is subsong, and if it is, to get its number. I can get file path and name using xbmc.getInfoLabel('ListItem.FileNameAndPath') but is there a way to check if item is subsong?

Any help would be appreciated.
No idea what you mean by "subsong"
Hello.
For example I have CD album with 10 songs that was ripped to one file with cue sheet instead of 10 files.
And in cue sheet I have something like this:
Code:
PERFORMER "Fourplay"
TITLE "4"
FILE "Fourplay - 4.flac" WAVE
  TRACK 01 AUDIO
    TITLE "Still The One"
    ISRC USWB19800197
    INDEX 00 00:00:00
    INDEX 01 00:00:32
  TRACK 02 AUDIO
    TITLE "Little Foxes"
    ISRC USWB19800198
    INDEX 00 05:42:50
    INDEX 01 05:42:52
....

Kodi obviously nicely recognizes that.
Image

So subsong would be any of these 10 songs in cue sheet.