Project

General

Profile

Feature #4791

eit: allow second subexpression in scraper subtitle regex to replace summary

Added by Jim Hague almost 7 years ago. Updated almost 7 years ago.

Status:
Fixed
Priority:
Normal
Assignee:
Category:
EPG - Grabbers
Target version:
-
Start date:
2017-12-13
Due date:
% Done:

0%

Estimated time:

Description

The scraper subtitle regex allows you to extract a subtitle from a programme summary, e.g. extract a subtitle 'A Storm in a Teacup' from 'A Storm in a Teacup: Fletch lands in hot water when some stolen pills accidentally find their way into his cup of tea.'

I'm playing with my own UK Freeview scraping patterns, and (because I don't like repeated text on my main Kodi UI) I would like to be able to specify a second regex subexpression to match the text I'd like to keep as the summary. In other words, I'd like to remove the subtitle from the summary if I've extracted one. So, using the above example, I'd like to extract the subtitle and then set the summary to 'Fletch lands in hot water when some stolen pills accidentally find their way into his cup of tea.' with a regex like "^([^.?!:]+): +(.*)".

History

#1

Updated by Jim Hague almost 7 years ago

(PR in preparation)

#2

Updated by Jaroslav Kysela almost 7 years ago

  • Status changed from New to Fixed

Also available in: Atom PDF