diff options
author | Matti Lehtimäki <matti.lehtimaki@gmail.com> | 2012-10-11 21:08:44 +0300 |
---|---|---|
committer | Matti Lehtimäki <matti.lehtimaki@gmail.com> | 2012-10-11 21:08:44 +0300 |
commit | b031563771a52ee3a3a1797910e808e31a8b775b (patch) | |
tree | 558631f383c04bbf3e06a8398617d9c0c6f82ea4 | |
parent | 0b686fe0c360dc882c0fd946e7da14f94f0ad2e5 (diff) | |
download | vdr-plugin-epgfixer-b031563771a52ee3a3a1797910e808e31a8b775b.tar.gz vdr-plugin-epgfixer-b031563771a52ee3a3a1797910e808e31a8b775b.tar.bz2 |
Change regexp examples to use m// syntax. Update history.
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | epgfixer/regexp.conf | 10 |
2 files changed, 7 insertions, 5 deletions
@@ -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>.*)$ +#!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 |