Posts: 498
Joined: Jan 2011
Reputation:
6
Ronie,
I would like the PLAY DISC menu item to only show up when a DVD has been inserted in the DVD drive. How do I go about accomplishing that?
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Posts: 15,282
Joined: Jan 2009
Reputation:
739
ronie
Team-Kodi Member
Posts: 15,282
in Includes_Home.xml, make the change in bold (in two places in the file):
<visible>Skin.HasSetting(Menu_PlayDisc) + System.HasMediaDVD</visible>
Posts: 498
Joined: Jan 2011
Reputation:
6
The solution I found, in Includes_Home.xml (in two places in the file):
Change:
<visible>Skin.HasSetting(Menu_PlayDisc)</visible>
To:
<visible>System.HasMediaDVD</visible>
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Posts: 498
Joined: Jan 2011
Reputation:
6
I found I also needed to change lines 2462 and 2497.
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10
Posts: 15,282
Joined: Jan 2009
Reputation:
739
ronie
Team-Kodi Member
Posts: 15,282
you probably need to add '+ System.HasMediaDVD' to line 4030 as well.
Posts: 498
Joined: Jan 2011
Reputation:
6
I changed 4032.
From this:
<visible>!Skin.HasSetting(Menu_PlayDisc_Sub_Playeritems)</visible>
To this:
<visible>!Skin.HasSetting(Menu_PlayDisc_Sub_Playeritems) + System.HasMediaDVD</visible>
That did not get rid of the slide out menu.
I also tried changing line 4024 from this:
<visible>!Skin.HasSetting(Menu_PlayDisc_Sub) + Container(5040).HasFocus(13)</visible>
To this:
<visible>!Skin.HasSetting(Menu_PlayDisc_Sub) + Container(5040).HasFocus(13) + System.HasMediaDVD</visible>
That did not work either.
Kodi 17, Transparency Skin
PogoPlug v4 running Arm Linux 4.4.63 as MySQL (mariadb) server.
Mac OS 10.12.5
2015 27" iMac 3.3 GHz Quad, 16GB RAM, 1TB SSD
2015 13" Macbook Pro, 8GB RAM, 256GB SSD
AppleTV 4 TV OS 10