Thanks capink

I've added these lines to save_to_disk method to save the path in a custom column but it's not working, nothing is written in the column :
Code:
for row in rows:
book_id = self.gui.library_view.model().id(row)
set_metadata(self.gui.library_view.model().db, book_id, 'custompath', dpath)
Any idea ?