浏览代码

Fixing thumbnails list

master
父节点
当前提交
b8067feb34
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      jm2l/upload.py

+ 4
- 1
jm2l/upload.py 查看文件

@@ -63,7 +63,10 @@ class MediaPath():
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"))
if MediaType is None:
filelist.append((ress_url, thumb_url))
if os.path.exists(os.path.join(thumbpath, f +".jpg")):
filelist.append((ress_url, thumb_url +".jpg"))
else:
filelist.append((ress_url, thumb_url))
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0:
filelist.append((ress_url, thumb_url))
elif MediaType=='Other' and len( os.path.splitext(filename)[1] ):


正在加载...
取消
保存