From ae18f5f67b8798f34d2bea4010ac190c384717af Mon Sep 17 00:00:00 2001 From: "E.Smith" <31170571+azlm8t@users.noreply.github.com> Date: Thu, 21 Sep 2017 01:30:55 +0100 Subject: [PATCH] eit: Add extra eit episode scrape configurations (#4592) We include the regex from the opentv configuration for scraping episode informationfor Italy, Australia and New Zealand with minor changes to allow parsing by the Python test harness. Also added additional Italian regex from the bug report. Issue: #4592 --- data/conf/epggrab/eit/scrape/au | 13 +++++++++++++ data/conf/epggrab/eit/scrape/it | 25 +++++++++++++++++++++++++ data/conf/epggrab/eit/scrape/nz | 13 +++++++++++++ 3 files changed, 51 insertions(+) create mode 100644 data/conf/epggrab/eit/scrape/au create mode 100644 data/conf/epggrab/eit/scrape/it create mode 100644 data/conf/epggrab/eit/scrape/nz diff --git a/data/conf/epggrab/eit/scrape/au b/data/conf/epggrab/eit/scrape/au new file mode 100644 index 000000000..1519ab9fc --- /dev/null +++ b/data/conf/epggrab/eit/scrape/au @@ -0,0 +1,13 @@ +{ + "season_num": [ + " *\\(S ?([0-9]+),? Ep? ?[0-9]+\\)" + ], + "episode_num": [ + " *\\(S ?[0-9]+,? Ep? ?([0-9]+)\\)" + ], + "airdate": [ + "\\(([0-9][0-9][0-9][0-9])\\)" + ], + "scrape_subtitle": [ + ] +} diff --git a/data/conf/epggrab/eit/scrape/it b/data/conf/epggrab/eit/scrape/it new file mode 100644 index 000000000..b28a0c1da --- /dev/null +++ b/data/conf/epggrab/eit/scrape/it @@ -0,0 +1,25 @@ +{ + "season_num": [ + "\\[?St\\.([0-9]+)\\]?", + "([0-9]+)'?a? Stagione +Ep[.] ?[0-9]+[a-z]?", + "([0-9]+)'?a? Stagione -? ?Puntata ?[0-9]+", + "([0-9]+)'?a? Stagione" + ], + "episode_num": [ + " ?[Ee]p\\.? ?([0-9]+)", + "[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]+) -" + ], + "airdate": [ + "\\(([0-9][0-9][0-9][0-9])\\)" + ], + "scrape_subtitle": [ + "[0-9]+'?a? Stagione +Ep[.] ?[0-9]+[A-Za-z]? -? ?'(([^']*(' [^A-Z0-9-])?('[^ '])?)+)'", + "Ep[.] ?[0-9]+[A-Za-z]? -? ?'(([^']*(' [^A-Z0-9-])?('[^ '])?)+)'", + "[0-9]+'?a? Stagione -? ?'(([^']*(' [^A-Z0-9-])?('[^ '])?)+)'", + "[0-9]+'?a? Stagione -? ?Puntata ?[0-9]+[A-Za-z]? \"\" *([^\"]+) *\"\"" + ] +} diff --git a/data/conf/epggrab/eit/scrape/nz b/data/conf/epggrab/eit/scrape/nz new file mode 100644 index 000000000..1519ab9fc --- /dev/null +++ b/data/conf/epggrab/eit/scrape/nz @@ -0,0 +1,13 @@ +{ + "season_num": [ + " *\\(S ?([0-9]+),? Ep? ?[0-9]+\\)" + ], + "episode_num": [ + " *\\(S ?[0-9]+,? Ep? ?([0-9]+)\\)" + ], + "airdate": [ + "\\(([0-9][0-9][0-9][0-9])\\)" + ], + "scrape_subtitle": [ + ] +} -- 2.47.3