2022-09-18, 13:01
The issue where no results are being produced due to the site's use of CloudFlare can be resolved by using the cloudscrape library.
I did a quick test by adding the add-on version of this library as a dependency and it works nicely.
For those who would like to test as well, install the following two add-ons:
- script.module.cloudscraper.zip
- service.subtitles.subsceneplus.zip
Do note:
- I added the cloudscrape add-on as a hard dependency
- You might need to reboot Kodi
- Due to the way the CloudFlare protection works you'll have a 5 seconds delay for the first request, you need to wait a little bit for the list of results to appear
Things to consider for the final solution, as the cloudscrape Kodi add-on is not included in the default repositories:
- Make the add-on optional and only use it by the subscene add-on when the user manually installed it as well
- Add the cloudscrape add-on to the default repositories
- Include the cloudscrape python library directly into the addon
I did a quick test by adding the add-on version of this library as a dependency and it works nicely.
For those who would like to test as well, install the following two add-ons:
- script.module.cloudscraper.zip
- service.subtitles.subsceneplus.zip
Do note:
- I added the cloudscrape add-on as a hard dependency
- You might need to reboot Kodi
- Due to the way the CloudFlare protection works you'll have a 5 seconds delay for the first request, you need to wait a little bit for the list of results to appear
Things to consider for the final solution, as the cloudscrape Kodi add-on is not included in the default repositories:
- Make the add-on optional and only use it by the subscene add-on when the user manually installed it as well
- Add the cloudscrape add-on to the default repositories
- Include the cloudscrape python library directly into the addon