Fixing thumbnails list
This commit is contained in:
@@ -63,6 +63,9 @@ class MediaPath():
|
|||||||
ress_url = '/image/%s/%d/%s' % (media_table, linked_id, f.replace(" ", "%20"))
|
ress_url = '/image/%s/%d/%s' % (media_table, linked_id, f.replace(" ", "%20"))
|
||||||
thumb_url = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f.replace(" ","%20"))
|
thumb_url = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f.replace(" ","%20"))
|
||||||
if MediaType is None:
|
if MediaType is None:
|
||||||
|
if os.path.exists(os.path.join(thumbpath, f +".jpg")):
|
||||||
|
filelist.append((ress_url, thumb_url +".jpg"))
|
||||||
|
else:
|
||||||
filelist.append((ress_url, thumb_url))
|
filelist.append((ress_url, thumb_url))
|
||||||
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0:
|
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0:
|
||||||
filelist.append((ress_url, thumb_url))
|
filelist.append((ress_url, thumb_url))
|
||||||
|
|||||||
Reference in New Issue
Block a user