mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5487 (Error after sending books to PRS-600)
This commit is contained in:
parent
655fcb828a
commit
e94a44b1a3
@ -202,7 +202,7 @@ def extract(path, dir):
|
|||||||
def get_proxies(debug=True):
|
def get_proxies(debug=True):
|
||||||
proxies = getproxies()
|
proxies = getproxies()
|
||||||
for key, proxy in list(proxies.items()):
|
for key, proxy in list(proxies.items()):
|
||||||
if not proxy:
|
if not proxy or '..' in proxy:
|
||||||
del proxies[key]
|
del proxies[key]
|
||||||
continue
|
continue
|
||||||
if proxy.startswith(key+'://'):
|
if proxy.startswith(key+'://'):
|
||||||
|
@ -284,7 +284,12 @@ class BookList(_BookList):
|
|||||||
plitems = []
|
plitems = []
|
||||||
for pl in self.playlists():
|
for pl in self.playlists():
|
||||||
for c in pl.childNodes:
|
for c in pl.childNodes:
|
||||||
if hasattr(c, 'tagName') and c.tagName.endswith('item'):
|
if hasattr(c, 'tagName') and c.tagName.endswith('item') and \
|
||||||
|
hasattr(c, 'getAttribute'):
|
||||||
|
try:
|
||||||
|
c.getAttribute('id')
|
||||||
|
except: # Unlinked node
|
||||||
|
continue
|
||||||
plitems.append(c)
|
plitems.append(c)
|
||||||
return plitems
|
return plitems
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user