]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
eit: Minor fixes to regex to make them parsable as JSON for test harness. (#4578)
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Sat, 9 Sep 2017 01:00:04 +0000 (02:00 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 16 Sep 2017 11:55:45 +0000 (13:55 +0200)
The strings were not parsable by the JSON parser.

Issue: #4578

data/conf/epggrab/eit/scrape/uk

index 6f5ad66d8fe02dbc79d2a1cfbf30d4da2f5abb55..7329db98f25fef263650f1b32ea291ac3f2ec659 100644 (file)
@@ -3,23 +3,23 @@
     " *\\(S ?([0-9]+),? [Ee]p? ?[0-9]+\\)",
     " *\\(S ?([0-9]+),? [Ee]p? ?[0-9]+/[0-9]+\\)",
     " S ?([0-9]+)[ /][Ee]p? ?[0-9]+",
-    "^S ?([0-9]+),? [Ee]p? ?[0-9]+\\\."
+    "^S ?([0-9]+),? [Ee]p? ?[0-9]+[.]"
   ],
   "episode_num": [
     " *\\(S ?[0-9]+,? [Ee]p? ?([0-9]+)\\)",
     " *\\(S ?[0-9]+,? [Ee]p? ?([0-9]+)/[0-9]+\\)",
     " S ?[0-9]+[ /][Ee]p? ?([0-9]+)",
-    "^S ?[0-9]+,? [Ee]p? ?([0-9]+)\\\.",
+    "^S ?[0-9]+,? [Ee]p? ?([0-9]+)[.]",
     " *\\([Ee]p ?([0-9]+)\\)",
     " *\\([Ee]p ?([0-9]+)/[0-9]+\\)",
-    "^([0-9]+)/[0-9]+\. "
+    "^([0-9]+)/[0-9]+[.] "
   ],
   "airdate": [
     "\\(([0-9][0-9][0-9][0-9])\\)"
   ],
   "scrape_subtitle": [
       "^\\.\\.\\.[^:.]*\\[.:] ([^.0-9][^:]*): ",
-      "^[0-9]+/[0-9]+\\\. +([^.0-9][^:]*): ",
+      "^[0-9]+/[0-9]+[.] ?+([^:]*): ",
       "^([^.0-9][^:]+): "
   ]
 }