In the hope not to confuse you more. I made some imports to clarify my points:
The log is this (deleted a bunch of unknown channels)
[EPGImport] nextImport, source= News Channels (xz)
[EPGImport] Downloading: http://epg.vuplus-community.net/rytecNWS.xz to local path: /tmp/epgimport.xz
[EPGImport] checkValidServer serverurl http://epg.vuplus-community.net/rytecNWS.xz
[EPGImport] afterDownload /tmp/epgimport.xz
[EPGImport] unlink /tmp/epgimport.xz
[EPGImport] afterChannelDownload None
[EPGImport] Using twisted thread
[EPGImport] Parsing channels from '/etc/epgimport/custom.channels.xml'
[EPGImport] Parsing channels from '/etc/epgimport/testing.channels.xml'
[EPGImport] Parsing channels from '/etc/epgimport/testing.channels.xml'
Serviceref is in ignore list: 1:0:19:1B1D:802:2:11A0000:0:0:0:
[XMLTVConverter] Enumerating event information
Unknown channel: tv5mondemaghreb-orient.fr
Unknown channel: deutschewellede.de
Unknown channel: skynwsarabia.nws
Unknown channel: trtturk.tr
[EPGImport] ### thread is ready ### Events: 14409
[EPGImport] nextImport, source= Vlaanderen - Basis (xz)
[EPGImport] Downloading: http://rytecepg.wanwizard.eu/rytecBE_VL_Basic.xz to local path: /tmp/epgimport.xz
[EPGImport] checkValidServer serverurl http://rytecepg.wanwizard.eu/rytecBE_VL_Basic.xz
[EPGImport] afterDownload /tmp/epgimport.xz
[EPGImport] unlink /tmp/epgimport.xz
[EPGImport] Downloading: http://epg.vuplus-community.net/rytec.channels.xml.xz to local path: /tmp/epgimport.xz
[EPGImport] checkValidServer serverurl http://epg.vuplus-community.net/rytec.channels.xml.xz
[EPGImport] afterChannelDownload /tmp/epgimport.xz
[EPGImport] Using twisted thread
[EPGImport] Parsing channels from '/etc/epgimport/custom.channels.xml'
[EPGImport] Parsing channels from 'rytec.channels.xml.xz'
[EPGImport] Parsing channels from 'rytec.channels.xml.xz'
Serviceref is in ignore list: 1:0:19:1B1D:802:2:11A0000:0:0:0:
[XMLTVConverter] Enumerating event information
Unknown channel: disneyvl.be
Unknown channel: nickelodeonspike.be
Unknown channel: vlaamsparlement.tv
[EPGImport] ### thread is ready ### Events: 18451
[EPGImport] nextImport, source= Koala 7 dias XMLTV
[EPGImport] Downloading: http://tropical.jungle-team.online/epg/koala7.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] Not cheching the server since nocheck is set for it: http://tropical.jungle-team.online/epg/koala7.xml.gz
[EPGImport] afterDownload /tmp/epgimport.gz
[EPGImport] unlink /tmp/epgimport.gz
[EPGImport] Downloading: http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] Not cheching the server since nocheck is set for it: http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz
[EPGImport] afterChannelDownload /tmp/epgimport.gz
[EPGImport] Using twisted thread
[EPGImport] Parsing channels from '/etc/epgimport/custom.channels.xml'
[EPGImport] Parsing channels from 'http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz'
[EPGImport] Parsing channels from 'http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz'
Invalid serviceref string: 4097:0:1:525:0:0:0:0:0:0:http://.m3u88
[XMLTVConverter] Enumerating event information
Unknown channel: m. laliga 10
Unknown channel: m. deportes1
First import: News channels.
I have set here the channels file to a local file (testing.channels.xml). And as you can see nothing s downloaded. The file is used as such.
Also the custom.channels.xml (a local file) is being parsed.
This files should be left alone.
[EPGImport] afterChannelDownload None
Second Import: Vlaanderen - Basis (xz)
The source is used as set in the rytec.channels.xml file. Thus downloading the file from the net.
You can see this in the log:
[EPGImport] Downloading: http://epg.vuplus-community.net/rytec.channels.xml.xz to local path: /tmp/epgimport.xz
[EPGImport] checkValidServer serverurl http://epg.vuplus-community.net/rytec.channels.xml.xz
[EPGImport] afterChannelDownload /tmp/epgimport.xz
This is candidate for the Ignore filter. The file is downloaded in the /tmp/ folder as epgimport.gz.
In order to apply the filter, why not just filter this file just after the download. The file is zipped. So unzip it., use the grep to filter it. Rezip it (or use the filtered file as such.)
Something, like this:
grep -v -f "/etc/epgimport/FILTERpattern.txt" "/tmp/rytec.channels.xml" > "/etc/epgimport/filtered.channels.xml"
Third Import: Koala 7 dias XMLTV
Again a channels file is downloaded from the net. Also a candidate for the filer.
[EPGImport] Downloading: http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz to local path: /tmp/epgimport.gz
[EPGImport] Not cheching the server since nocheck is set for it: http://tropical.jungle-team.online/epg/koala_epg.channels.xml.gz
[EPGImport] afterChannelDownload /tmp/epgimport.gz
Again the downloaded channels file is in /tmp/epgimport.gz
So the same as above.
Now once you have downloaded these files they stay in the system, and will not be downloaded again the same day. So no filtering is needed here, as it has been already been done just after the download.
I have added as an example my custom.channels.xml file and an example of the FILTERpattern.txt file.
Edited by doglover, 19 March 2021 - 09:10.