Kodi Community Forum
Get subsong number (music files with cue sheet) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Get subsong number (music files with cue sheet) (/showthread.php?tid=355381)



Get subsong number (music files with cue sheet) - garson - 2020-06-22

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.


RE: Get subsong number (music files with cue sheet) - DaveBlake - 2020-06-24

No idea what you mean by "subsong"


RE: Get subsong number (music files with cue sheet) - garson - 2020-06-24

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.