2021-07-02, 05:44
(2021-07-02, 04:16)pfp-az Wrote: It should be coming from the file name since that includes 7.1. But the multiple audio tracks is interesting.
Below is the code that gets the audio from the folder / file name.
AudioChannelCustom is what is being displayed in the skin.
ListItem.AudioChannels is what comes from the scraper and this is used if a match os not found in the name.
xml:
<variable name="AudioChannelCustom">
<value condition="String.Contains(ListItem.FileNameAndPath,1.0)">1</value>
<value condition="String.Contains(ListItem.FileNameAndPath,2.0)">2</value>
<value condition="String.Contains(ListItem.FileNameAndPath,2.1)">3</value>
<value condition="String.Contains(ListItem.FileNameAndPath,4.0)">4</value>
<value condition="String.Contains(ListItem.FileNameAndPath,4.1)">5</value>
<value condition="String.Contains(ListItem.FileNameAndPath,5.1)">6</value>
<value condition="String.Contains(ListItem.FileNameAndPath,6.1)">7</value>
<value condition="String.Contains(ListItem.FileNameAndPath,7.1)">8</value>
<value>$INFO[ListItem.AudioChannels]</value>
</variable>
I'll try to look into this tomorrow.
4,000 words.
ScopeNox-1.26.7
ScopeNox-1.26.6
Same files.