mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
Merge branch 'recent_uas' of https://github.com/eli-schwartz/calibre
This commit is contained in:
commit
9ae7a26cb0
@ -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