]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Adding polish scraper for DVBC
authoruser <krzbia@interia.pl>
Thu, 15 Oct 2020 20:15:29 +0000 (22:15 +0200)
committerFlole998 <Flole998@users.noreply.github.com>
Wed, 21 Oct 2020 15:46:56 +0000 (17:46 +0200)
data/conf/epggrab/eit/scrape/pl [new file with mode: 0644]
support/testdata/eitscrape/pl [new file with mode: 0644]

diff --git a/data/conf/epggrab/eit/scrape/pl b/data/conf/epggrab/eit/scrape/pl
new file mode 100644 (file)
index 0000000..a4eb6d5
--- /dev/null
@@ -0,0 +1,8 @@
+{
+  "season_num": [
+    "[^0-9]([0-9]{1,2}) +\\(odc\\. +[0-9]+\\)"
+  ],
+  "episode_num": [
+    "\\(odc\\. +([0-9]+)\\)"
+  ]
+}
diff --git a/support/testdata/eitscrape/pl b/support/testdata/eitscrape/pl
new file mode 100644 (file)
index 0000000..09d445b
--- /dev/null
@@ -0,0 +1,33 @@
+{
+"environ" : [
+    {
+        "comment": "This section contains general information about this file to help people guess what regions it affects.",
+        "language": "pl",
+        "location": "pl",
+        "description": "POL DVB-C configuration for UPC network.",
+        "eitgrabber": ["eit"]
+    }
+],
+
+"tests" : [
+    {
+        "summary": "Lorem Ipsum."
+    },
+
+    {
+        "title": "Lorem Ipsum title. (odc. 123)",
+        "summary": "Lorem Ipsum summary. (odc. 123)",
+        "episode": "123"
+    },
+
+    {
+        "summary": "Lorem Ipsum. 4 (odc. 123)",
+        "season": "4", "episode": "123"
+    },
+
+    {
+        "summary": "Lorem Ipsum. 1234 (odc. 123)",
+        "episode": "123"
+    }
+]
+}