Feature #4791
eit: allow second subexpression in scraper subtitle regex to replace summary
0%
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 "^([^.?!:]+): +(.*)".