Expressions/Rules requests

Discussion in 'My TVSeries' started by Inker, April 12, 2007.

  1. Inker
    • Premium Supporter

    Inker Retired Team Member

    Joined:
    December 6, 2004
    Messages:
    2,055
    Likes Received:
    319
    Ratings:
    +319 / 0
    Please use this thread to request Parsing Expressions and Logo Rules. Follow-up questions are allowed, any other talk should not go here.

    Be as decisive as possible when making a request. Include at least one full example. Be nice and be aware that your request may or may not be fullfilled.



    I would suggest that if you fullfill a request, you add it to the exchange thread to keep them all in one place. Simply reply to the requester with a quote and a link to your reply in the exchange thread.

    Thank you in advance for any request you might fullfill.

    [UPDATE]

    There is more and more threads about parsing problems. This is what this thread is for, please use it!

    Any further threads about parsing problems that are not in this thread will be deleted.

    Also, please if somebody made an expression for you that works, add it to the Expression exchange thread, nobody seems to do this. I know your excited once your series import, but please take 5 minutes so other people won't have to ask the same question again.

    Thank you.
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Vergo

    Vergo Portal Pro

    Joined:
    August 30, 2005
    Messages:
    162
    Likes Received:
    59
    Occupation:
    Student
    Location:
    Brugge
    Ratings:
    +59 / 0
    Home Country:
    Belgium Belgium
    I have 2 requests:
    1/ Genre logo
    2/ if filename contains HDTV, then HD logo

    I have no idea how to get these 2 working, any help please?
     
  4. pannivas

    pannivas Portal Pro

    Joined:
    July 26, 2006
    Messages:
    340
    Likes Received:
    2
    Location:
    Nicosia
    Ratings:
    +2 / 0
    Home Country:
    Cyprus Cyprus
    but you can do that already for HD Logos, using these 2 rules.

    If <Episode.videoHeight> >= 500 AND <Episode.videoWidth> >= 960 AND <Episode.videoHeight> != 720 use HD 540p logo

    If <Episode.videoHeight> >= 720 AND <Episode.videoWidth> >= 1280 use HD 720p logo
     
  5. EgoManiac

    EgoManiac Portal Member

    Joined:
    April 11, 2007
    Messages:
    35
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Genre can be done 2 ways :

    1. use dynamic filenames with <Series.Genre>
    2. use <Series.Genre> contains 'comedy' etc for each of the logos.
     
  6. Inker
    • Premium Supporter

    Inker Retired Team Member

    Joined:
    December 6, 2004
    Messages:
    2,055
    Likes Received:
    319
    Ratings:
    +319 / 0
    If you want the hd based on the filename, then you can use
    If <Episode.Episodefilename> contains 'hdtv'

    As state, for genres there are two option, but option one is more convinient. But, and I'm not sure, it will probably not work fully yet as it will look for the exact combination of Genres. So for instance Action,Adventure would not try to load Action.jpg and Adventure.jpg but Action_Adventure.jpg. So for now, use option 2 :)
     
  7. Bobb25

    Bobb25 Portal Pro

    Joined:
    November 26, 2006
    Messages:
    232
    Likes Received:
    0
    Location:
    Durban
    Ratings:
    +0 / 0
    Home Country:
    South Africa South Africa
    Ok, i obviously am not as bright as i thought i was! lol. I am trying to make a logo rule to differentiate episodes backed up to DVD as apposed to eps that are actually on my server. For all episodes that are backed up, i created a standard little avi that says "Please insert relevant TVDVD" and then renamed them with the actual episode names so that My-Tvseries shows what is backed up to DVD in the normal menus. Whats the easiest way to get mytvseries to show a logo for these files? Should i edit the file names and put DVD in them? What would be the logo rule for that then? Any suggestions / advice would be appreciated.
     
  8. G.B. Wolf
    • Premium Supporter

    G.B. Wolf MP Donator

    Joined:
    March 22, 2007
    Messages:
    227
    Likes Received:
    3
    Occupation:
    Web developer
    Location:
    Braunschweig
    Ratings:
    +3 / 0
    Home Country:
    Germany Germany
    This would be something like:

    Type: Logo Rule
    DVD-Logo
    Description:
    Show a DVD-logo if filename contains "DVD"
    Expected Filename: static
    Rule:
    Code (Text):
    1.  
    2. Thumbs\TVSeries\DVD.png;-;<Episode.EpisodeFilename>;-;contains;-;DVD;-;AND;-;;-;=;-;;-;AND;-;;-;=;-;;-;
    3.  
     
  9. G.B. Wolf
    • Premium Supporter

    G.B. Wolf MP Donator

    Joined:
    March 22, 2007
    Messages:
    227
    Likes Received:
    3
    Occupation:
    Web developer
    Location:
    Braunschweig
    Ratings:
    +3 / 0
    Home Country:
    Germany Germany
    This should be >=5. ;)
     
  10. ccMatrix

    ccMatrix Portal Pro

    Joined:
    November 9, 2006
    Messages:
    97
    Likes Received:
    10
    Ratings:
    +10 / 0
    Somehow the aspect ratio rule doesn't work here. Could it be because in the database there is a 1.7xxxx but on my system , is the default character for decimals ? I tried 1.7 and 1,7 as a <= rule but it won't work. For now I had to use a workaround with contains 1.7 but it seems ugly ;)
     
  11. nylonhof

    nylonhof Portal Pro

    Joined:
    August 5, 2006
    Messages:
    99
    Likes Received:
    0
    Ratings:
    +0 / 0
    Home Country:
    Germany Germany
    ccMatrix,

    if you are trying to show the 16:9 logo shouldn't you set the ratio to "greater than" 1.7? And not "less than" as you wrote above...

    Regards
    nylonhof
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!