mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
fix gallery extended chars in fn
This commit is contained in:
@@ -4,9 +4,10 @@ import gradio as gr
|
||||
from PIL import Image
|
||||
from modules import shared, ui_symbols, ui_common, images, ui_control_helpers
|
||||
from modules.ui_components import ToolButton
|
||||
|
||||
from urllib.parse import unquote
|
||||
|
||||
def read_media(fn):
|
||||
fn = unquote(fn).replace('%3A', ':')
|
||||
if not os.path.isfile(fn):
|
||||
shared.log.error(f'Gallery not found: file="{fn}"')
|
||||
return [[], None, '', '', f'Media not found: {fn}']
|
||||
|
||||
Reference in New Issue
Block a user