Update app_enhanced.py
Browse files- app_enhanced.py +2 -2
app_enhanced.py
CHANGED
|
@@ -1050,7 +1050,7 @@ def handle_link():
|
|
| 1050 |
link = request.form.get('link', '')
|
| 1051 |
if not link: return "❌ No link provided"
|
| 1052 |
import yt_dlp
|
| 1053 |
-
ydl_opts = {'outtmpl': comic_generator.video_path, 'format': 'best[height<=720]'}
|
| 1054 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
| 1055 |
ydl.download([link])
|
| 1056 |
success = comic_generator.generate_comic()
|
|
@@ -1122,4 +1122,4 @@ def frame_file(filename):
|
|
| 1122 |
if __name__ == '__main__':
|
| 1123 |
port = int(os.getenv("PORT", 7860))
|
| 1124 |
print(f"🚀 Starting Enhanced Comic Generator on host 0.0.0.0, port {port}")
|
| 1125 |
-
app.run(debug=False, host='0.0.0.0', port=port)
|
|
|
|
| 1050 |
link = request.form.get('link', '')
|
| 1051 |
if not link: return "❌ No link provided"
|
| 1052 |
import yt_dlp
|
| 1053 |
+
ydl_opts = {'outtmpl': comic_generator.video_path, 'format': 'best[height<=720]', 'overwrites': True}
|
| 1054 |
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
|
| 1055 |
ydl.download([link])
|
| 1056 |
success = comic_generator.generate_comic()
|
|
|
|
| 1122 |
if __name__ == '__main__':
|
| 1123 |
port = int(os.getenv("PORT", 7860))
|
| 1124 |
print(f"🚀 Starting Enhanced Comic Generator on host 0.0.0.0, port {port}")
|
| 1125 |
+
app.run(debug=False, host='0.0.0.0', port=port)```
|