Compatibility for Twitch

This commit is contained in:
Mylloon 2021-08-24 13:22:43 +02:00
parent bd2eafd88c
commit 524d166c6b

View file

@ -113,6 +113,7 @@ class Scraper:
except:
_changelogs = "No changelog found."
try:
elements[i] = sub(r"Download Instructions:</span>(.*)?<br /><s", "Download Instructions:</span><br /><s", elements[i])
_downloadLinks = findall(r"Download Instructions:</span> ?<br />(.*|[\s\S]*)<br /><br />Trouble downloading|</a></div>", elements[i])[0]
if len(_downloadLinks) < 2:# if result none, trying other method
_downloadLinks = findall(r"Download Instructions:</span> ?<br />(.*|[\s\S]*)</a></div>", elements[i])[0]