mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Regenerate sony_id_cache in fix_ids, because it changes all the values.
This commit is contained in:
parent
583f9c1197
commit
3cfb28f0ff
@ -357,6 +357,11 @@ def fix_ids(main, carda, cardb):
|
|||||||
item.parentNode.removeChild(item)
|
item.parentNode.removeChild(item)
|
||||||
item.unlink()
|
item.unlink()
|
||||||
db.reorder_playlists()
|
db.reorder_playlists()
|
||||||
|
db.sony_id_cache = {}
|
||||||
|
for child in db.root_element.childNodes:
|
||||||
|
if child.nodeType == child.ELEMENT_NODE and child.hasAttribute("id"):
|
||||||
|
db.sony_id_cache[child.getAttribute('id')] = child.getAttribute('path')
|
||||||
|
|
||||||
|
|
||||||
regen_ids(main)
|
regen_ids(main)
|
||||||
regen_ids(carda)
|
regen_ids(carda)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user