From: John Törnblom Date: Mon, 7 Jan 2013 10:47:51 +0000 (+0100) Subject: Only do commercial detection (teletext rundown) on swedish TV4 and TV4 HD. TV4 Guld... X-Git-Tag: v3.5~185 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bc9305ec131cbf2113bdf18c343ab0fa5dcae060;p=thirdparty%2Ftvheadend.git Only do commercial detection (teletext rundown) on swedish TV4 and TV4 HD. TV4 Guld carry the same teletext pages but thier programming differ. --- diff --git a/src/teletext.c b/src/teletext.c index 0dbe6a6df..4b736cf2b 100644 --- a/src/teletext.c +++ b/src/teletext.c @@ -540,6 +540,11 @@ teletext_rundown_scan(service_t *t, tt_private_t *ttp) if(ttp->ttp_rundown_valid == 0) return; + if(t->s_svcname && + strcmp("TV4", t->s_svcname) && + strcmp("TV4 HD", t->s_svcname)) + return; + for(i = 0; i < 23; i++) { l = ttp->ttp_rundown + 40 * i; if((l[1] & 0xf0) != 0x00 || !is_tt_clock(l + 32) || !is_tt_clock(l + 2))