]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
eit: Add extra eit episode scrape configurations (#4592)
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Thu, 21 Sep 2017 00:30:55 +0000 (01:30 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 24 Sep 2017 07:05:51 +0000 (09:05 +0200)
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 [new file with mode: 0644]
data/conf/epggrab/eit/scrape/it [new file with mode: 0644]
data/conf/epggrab/eit/scrape/nz [new file with mode: 0644]

diff --git a/data/conf/epggrab/eit/scrape/au b/data/conf/epggrab/eit/scrape/au
new file mode 100644 (file)
index 0000000..1519ab9
--- /dev/null
@@ -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 (file)
index 0000000..b28a0c1
--- /dev/null
@@ -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 (file)
index 0000000..1519ab9
--- /dev/null
@@ -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": [
+  ]
+}