Compatibility for Twitch
This commit is contained in:
parent
bd2eafd88c
commit
524d166c6b
1 changed files with 1 additions and 0 deletions
1
main.py
1
main.py
|
@ -113,6 +113,7 @@ class Scraper:
|
||||||
except:
|
except:
|
||||||
_changelogs = "No changelog found."
|
_changelogs = "No changelog found."
|
||||||
try:
|
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]
|
_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
|
if len(_downloadLinks) < 2:# if result none, trying other method
|
||||||
_downloadLinks = findall(r"Download Instructions:</span> ?<br />(.*|[\s\S]*)</a></div>", elements[i])[0]
|
_downloadLinks = findall(r"Download Instructions:</span> ?<br />(.*|[\s\S]*)</a></div>", elements[i])[0]
|
||||||
|
|
Reference in a new issue