From b031563771a52ee3a3a1797910e808e31a8b775b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matti=20Lehtim=C3=A4ki?= Date: Thu, 11 Oct 2012 21:08:44 +0300 Subject: Change regexp examples to use m// syntax. Update history. --- HISTORY | 2 ++ epgfixer/regexp.conf | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/HISTORY b/HISTORY index 4edf609..12076b9 100644 --- a/HISTORY +++ b/HISTORY @@ -7,6 +7,8 @@ VDR Plugin 'epgfixer' Revision History - Support for channel intervals for channel numbers. - Support search-and-replace using Perl-style 's///' operator. - Support Perl-style modifiers when using 's///' or 'm//' operators. +- Fix appending and prepending to EPG fields. +- Support stripping control characters from EPG data as in VDR-1.7.31. 2012-05-13: Version 0.2.1 diff --git a/epgfixer/regexp.conf b/epgfixer/regexp.conf index f1b6f50..0e3df18 100644 --- a/epgfixer/regexp.conf +++ b/epgfixer/regexp.conf @@ -1,20 +1,20 @@ # Example of disabled regexp: -#!title=^(?:Movie: |Document: )(?.*)$ +#!title=m/^(?:Movie: |Document: )(?<title>.*)$/ # Remove "Movie: " or "Document: " from the beginning of title field for # channels 1, 3, 5, 6 and 7: -#1,3,5-7:title=^(?:Movie: |Document: )(?<title>.*)$ +#1,3,5-7:title=m/^(?:Movie: |Document: )(?<title>.*)$/ # Also channel IDs can be used: -#S19.2E-1-1089-12003-0:title=^(?:Movie: |Document: )(?<title>.*)$ +#S19.2E-1-1089-12003-0:title=m/^(?:Movie: |Document: )(?<title>.*)$/ # Move parental rating from end of title to correct EPG field: # Program title (12) -#title=^(?<title>.*)[ ][(](?<rating>[0-9S]{1,2})[)][ ]*$ +#title=m/^(?<title>.*)[ ][(](?<rating>[0-9S]{1,2})[)][ ]*$/ # Move parental rating from start of description: # (12) Lorem ipsum ... -#description=^[(](?<rating>[0-9S]{1,2})[)][ ]+(?<description>.*) +#description=m/^[(](?<rating>[0-9S]{1,2})[)][ ]+(?<description>.*)/ # Replaces every instance of 'foo' with 'bar' in description #description=s/foo/bar/g -- cgit v1.2.3