Spaces:
Sleeping
Sleeping
Commit
·
db7598d
1
Parent(s):
0617224
remove proxy
Browse files- app/__init__.py +1 -1
- app/templates/files.html +2 -2
app/__init__.py
CHANGED
|
@@ -25,5 +25,5 @@ def create_app():
|
|
| 25 |
# Register blueprints
|
| 26 |
app.register_blueprint(main_bp)
|
| 27 |
app.register_blueprint(api_bp, url_prefix='/api')
|
| 28 |
-
|
| 29 |
return app
|
|
|
|
| 25 |
# Register blueprints
|
| 26 |
app.register_blueprint(main_bp)
|
| 27 |
app.register_blueprint(api_bp, url_prefix='/api')
|
| 28 |
+
|
| 29 |
return app
|
app/templates/files.html
CHANGED
|
@@ -128,7 +128,7 @@
|
|
| 128 |
class="text-xs bg-dark-600 hover:bg-dark-500 px-3 py-1.5 rounded transition-all duration-300">
|
| 129 |
<i class="fas fa-play mr-1"></i>${quality}
|
| 130 |
</button>
|
| 131 |
-
<a href="/video/${file.job_id}/${quality}"
|
| 132 |
download="${file.output_name}_${quality}.mp4"
|
| 133 |
class="text-xs bg-indigo-900 hover:bg-indigo-800 text-indigo-300 px-2 py-1.5 rounded transition-all duration-300">
|
| 134 |
<i class="fas fa-download"></i>
|
|
@@ -154,7 +154,7 @@
|
|
| 154 |
function playVideo(jobId, quality, outputName) {
|
| 155 |
const videoPlayer = document.getElementById('videoPlayer');
|
| 156 |
const videoModal = document.getElementById('videoModal');
|
| 157 |
-
videoPlayer.src = `/video/${jobId}/${quality}`;
|
| 158 |
videoModal.classList.remove('hidden');
|
| 159 |
}
|
| 160 |
|
|
|
|
| 128 |
class="text-xs bg-dark-600 hover:bg-dark-500 px-3 py-1.5 rounded transition-all duration-300">
|
| 129 |
<i class="fas fa-play mr-1"></i>${quality}
|
| 130 |
</button>
|
| 131 |
+
<a href="/api/video/${file.job_id}/${quality}"
|
| 132 |
download="${file.output_name}_${quality}.mp4"
|
| 133 |
class="text-xs bg-indigo-900 hover:bg-indigo-800 text-indigo-300 px-2 py-1.5 rounded transition-all duration-300">
|
| 134 |
<i class="fas fa-download"></i>
|
|
|
|
| 154 |
function playVideo(jobId, quality, outputName) {
|
| 155 |
const videoPlayer = document.getElementById('videoPlayer');
|
| 156 |
const videoModal = document.getElementById('videoModal');
|
| 157 |
+
videoPlayer.src = `/api/video/${jobId}/${quality}`;
|
| 158 |
videoModal.classList.remove('hidden');
|
| 159 |
}
|
| 160 |
|