Project

General

Profile

Actions

Feature #2529

open

RFE: Add flexible parsing for season, episode and subtitle information

Added by Ludi about 7 years ago. Updated about 7 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Start date:
10/11/2017
Due date:
% Done:

0%

Estimated time:

Description

Hi,

The vdr-plugin-epgsearch already searches the description for season and episode information. It expects a determined format: for the season information, the line has to begin with the word "season:" and be followed by the season number; it is similar for the episode information.

This is all fine, if the epg can be edited before it gets into the vdr. However, it is not always possible to edit the epg season and episode information gets ignored because it is not in the expected format. For example, Rai 4 is sending the following description of an event of this afternoon:

S4 Ep19 Tutti gli uomini di Madame - Daisy riesce a fuggire dalla base assieme a May, mentre Ophelia, sopravvissuta, chiede a Fitz di portare a termine il 'Progetto Specchio'.

We notice that the description field is structured like this:

 <season information> <space> <episode information> <space> <subtitle> ...

Could anybody enhance epgsearch to support a configuration file, where the user could enter regex expressions to tell epgsearch how to search for the season, episode and subtitle information in the description of the text.

Tvheadend has a similar concept; here is for example its pattern matching in order to extract the season and episode information from some OTA EPG:

"season_num": [
    "([0-9]+)'?a? Stagione +Ep\\. ?[0-9]+[a-z]?",
    "([0-9]+)'?a? Stagione -? ?Puntata ?[0-9]+",
    "([0-9]+)'?a? Stagione",
    "S([0-9]+) Ep[0-9]+" 
  ]

  "episode_num": [
    "[0-9]+'?a? Stagione +Ep\\. ?([0-9]+)[a-z]?",
    "[0-9]+'?a? Stagione -? ?Puntata ?([0-9]+)",
    "^ *Ep\\. ?([0-9]+)[a-z]?",
    "^ *Puntata ?([0-9]+)",
    " Ep\\. ?([0-9]+) -",
    "S[0-9]+ Ep([0-9]+)",
    "Ep([0-9]+) ?- ?" 
]

I am aware that adding this enhancement to epgsearch probably requires some serious work on the plugin. I nevertheless hope that somebody with the appropriate knowledge will agree to implement it, as IMHO, it will be a very useful enhancement to the plugin.

Thanks in advance for taking the request into account.

Actions

Also available in: Atom PDF