This commit is contained in:
Believethehype
2024-06-23 10:04:50 +02:00
parent ce5df0488e
commit f1248806cd
2 changed files with 6 additions and 11 deletions

View File

@@ -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)

View File

@@ -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