Added new yml
This commit is contained in:
@@ -472,6 +472,9 @@ def download_and_crop_video(video_url, output_path):
|
||||
try:
|
||||
logging.info(f"⬇️ Downloading video source with ffmpeg: {video_url}")
|
||||
|
||||
video_url_l = video_url.lower()
|
||||
|
||||
if ".m3u8" in video_url_l:
|
||||
download_cmd = [
|
||||
"ffmpeg",
|
||||
"-y",
|
||||
@@ -481,6 +484,14 @@ def download_and_crop_video(video_url, output_path):
|
||||
"-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...")
|
||||
|
||||
Reference in New Issue
Block a user