|
|
@@ -57,7 +57,7 @@ class MediaPath(): |
|
|
|
continue |
|
|
|
if f: |
|
|
|
filename, ext = os.path.splitext( f ) |
|
|
|
tmpurl = '/image/%s/%d/%s' % (media_table, linked_id, f) |
|
|
|
tmpurl = '/image/%s/%d/%s' % (media_table, linked_id, f.replace(" ","%20")) |
|
|
|
if MediaType is None: |
|
|
|
filelist.append(tmpurl) |
|
|
|
elif MediaType=='Image' and ext.lower() in ['.gif','.jpg','.png','.svg','.jpeg']: |
|
|
@@ -79,7 +79,7 @@ class MediaPath(): |
|
|
|
if f.endswith('.type'): |
|
|
|
continue |
|
|
|
if f: |
|
|
|
tmpurl = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f) |
|
|
|
tmpurl = '/image/%s/%d/thumbnails/%s' % (media_table, linked_id, f.replace(" ","%20")) |
|
|
|
if MediaType is None: |
|
|
|
filelist.append(tmpurl) |
|
|
|
elif MediaType=='Image' and len( os.path.splitext(filename)[1] )==0: |
|
|
|