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