Feature Request (if not already possible) (1 Viewer)

Game_dude

Portal Pro
February 28, 2006
637
38
Indiana
Home Country
United States of America United States of America
Would it be possible to automatically add a thumbnail for movies missing cover art? I collect a lot of really old movies ( I meant really old!) and a lot of them don't have any cover art. So I usually have to manually add them. Thanks!! :)
 

RoChess

Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Would it be possible to automatically add a thumbnail for movies missing cover art? I collect a lot of really old movies ( I meant really old!) and a lot of them don't have any cover art. So I usually have to manually add them. Thanks!! :)

    You could adjust your skin to show like a default cover image when none exists.

    On DefaultWide the movingpictures.listview.xml contains the following:

    Code:
        <control>
          <description>Cover Art</description>
          <type>image</type>
          <id>60</id>
          <posX>31</posX>
          <posY>254</posY>
          <width>257</width>
          <height>380</height>
          <texture>#MovingPictures.Coverart</texture>
          <visible>facadeview.list+control.isvisible(50)</visible>
          <animation effect="fade" time="250" delay="0">WindowClose</animation>
        </control>

    You have to prefix that by for example:

    Code:
        <control>
          <description>Cover Art Default</description>
          <type>image</type>
          <id>60</id>
          <posX>31</posX>
          <posY>254</posY>
          <width>257</width>
          <height>380</height>
          <texture>default_cover_image_inside_media_folder.png</texture>
          <visible>facadeview.list+control.isvisible(50)+!string.equals(#MovingPictures.Coverart,)</visible>
          <animation effect="fade" time="250" delay="0">WindowClose</animation>
        </control>
        <control>
          <description>Cover Art</description>
          <type>image</type>
          <id>60</id>
          <posX>31</posX>
          <posY>254</posY>
          <width>257</width>
          <height>380</height>
          <texture>#MovingPictures.Coverart</texture>
          <visible>facadeview.list+control.isvisible(50)</visible>
          <animation effect="fade" time="250" delay="0">WindowClose</animation>
        </control>

    The additional visibility condition of "+!string.equals(#MovingPictures.Coverart,)" ensures that the skin element will only be used when there is no cover.

    I did this quick and just woke up, so might not all work as-is, but you get the idea and you can read the MediaPortal skin developer wiki for explanation on each part to fix it if needed, but it should work.
     

    Game_dude

    Portal Pro
    February 28, 2006
    637
    38
    Indiana
    Home Country
    United States of America United States of America
    Thanks for the detailed reply! I tried what you suggested but it didn't seem to work. Though the image I have for the default cover could be in the wrong folder. Do you know where the image is suppose to go? Right now I have it in thumbs/MovingPictures/Covers/Fullsize.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    It needs to go in skins\skin-name\Media folder, as that is where skin looks for when you use relative locations.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    well you could stick with "default_cover_image_inside_media_folder.png" or was that hint not obvious enuff? new forum system doesn't allow me to bold stuff inside 'code', or at least not in the short time i made post.
     
    Last edited:

    Game_dude

    Portal Pro
    February 28, 2006
    637
    38
    Indiana
    Home Country
    United States of America United States of America
    Could I replace that with something like "DefaultCover.png"? Sorry for the dumb questions :(
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Yes, you can replace it with anything, just match the reference you put in skin file with the filename. If they don't match it doesn't work.
     

    Game_dude

    Portal Pro
    February 28, 2006
    637
    38
    Indiana
    Home Country
    United States of America United States of America
    That seemed to work but now the image I used is overlapping my other cover art lol.
     

    RoChess

    Extension Developer
  • Premium Supporter
  • March 10, 2006
    4,434
    1,897
    Weird, because the visibility condition should have taken care of that, and only show the default cover when no image exist.

    :D as I typed that I quickly made sure I used the wrong syntax and seems I fell for a known copy-and-paste problem with coding. Remove the exclamation point and it will work.

    Code:
    <visible>facadeview.list+control.isvisible(50)+string.equals(#MovingPictures.Coverart,)</visible>

    The exclamation point caused reverse condition, so the image would show when a cover exists :)
     

    Users who are viewing this thread

    Top Bottom