Fix thumbnailer script

This commit is contained in:
wmayer 2013-06-02 15:12:41 +02:00
parent aa6c15d8d7
commit 5fe7f6bf7c

View File

@ -1,11 +1,16 @@
#!/usr/bin/python
import sys, zipfile, md5
import sys, zipfile
import getopt
import gnomevfs
from urlparse import urlparse
from urlparse import unquote
opt,par = getopt.getopt(sys.argv[1:],'-s:')
inpfile = gnomevfs.get_local_path_from_uri(par[0])
uri = urlparse(par[0])
if uri.scheme != "file":
sys.exit(1)
inpfile = unquote(uri.path)
outfile = par[1]
try: