mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-11-19 20:36:26 +01:00
consider length of content in an event for per_unit_cost
This commit is contained in:
@@ -128,6 +128,8 @@ async def organize_input_media_data(input_value, input_type, start, end, dvm_con
|
|||||||
|
|
||||||
def check_nip94_event_for_media(evt, input_value, input_type):
|
def check_nip94_event_for_media(evt, input_value, input_type):
|
||||||
# Parse NIP94 event for url, if found, use it.
|
# Parse NIP94 event for url, if found, use it.
|
||||||
|
input_type = "text"
|
||||||
|
input_value = evt.content()
|
||||||
if evt.kind() == 1063:
|
if evt.kind() == 1063:
|
||||||
for tag in evt.tags():
|
for tag in evt.tags():
|
||||||
if tag.as_vec()[0] == 'url':
|
if tag.as_vec()[0] == 'url':
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ if __name__ == '__main__':
|
|||||||
dvm_config = build_default_config(identifier)
|
dvm_config = build_default_config(identifier)
|
||||||
dvm_config.USE_OWN_VENV = True
|
dvm_config.USE_OWN_VENV = True
|
||||||
dvm_config.FIX_COST = 0
|
dvm_config.FIX_COST = 0
|
||||||
dvm_config.PER_UNIT_COST = 0
|
dvm_config.PER_UNIT_COST = 0.2
|
||||||
admin_config_tts.LUD16 = dvm_config.LN_ADDRESS
|
admin_config_tts.LUD16 = dvm_config.LN_ADDRESS
|
||||||
# use an alternative local wav file you want to use for cloning
|
# use an alternative local wav file you want to use for cloning
|
||||||
options = {'input_file': ""}
|
options = {'input_file': ""}
|
||||||
|
|||||||
Reference in New Issue
Block a user