View Single Post
Old 08-16-2018, 01:42 PM   #1
wrench100
Member
wrench100 began at the beginning.
 
Posts: 18
Karma: 10
Join Date: Mar 2018
Device: Kindle
How to use a format map with remove_formats

I'm trying to remove epub conversions from selected books. I've created a list of ID's using

ids=list(map(self.gui.library_view.model().id,rows ))

The docs for remove_formats says that I need to pass it "a mapping of book_id to a list of formats" but I have no idea how to do that.

Thanks!
wrench100 is offline   Reply With Quote