Added new yml

This commit is contained in:
Guillem Hernandez Sola
2026-03-30 18:32:55 +02:00
parent 87d6df273b
commit fce4339d2b

View File

@@ -472,15 +472,26 @@ def download_and_crop_video(video_url, output_path):
try: try:
logging.info(f"⬇️ Downloading video source with ffmpeg: {video_url}") logging.info(f"⬇️ Downloading video source with ffmpeg: {video_url}")
download_cmd = [ video_url_l = video_url.lower()
"ffmpeg",
"-y", if ".m3u8" in video_url_l:
"-protocol_whitelist", "file,http,https,tcp,tls,crypto", download_cmd = [
"-allowed_extensions", "ALL", "ffmpeg",
"-i", video_url, "-y",
"-c", "copy", "-protocol_whitelist", "file,http,https,tcp,tls,crypto",
temp_input, "-allowed_extensions", "ALL",
] "-i", video_url,
"-c", "copy",
temp_input,
]
else:
download_cmd = [
"ffmpeg",
"-y",
"-i", video_url,
"-c", "copy",
temp_input,
]
download_result = subprocess.run( download_result = subprocess.run(
download_cmd, download_cmd,
@@ -543,7 +554,6 @@ def download_and_crop_video(video_url, output_path):
except Exception: except Exception:
pass pass
# --- Main Sync Function --- # --- Main Sync Function ---
def sync_feeds(args): def sync_feeds(args):
logging.info("🔄 Starting sync cycle...") logging.info("🔄 Starting sync cycle...")