be to add a .lock file.
Which file? What are you about? Each provider has its own XMLTV. Parsing it means almost 100% CPU load on your receiver. I described above in sufficient detail
a lock file check by the import process or something else to avoid simultaneous imports.
