Fix thumbnailer script
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user