Help editing mytvrecordedtv.xml (1 Viewer)

kiwijunglist

Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    rec01.jpg
    rec02.jpg




    Hi,

    In recorded tv if you record more than one episode you get an ugly folder image. However I notice that when you hover over the folder, you get the info for the first recording inside that folder at the bottom of the screen.

    Is it possible to edit the .xml and either
    (1) Have it display the recording's thumbnail instead of the folder thumbnail?
    or
    (2) Have it reference an image file that uses the title of the recording, "eg. c:\tvshows\%recordedshowname%.jpg" which in the screenshot above would be "c:\tvshows\7 Days.jpg"

    I've found the code that displays the folder image (highlighted in bold), but I'm not sure what to change it to.

    Entire xml:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
    <id>603</id>
    <defaultcontrol>11</defaultcontrol>
    <allowoverlay>yes</allowoverlay>
    <controls>

    <import>common.window.recordings.xml</import>
    <import>common.time.xml</import>

    <control>
    <animation effect="fade" time="250">WindowOpen</animation>
    <animation effect="fade" time="250">WindowClose</animation>
    <type>label</type>
    <id>1</id>
    <posX>185</posX>
    <posY>38</posY>
    <width>800</width>
    <label>604</label>
    <textcolor>6aa5cb</textcolor>
    <font>font22</font>
    <visible>facadeview.list|facadeview.smallicons|facadeview.largeicons|facadeview.filmstrip</visible>
    </control>

    <control>
    <type>group</type>
    <description>group element</description>
    <id>0</id>
    <posX>455</posX>
    <posY>116</posY>
    <width>778</width>
    <dimColor>ffffffff</dimColor>
    <height>583</height>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>

    <!-- List -->

    <control>
    <id>0</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">defaultTVBig.png</texture>
    <visible>facadeview.list+[!control.hasthumb(500)|string.equals(#selectedthumb,defaultFolderBig.png)]+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>500</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">#selectedthumb</texture>
    <visible>facadeview.list+!string.equals(#selectedthumb,defaultFolderBig.png)+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>0</id>
    <type>image</type>
    <posX>7</posX>
    <posY>106</posY>
    <width>556</width>
    <height>373</height>
    <texture>recordings_thumb_shadow.png</texture>
    <visible>facadeview.list</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>0</id>
    <type>image</type>
    <posX>536</posX>
    <posY>293</posY>
    <width>187</width>
    <height>119</height>
    <texture>tv_logo_bg.png</texture>
    <visible>facadeview.list+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>0</id>
    <type>image</type>
    <posX>585</posX>
    <posY>307</posY>
    <width>90</width>
    <height>90</height>
    <texture>#TV.RecordedTV.thumb</texture>
    <visible>facadeview.list</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>
    <!--
    <control>
    <description>Current program channel</description>
    <type>label</type>
    <id>0</id>
    <posX>1488</posX>
    <posY>372</posY>
    <label>#TV.RecordedTV.Channel</label>
    <font>Segoe Light14</font>
    <textcolor>85cffe</textcolor>
    <visible>facadeview.list</visible>
    </control>
    -->
    <control>
    <type>fadelabel</type>
    <description>Current program time</description>
    <id>0</id>
    <posX>74</posX>
    <posY>532</posY>
    <width>800</width>
    <textcolor>6aa5cb</textcolor>
    <font>AvalonLight14</font>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    <label>#TV.RecordedTV.Time | #TV.RecordedTV.Genre</label>
    <visible>facadeview.list</visible>
    </control>

    <control>
    <type>textboxscrollup</type>
    <description>Description1</description>
    <id>0</id>
    <posX>74</posX>
    <posY>594</posY>
    <width>780</width>
    <height>320</height>
    <lineSpacing>0.85</lineSpacing>
    <label>#TV.RecordedTV.Description</label>
    <visible>facadeview.list</visible>
    </control>

    <control>
    <animation effect="slide" start="-60,0" end="0,0" tween="quadratic" easing="in" time="250" delay="400">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="-60,0" tween="quadratic" easing="in" time="250" delay="100">WindowClose</animation>
    <id>1</id>
    <type>image</type>
    <posY>440</posY>
    <width>64</width>
    <height>199</height>
    <texture>hiddenmenu_tab.png</texture>
    <visible>[facadeview.list|facadeview.smallicons|facadeview.largeicons]+Control.HasFocus(50)</visible>
    </control>

    <!-- Thumb -->

    <control>
    <description>Current program channel</description>
    <type>fadelabel</type>
    <id>0</id>
    <posX>678</posX>
    <posY>867</posY>
    <width>900</width>
    <align>left</align>
    <font>AvalonLight12</font>
    <textcolor>6aa5cb</textcolor>
    <label>#TV.RecordedTV.Channel | #TV.RecordedTV.Time | #TV.RecordedTV.Genre</label>
    <visible>facadeview.smallicons|facadeview.largeicons</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <type>textboxscrollup</type>
    <description>Description1</description>
    <id>0</id>
    <posX>678</posX>
    <posY>906</posY>
    <width>1060</width>
    <height>160</height>
    <font>AvalonLight12</font>
    <lineSpacing>0.85</lineSpacing>
    <label>#TV.RecordedTV.Description</label>
    <visible>facadeview.smallicons|facadeview.largeicons</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <!-- Filmstrip -->

    <control>
    <type>label</type>
    <description>Current program time</description>
    <id>0</id>
    <posX>720</posX>
    <posY>1015</posY>
    <width>900</width>
    <font>AvalonLight12</font>
    <textcolor>6aa5cb</textcolor>
    <label>#TV.RecordedTV.Channel | #TV.RecordedTV.Time | #TV.RecordedTV.Genre</label>
    <visible>facadeview.filmstrip</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <animation effect="slide" start="0,-60" end="0,0" tween="quadratic" easing="in" time="250" delay="400">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="0,-60" tween="quadratic" easing="in" time="250" delay="100">WindowClose</animation>
    <id>1</id>
    <type>image</type>
    <posX>858</posX>
    <posY>0</posY>
    <texture>hiddenmenu_tab_up.png</texture>
    <visible>facadeview.filmstrip+Control.HasFocus(50)</visible>
    </control>

    </control>
    <import>mytvrecordedtv.hiddenmenu.xml</import>
    <import>common.facade.recordings.xml</import>
    <import>common.overlay.xml</import>
    </controls>
    </window>
    [/code]
    Part that I think I'm supposed to change:
    <control>
    <id>0</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">defaultTVBig.png</texture>
    <visible>facadeview.list+[!control.hasthumb(500)|string.equals(#selectedthumb,defaultFolderBig.png)]+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>500</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">#selectedthumb</texture>
    <visible>facadeview.list+!string.equals(#selectedthumb,defaultFolderBig.png)+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>
     
    Last edited:

    kiwijunglist

    Super Moderator
  • Team MediaPortal
  • June 10, 2008
    6,746
    1,751
    New Zealand
    Home Country
    New Zealand New Zealand
    ok I have modified mytvrecorded.xml to have the folder image replaced by the tv show image in recorded tv list view only. It only works if you're using my TV thumbnailer plugin

    Edit mytvrecorded.xml and add the extra bit inside the code: section
    change <texture>D:\TV THUMBNAILER\TVSHOW_THUMBS\#selecteditem.jpg</texture>
    to match your tv thumbnailer plugin directory

    <control>
    <id>500</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">#selectedthumb</texture>
    <visible>facadeview.list+!string.equals(#selectedthumb,defaultFolderBig.png)+!string.equals(#selecteditem,..)</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    Code:
    <control>
    <id>500</id>
    <type>image</type>
    <posX>74</posX>
    <posY>174</posY>
    <width>421</width>
    <height>238</height>
    <texture flipY="true" diffuse="Thumb_Mask.png" mask="recordings_thumb_mask.png">D:\TV Thumbnailer\TVShow_Thumbs\#selecteditem.jpg</texture>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>

    <control>
    <id>0</id>
    <type>image</type>
    <posX>7</posX>
    <posY>106</posY>
    <width>556</width>
    <height>373</height>
    <texture>recordings_thumb_shadow.png</texture>
    <visible>facadeview.list</visible>
    <animation effect="fade" start="0" end="100" time="300" delay="350">WindowOpen</animation>
    <animation effect="fade" start="100" end="0" time="0" delay="0">WindowClose</animation>
    </control>
     
    Last edited:

    Users who are viewing this thread

    Top Bottom