mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
fix recent_uas due to firefox site changes
This commit is contained in:
parent
16ac42d357
commit
bb4438eca3
@ -62,7 +62,7 @@ def firefox_versions():
|
||||
raw = download_securely(
|
||||
'https://www.mozilla.org/en-US/firefox/releases/').decode('utf-8')
|
||||
root = html5lib.parse(raw, treebuilder='lxml', namespaceHTMLElements=False)
|
||||
ol = root.xpath('//div[@id="main-content"]/ol')[0]
|
||||
ol = root.xpath('//main[@id="main-content"]/ol')[0]
|
||||
ol.xpath('descendant::li/strong/a[@href]')
|
||||
ans = filter_ans(ol.xpath('descendant::li/strong/a[@href]/text()'))
|
||||
if not ans:
|
||||
|
Loading…
x
Reference in New Issue
Block a user