"New[.:] "
],
"scrape_title": [
- "^(.+)[.]{3}( )[.]{3}([^.?!:]+)(?:([?!])|[:.])"
+ "^(.+)[.]{3}( )% [.]{3}([^.?!:]+)(?:([?!])|[:.])"
],
"scrape_subtitle": [
{
],
"pcre": {
"scrape_title": [
- "^(.+)[.]{3}( )[.]{3}(.*?)(?:([?!])|[:]|(?<!Dr|Prof|Rev|Mr|Mrs|Ms|[.][^.])[.]) "
+ "^(.+)[.]{3}( )% [.]{3}(.*?)(?:([?!])|[:]|(?<!Dr|Prof|Rev|Mr|Mrs|Ms|[.][^.])[.]) "
],
"scrape_subtitle": [
{
char title_summary[2048];
lang_str_t *ls = lang_str_create();
RB_FOREACH(se, ev->title, link) {
- snprintf(title_summary, sizeof(title_summary), "%s %s",
+ snprintf(title_summary, sizeof(title_summary), "%s %% %s",
se->str, lang_str_get(ev->summary, se->lang));
if (eit_pattern_apply_list(buffer, sizeof(buffer), title_summary, se->lang, &eit_mod->p_scrape_title)) {
tvhtrace(LS_TBL_EIT, " scrape title '%s' from '%s' using %s",
#!/usr/bin/env python
#
-# Copyright (C) 2017 Tvheadend Foundation CIC
+# Copyright (C) 2017, 2018 Tvheadend Foundation CIC
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
canonical, _, _ = key.partition(':')
text = test['summary']
if canonical == 'new_title':
- text = test['title'] + ' ' + text
+ text = test['title'] + ' % ' + text
if 'language' in test:
lang = test['language']
else: