LisItem.AudioType
#1
Can I have ListItem.AudioType or ListItem.FileExtension so this could be avoided, please:

Code:
<control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>MP3</label>
                <visible>substring(ListItem.Filename,.mp3,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>WMA</label>
                <visible>substring(ListItem.Filename,.wma,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>MPA</label>
                <visible>substring(ListItem.Filename,.mpa,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>AAC</label>
                <visible>substring(ListItem.Filename,.aac,right) | substring(ListItem.Filename,.m4a,right) | substring(ListItem.Filename,.mp4,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>FLAC</label>
                <visible>substring(ListItem.Filename,.flac,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>APE</label>
                <visible>substring(ListItem.Filename,.ape,right)</visible>
            </control>
            <control type="label">
                <include>MusicValuesInfoPanelCommons</include>
                <label>OGG</label>
                <visible>substring(ListItem.Filename,.ogg,right)</visible>
            </control>
My skins:

Amber
Quartz

Reply
#2
ListItem.AudioCodec not work for you?
Reply
#3
Hitcher Wrote:ListItem.AudioCodec not work for you?

To be frank did not try it as it says in wiki that's for video.

I wanted to show song type (MP3, AAC, Flac) in a ListInfo view.
My skins:

Amber
Quartz

Reply
#4
Doh of course it, sorry.
Reply
#5
I was thinking of MusicPlayer.Codec which is no use for Lists.
Reply
#6
We're not yet storing the streamdetails like codec and the likes. Patch welcome :p
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#7
vdrfan Wrote:We're not yet storing the streamdetails like codec and the likes. Patch welcome :p

Thanks for the offer. What about file extensions, could those be available?
My skins:

Amber
Quartz

Reply
#8
Yeah, I'll ping jezz and jmarshall before pushing as they are the skin gurus here.
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#9
Btw, do you guys want it to return the extension only or the extension with dot (.ext)?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#10
vdrfan Wrote:Btw, do you guys want it to return the extension only or the extension with dot (.ext)?

Yup, that's sufficient for me.
My skins:

Amber
Quartz

Reply
#11
So plain extension only (eg. 'wav') ?
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply
#12
Yes that's better.
Image
Reply
#13
vdrfan Wrote:So plain extension only (eg. 'wav') ?

Yes & Thanks.
My skins:

Amber
Quartz

Reply
#14
added: info label 'Listitem.FileExtension' - returns file extension without leading dot (eg. 'wav') in https://github.com/xbmc/xbmc/commit/8689...83481cd917
Always read the online manual (wiki), FAQ (wiki) and search the forum before posting.
Do not PM or e-mail Team-Kodi members directly asking for support. Read/follow the forum rules (wiki).
Please read the pages on troubleshooting (wiki) and bug reporting (wiki) before reporting issues.
Reply

Logout Mark Read Team Forum Stats Members Help
LisItem.AudioType0