marianosimone / epub-thumbnailer

Script to extract the cover of an epub book and create a thumbnail for it
GNU General Public License v3.0
191 stars 29 forks source link

Support for GVFS #15

Closed Laserlicht closed 2 years ago

Laserlicht commented 7 years ago

At the moment it's not compatible with gvfs e.g. smb://. (Previews everywhere enabled in the Caja-Settings)

I've added to my .py: import gio

if input_file.find('://') >= -1: f = gio.File(input_file) input_file = f.get_path()

and changed my .thumbnailer: Exec=/usr/bin/epub-thumbnailer %i %o %s to Exec=/usr/bin/epub-thumbnailer %u %o %s

But I think there are better solutions...

marianosimone commented 7 years ago

Hi @Laserlicht, thanks a lot for the report and the implementation idea!

I've just made a change to the code (based on your suggestion), and I think that should add support for mounted devices.

Could you please try it out and verify?

Thanks again!