service.takealug.epg-grabber icon indicating copy to clipboard operation
service.takealug.epg-grabber copied to clipboard

feature request concerning function check_internet()

Open Lutzion opened this issue 5 months ago • 0 comments

After adding service.takealug.epg-grabber to kodi i configured some datasources and finally wanted to get the epg file manually.

Nothing happened and after some tries i had a look in the kodi.log

2024-09-05 10:00:11.761 T:3202     info <general>: [Takealug EPG Grabber 1.1.6+matrix] ZATTOO (DE) Login success
2024-09-05 10:01:37.639 T:3202     info <general>: [Takealug EPG Grabber 1.1.6+matrix] Neue Kanalliste abgespeichert!
2024-09-05 10:01:40.677 T:3202     info <general>: [Takealug EPG Grabber 1.1.6+matrix] Warte auf Netzwerkverbindung...
2024-09-05 10:01:45.553 T:1065  warning <general>: RunScript called for a non-script addon 'service.takealug.epg-grabber'. This behaviour is deprecated.
2024-09-05 10:01:48.680 T:3202     info <general>: [Takealug EPG Grabber 1.1.6+matrix] Warte auf Netzwerkverbindung...

Strange thing, because login to zattoo was successful, but on the other hand the plugin complains about missing internet connection.

So i had a look in the code: in service.py there is the function check_internet() that is hard coded to the service 8.8.8.8 port 53. def check_internet(host="8.8.8.8", port=53, timeout=3):

In my network dns in only allowed to the firewalls internal dns server. I changed the ip-address and then the plugin worked fine.

Maybe my network setup is very special, but on the other hand check_Internet() could also work with the logic: If the first connection needed can not be established, dont try the following actions. But dont try a service that is actually not needed.

Anyway many thanks for that plugin

Lutzion avatar Sep 07 '24 08:09 Lutzion