I-A-C / script.module.lambdascrapers

Scrapers Module for Exodus based add ons
61 stars 39 forks source link

Update CleanupService.py #27

Closed doko-desuka closed 5 years ago

doko-desuka commented 5 years ago

Variation on that cleanup-service thing:

Note: needs testing.

I-A-C commented 5 years ago

Im getting

Error Type: <type 'exceptions.ImportError'>
Error Contents: No module named lambdascrapers
Traceback (most recent call last):
  File "/home/i/.kodi/addons/script.module.lambdascrapers/CleanupService.py", line 11, in <module>
   from lambdascrapers import getAllHosters
ImportError: No module named lambdascrapers
I-A-C commented 5 years ago

Is this working for you as is?

I had to change line 32 from: if line.split('.', 1)[1] in currentProviders: to: if line.split ('.')[-1].split('" ')[0] in currentProviders: to get it to work.

doko-desuka commented 5 years ago

@I-A-C thanks for testing, I was on a computer without Kodi.

1) It wasn't finding the lambdascrapers package, so loading it directly from the folder seems to work. 2) It uses the builtin XML module to parse the settings file now, it's more future-proof. New commit pushed.

I-A-C commented 5 years ago

Works great!!