mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-06-25 18:40:50 +02:00
deal with new image nip96 links
This commit is contained in:
parent
17baf08d48
commit
f4c1e834c6
@ -50,7 +50,7 @@ class MediaConverter(DVMTaskInterface):
|
|||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
input_type = tag.as_vec()[2]
|
input_type = tag.as_vec()[2]
|
||||||
if input_type == "url":
|
if input_type == "url":
|
||||||
url = tag.as_vec()[1]
|
url = str(tag.as_vec()[1]).split('#')[0]
|
||||||
|
|
||||||
|
|
||||||
elif tag.as_vec()[0] == 'param':
|
elif tag.as_vec()[0] == 'param':
|
||||||
|
@ -89,7 +89,8 @@ class ImageGenerationSDXLIMG2IMG(DVMTaskInterface):
|
|||||||
if input_type == "text":
|
if input_type == "text":
|
||||||
prompt = tag.as_vec()[1]
|
prompt = tag.as_vec()[1]
|
||||||
elif input_type == "url":
|
elif input_type == "url":
|
||||||
url = tag.as_vec()[1]
|
url = str(tag.as_vec()[1]).split('#')[0]
|
||||||
|
|
||||||
|
|
||||||
elif tag.as_vec()[0] == 'param':
|
elif tag.as_vec()[0] == 'param':
|
||||||
print("Param: " + tag.as_vec()[1] + ": " + tag.as_vec()[2])
|
print("Param: " + tag.as_vec()[1] + ": " + tag.as_vec()[2])
|
||||||
|
@ -60,7 +60,7 @@ class VideoGenerationReplicateSVD(DVMTaskInterface):
|
|||||||
if tag.as_vec()[0] == 'i':
|
if tag.as_vec()[0] == 'i':
|
||||||
input_type = tag.as_vec()[2]
|
input_type = tag.as_vec()[2]
|
||||||
if input_type == "url":
|
if input_type == "url":
|
||||||
url = tag.as_vec()[1]
|
url = str(tag.as_vec()[1]).split('#')[0]
|
||||||
# TODO add params as defined above
|
# TODO add params as defined above
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user