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,6 +472,9 @@ 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}")
video_url_l = video_url.lower()
if ".m3u8" in video_url_l:
download_cmd = [ download_cmd = [
"ffmpeg", "ffmpeg",
"-y", "-y",
@@ -481,6 +484,14 @@ def download_and_crop_video(video_url, output_path):
"-c", "copy", "-c", "copy",
temp_input, 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...")