Removing certain text from EPG data? (1 Viewer)

Gilean

Portal Member
January 28, 2013
22
1
Home Country
Finland Finland
Hello!

I am wondering if there is a way to parse EPG data on fly so that it would remove certain characters/text from EPG?

For example, in Finland TV-show Emmerdale is allowed for over 7 years old kids, so in EPG data that is shown either by (S) or (7). For some stupid reason, they are sending the EPG data with either (S) or (7) (seems to be pretty random to me which one they use), so if there is two shows of Emmerdale in a row coming, it might show (in EPG) like this:

18.00 - 18.30 Emmerdale (7)
18.30 - 19.00 Emmerdale (S)

Now, Mediaportal will consider those two as two separate titles and so they will appear on different folders too. It's annoying, so I am wondering if there is any way to configure EPG grabbing so that it would ignore those (7) and (S) and things like that completely from tv-program titles?
 

Reynolds

MP Donator
  • Premium Supporter
  • April 1, 2013
    2
    0
    Home Country
    Finland Finland
    This would be useful to anybody who uses media portal in Finland, including me.

    Also, I'm not getting Movies colored in EPG even if I have checked the movie tab in EPG genre mapping. However, I have assigned a Media Portal genre "children" and mapped couple program genres to it and it shows up colored in EPG. There is no program genre "movie" in my keyword list which I could map to Media Portal genre for coloring. Any advice on this?
     

    stounedi

    Portal Pro
    December 9, 2008
    67
    1
    Ok, I can see I'm not alone. Also certain channels do the titles like this: "Series title: Episode 3: Whatever ep name is". Very annoying.

    If anyone can come up with a solution to ignore the (S) (7) (12) (16) (18) etc from after the series titles I'd be more than happy. Or at least give me a push into the direction what I should be looking to accomplish this.

    EDIT:
    I recently moved from XML -> DVB-T EPG grabbing, with XML EPG I didnt have this problem, but it has other problems (for example it does not recognize when there is no program on a channel, it just extends the last program until morning when next one starts... Resulting in 9 hour recordings sometimes).
     
    Last edited:

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    I think there is no such feature in MP currently.
    I can seee two ways of doing this:
    - add some kind of user-defined and standart replacement in MP code before inserting porgrams in database to deal with some characters or maybe with episodeinfo data placed in program description
    - make tvserver plugin for replacing existing text in database.
    Both ways require coding skills :(
     

    hurley

    Portal Pro
    February 2, 2015
    61
    57
    Home Country
    Australia Australia
    Hey folks,
    I just posted an alpha version of a plugin for testing which should solve these EPG issues.
    It's a regex/wildcard based EPG filter plugin called EPGCleaner.

    Using the plugin, this regex pattern could remove those suffix's from program titles, though it could probably be written more elegantly:

    \s\((S|7|12|16|18)\)$

    More info in this thread until official release: https://forum.team-mediaportal.com/threads/tweaking-dvb-epg.125136/
     

    Users who are viewing this thread

    Top Bottom