Closed Rechi closed 5 years ago
The reason for implementing this, was that someone searched the upstream repo for an add-on, but the url in the addon.xml was wrong and pointed to a 404 page. You may want check the logs about how many invalid urls are listed in the addon.xmls.
Okay, not very surprising. Code read and previous interactions sounded like we're afraid to link to problematic websites.
Wouldn't using requests.get() here instead of requests.head() leave this open to abuse? ie. multiple PRs with forum/website/source all point to > 1GB files
Sorry for creating noise if I missed something here.
@anxdpanic Thanks for the hint. Now a the check runs also quicker.
As https://kodi.tv/addons and kodi.wiki lists forum, source and website from addon.xml those should be valid urls. @enen92 if wanted I can change the errors to warnings, so that the url validation never fails a check.