From fef73002485742cbb36d57bbf76c38b9b5dfc971 Mon Sep 17 00:00:00 2001 From: TangoCash Date: Sun, 9 Feb 2020 10:17:06 +0100 Subject: [PATCH] fix reading e2tv files Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/45289834ac7b4c9097e99359219e0b7d926989c4 Author: TangoCash Date: 2020-02-09 (Sun, 09 Feb 2020) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/bouquets.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index f5e86fbdb..c9023beb5 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -1120,8 +1120,14 @@ void CBouquetManager::loadWebchannels(int mode) if (line[len - 1] == '\r') line[len - 1 ] = 0; - if (strncmp(line, "#SERVICE 4097:0:1:0:0:0:0:0:0:0:", 32) == 0) - url = line + 32; + if ((strncmp(line, "#SERVICE 4097:", 14) == 0) || (strncmp(line, "#SERVICE 5002:", 14) == 0)) + { + char *url2; + u_int service; + u_int i1,i2,i3,i4,satpos; + sscanf (line,"#SERVICE %X:0:%X:%X:%X:%X:%X:0:0:0:%m[^\n]s",&service,&i1,&i2,&i3,&i4,&satpos,&url2); + url = url2; + } else if (strncmp(line, "#DESCRIPTION", 12) == 0) { int offs = line[12] == ':' ? 14 : 13;