[DVB EPG] Added template based naming of epg title and description (1 Viewer)

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Since the last addition, we have several fields which are grabbed from the DVB EPG.
    These are:
    - title
    - description
    - star rating
    - parental rating
    - classification (according to MPAA)
    - genre
    I added the ability to name the title and description by a template. (see the screenshot below)
    The template is evaluated directly before the epg event is written to the db.
    So you can e.g. have a title template like "%TITLE% (%PARENTALRATING% years)" which would show up in the guide as "Transformers (16 years)".
    I thought that might be useful for some people ;)
    This only works for DVB-EPG and only for newly grabbed events.
     

    Attachments

    • Screenshot.jpg
      Screenshot.jpg
      71.2 KB

    Slurm

    MP Donator
  • Premium Supporter
  • December 16, 2006
    301
    33
    58
    Graz
    Home Country
    Austria Austria
    This is really great! :D

    btw. is there a way to get the line-breaks from the description into the db (and probably also have a placeholder for a line-break for this new feature)?
     

    kharasana

    Portal Member
    February 6, 2007
    29
    0
    Home Country
    Austria Austria
    Scrolling speed of description

    The templete idea is nice.
    Would it be possible to decrease the scrolling speed of the description ?
    I have no change to read text with more than 20 lines. I hope :( i'm not the only one who has this problem.

    regards
     

    kuehnch

    MP Donator
  • Premium Supporter
  • June 14, 2006
    303
    9
    43
    Cologne (Köln)
    Home Country
    Germany Germany
    The text-scrolling-speed is configurable within the settings-part of mediaportal. Went to the mediaportal-home (mainmenu) and move to Settings -> General.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    is there a way to get the line-breaks from the description into the db (and probably also have a placeholder for a line-break for this new feature)?
    Should be no problem to add a placeholder for a newline but i remember those characters are filtered out before displaying.
    Will have a look at this
     

    ronsonol

    MP Donator
  • Premium Supporter
  • April 2, 2007
    178
    23
    Kingston
    Home Country
    Canada Canada
    Thanks for this addition to the epg grabber.

    For me, when I enable the %STARRATING_STR%, programs what have no star rating(not a movie) have the guide entry show up as TITLE <undefined>. For example, %TITLE (%STARRATING_STR%), will show up as TITLE (<undefined>) in the Guide inside MP, and as TITLE () in the web server program guide.

    Programs that do have a star rating, will show up with a "+" following the stars, eg. TITLE (***+)
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Hi ronsonol,
    Thanks for this addition to the epg grabber.

    For me, when I enable the %STARRATING_STR%, programs what have no star rating(not a movie) have the guide entry show up as TITLE <undefined>. For example, %TITLE (%STARRATING_STR%), will show up as TITLE (<undefined>) in the Guide inside MP, and as TITLE () in the web server program guide.
    That's ok. Should it display just nothing?

    Programs that do have a star rating, will show up with a "+" following the stars, eg. TITLE (***+)
    That's ok. The star rating steps are:
    *
    *+
    **
    **+
    ***
    ***+
    ****
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Just added the %NEWLINE% template item
     

    ronsonol

    MP Donator
  • Premium Supporter
  • April 2, 2007
    178
    23
    Kingston
    Home Country
    Canada Canada
    Hi gemx,

    Yes I think, when no star rating is available it should display nothing. As I mentioned, inside the guide is actually says <undefined> beside the TITLE of the show.

    As for the star rating indicator, every entry I see that has some stars beside it always has the plus. I only see *+, **+, ***+. I've checked the guide over multiple times to confirm this.
    The %STARRATING% seems to be numbers like 2, 4, 6, so Does the %STARRATING_STR% get determined from this value?

    Many thanks for your great work.
     

    gemx

    Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    As for the star rating indicator, every entry I see that has some stars beside it always has the plus. I only see *+, **+, ***+. I've checked the guide over multiple times to confirm this.
    The %STARRATING% seems to be numbers like 2, 4, 6, so Does the %STARRATING_STR% get determined from this value?
    That's true. Only the starrating as an integer is stored in the db.
    The %STARRATING_STR% is derived from this value. So if you only have 2,4,6 in the db the derived string is correct.
    That's how it's received from the DVB stream
     

    Users who are viewing this thread

    Top Bottom