Spaces:
Paused
Paused
Julian Bilcke
commited on
Commit
·
42dbb93
1
Parent(s):
6156cfb
fix
Browse files- package.json +0 -1
- scripts/interpolate.sh +2 -2
package.json
CHANGED
|
@@ -7,7 +7,6 @@
|
|
| 7 |
"start": "node --loader ts-node/esm src/index.mts",
|
| 8 |
"batch:updatePlaylists": "node --loader ts-node/esm src/batch/updatePlaylists.mts",
|
| 9 |
"batch:interpolate": "node --loader ts-node/esm src/batch/interpolate_legacy.mts",
|
| 10 |
-
"batch:interpolate_legacy": "node --loader ts-node/esm src/batch/interpolate_legacy.mts",
|
| 11 |
"docker": "npm run docker:build && npm run docker:run",
|
| 12 |
"docker:build": "docker build -t media-server .",
|
| 13 |
"docker:run": "docker run -it -p 7860:7860 media-server"
|
|
|
|
| 7 |
"start": "node --loader ts-node/esm src/index.mts",
|
| 8 |
"batch:updatePlaylists": "node --loader ts-node/esm src/batch/updatePlaylists.mts",
|
| 9 |
"batch:interpolate": "node --loader ts-node/esm src/batch/interpolate_legacy.mts",
|
|
|
|
| 10 |
"docker": "npm run docker:build && npm run docker:run",
|
| 11 |
"docker:build": "docker build -t media-server .",
|
| 12 |
"docker:run": "docker run -it -p 7860:7860 media-server"
|
scripts/interpolate.sh
CHANGED
|
@@ -18,12 +18,12 @@ for FILE_PATH in $INPUT_DIR*.mp4; do
|
|
| 18 |
echo "Processing $FILE_NAME, output will be saved in $OUTPUT_DIR$FILE_NAME"
|
| 19 |
|
| 20 |
# Run your node command
|
| 21 |
-
if ! npm run
|
| 22 |
then
|
| 23 |
# The first attempt has failed, retrying
|
| 24 |
echo "Attempt 1 failed for $FILE_NAME, retrying..."
|
| 25 |
|
| 26 |
-
if ! npm run
|
| 27 |
then
|
| 28 |
# Both attempts have failed, skipping the file
|
| 29 |
echo "Both attempts failed for $FILE_NAME, skipping the file..."
|
|
|
|
| 18 |
echo "Processing $FILE_NAME, output will be saved in $OUTPUT_DIR$FILE_NAME"
|
| 19 |
|
| 20 |
# Run your node command
|
| 21 |
+
if ! npm run batch:interpolate "$FILE_PATH" "$TEMP_FILE_PATH"
|
| 22 |
then
|
| 23 |
# The first attempt has failed, retrying
|
| 24 |
echo "Attempt 1 failed for $FILE_NAME, retrying..."
|
| 25 |
|
| 26 |
+
if ! npm run batch:interpolate "$FILE_PATH" "$TEMP_FILE_PATH"
|
| 27 |
then
|
| 28 |
# Both attempts have failed, skipping the file
|
| 29 |
echo "Both attempts failed for $FILE_NAME, skipping the file..."
|