mirror of
https://github.com/believethehype/nostrdvm.git
synced 2025-10-10 11:42:30 +02:00
fixes
This commit is contained in:
@@ -4,7 +4,6 @@ from datetime import time
|
||||
from urllib.parse import urlparse
|
||||
import ffmpegio
|
||||
|
||||
|
||||
import requests
|
||||
from nostr_dvm.utils.nostr_utils import get_event_by_id
|
||||
from nostr_dvm.utils.scrapper.media_scrapper import YTDownload, get_media_duration
|
||||
@@ -15,7 +14,6 @@ async def input_data_file_duration(event, dvm_config, client, start=0, end=0):
|
||||
if end != 0:
|
||||
return end - start
|
||||
|
||||
|
||||
input_value = ""
|
||||
input_type = ""
|
||||
count = 0
|
||||
@@ -76,8 +74,6 @@ async def organize_input_media_data(input_value, input_type, start, end, dvm_con
|
||||
|
||||
filename, start, end, type = get_file_start_end_type(input_value, source_type, start, end, audio_only)
|
||||
|
||||
|
||||
|
||||
if filename == "" or filename is None:
|
||||
return ""
|
||||
if type != "audio" and type != "video":
|
||||
@@ -347,5 +343,5 @@ def get_media_link(url) -> (str, str):
|
||||
return None, None
|
||||
|
||||
|
||||
def download(videourl, path, audioonly=False):
|
||||
return YTDownload(videourl, path, audio_only=False)
|
||||
def download(videourl, path, audio_only=False):
|
||||
return YTDownload(videourl, path, audio_only=audio_only)
|
||||
|
@@ -261,7 +261,6 @@ def zaprequest(lud16: str, amount: int, content, zapped_event, zapped_user, keys
|
||||
print(lud16)
|
||||
print(str(amount))
|
||||
print(content)
|
||||
print(zapped_user.to_hex())
|
||||
if lud16.startswith("LNURL") or lud16.startswith("lnurl"):
|
||||
url = decode_bech32(lud16)
|
||||
elif '@' in lud16: # LNaddress
|
||||
|
Reference in New Issue
Block a user