Hello,
I am playing around with syncing to calibre; I have an issue whereby updates on my device are not being picked up by calibre. Obviously I have stuffed something up.
So, I am trying to trace through the code. The current function of interest is set_books_in_library in src/calibre/gui2/device.py
Down in there, I have added some print statements:
Code:
with BusyCursor():
current_book_count = 0
for booklist in booklists:
print ('booklist: ', booklist)
for book in booklist:
print ('processing book: ', book.uuid)
but while the print of booklist shows:
Code:
booklist: [<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff152f45ac0>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff151ce78b0>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff151ce79a0>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff151ce7850>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff1500762e0>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff150076070>,
<calibre.devices.smart_device_app.driver.SDBook object at 0x7ff151ce76d0>]
the processing book line only outputs a single book and then appears to just stop outputting anything.
Code:
processing book: 8ed92285-8d1c-45c3-b756-f5f39fca4b52
DeviceJob: 2 Get list of books on device callback returned
Can anyone point me in the right direction as to why the output stops; calibre keeps running; everything looks normal except for the fact that the updates I pushed through are ignored and it is difficult to work out why without debug statements!
Cheers,
David