opensquilla: deepseek-V4-flash/prompt_07_the_nineteenth_floor chunk 63/64
Browse files- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/episodes/clips/c15.mp4 +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/episodes/clips/c16.mp4 +3 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/submit2345.log +69 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep1.log +35 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep2.log +81 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep3.log +99 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/gen_dialogue.py +51 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/poll_test.log +5 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/resubmit_failed.py +44 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/tts_client.py +34 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/video_client.py +72 -0
- s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/video_poller.py +100 -0
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/episodes/clips/c15.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d36903b2ec4c5b2a5d8281f0bd5056801010140b6eeb4f37c6d13efec4bd31c1
|
| 3 |
+
size 14614302
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/episodes/clips/c16.mp4
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7b5434686af450b17e380bca75aee8b6bdea2f3bc9abc107b13f17be1e15040b
|
| 3 |
+
size 4485396
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/submit2345.log
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
SUBMITTED ep02 c01 weZzYiWAlk6JrNLXcWfA
|
| 2 |
+
SUBMITTED ep02 c02 VlKpOuNNLrsD1j5hDvyW
|
| 3 |
+
SUBMITTED ep02 c03 TRKfvt86U1NCPHHQu284
|
| 4 |
+
SUBMITTED ep02 c04 IRSUCp5XygqeXg1sMJ7h
|
| 5 |
+
SUBMITTED ep02 c05 632TficiVc9USNjYJyMv
|
| 6 |
+
SUBMITTED ep02 c06 fRl9eLsaIJWB20PXWJxW
|
| 7 |
+
SUBMITTED ep02 c07 waUbPdKcntN8f6R9r93o
|
| 8 |
+
SUBMITTED ep02 c08 S4gagMUt4mftMpWhWwGd
|
| 9 |
+
SUBMITTED ep02 c09 XOKFtuNKcWEDCXWKK9Tj
|
| 10 |
+
SUBMITTED ep02 c10 O2XG8lLBWmGcIYwit6sx
|
| 11 |
+
SUBMITTED ep02 c11 MDFQlgGLOGReMFqR2jqr
|
| 12 |
+
SUBMITTED ep02 c12 Y8cWAxloSfU4WtfbAvSs
|
| 13 |
+
SUBMITTED ep02 c13 GXkXPogQhdSAPjyX8xqs
|
| 14 |
+
SUBMITTED ep02 c14 3pkmom7DS2cbuU1YMWBI
|
| 15 |
+
SUBMITTED ep02 c15 w0ouekkFumefAUtjYMgJ
|
| 16 |
+
SUBMITTED ep02 c16 alJA5oDzwTHjWlbTZIyN
|
| 17 |
+
DONE ep02 16 jobs
|
| 18 |
+
SUBMITTED ep03 c01 l90AF4J5nKrBUR7ZUlDe
|
| 19 |
+
SUBMITTED ep03 c02 BTQo9kBFRr5VCI6Hz4p4
|
| 20 |
+
SUBMITTED ep03 c03 IWxWAahphTfMNkXmjdrG
|
| 21 |
+
SUBMITTED ep03 c04 Vn6d31lMWeugia1cpsSU
|
| 22 |
+
SUBMITTED ep03 c05 cnDeuDS12c6ENJfz4AJN
|
| 23 |
+
SUBMITTED ep03 c06 zxUGK4Ey62l9KQnz5bVf
|
| 24 |
+
SUBMITTED ep03 c07 oDTil7DyeeeVeDgE0dPa
|
| 25 |
+
SUBMITTED ep03 c08 AzK4GIkiUYjiHhSPykfT
|
| 26 |
+
SUBMITTED ep03 c09 8XoucT61AVfH66NyoRmk
|
| 27 |
+
SUBMITTED ep03 c10 ip6AGFxbXjTJvQjT3gw4
|
| 28 |
+
SUBMITTED ep03 c11 YEcd9W3qgebGYnhq82QV
|
| 29 |
+
SUBMITTED ep03 c12 UFYc5Ak3ua1RHl4ZT7P3
|
| 30 |
+
SUBMITTED ep03 c13 xlyIONaVu4f95bS88oFv
|
| 31 |
+
SUBMITTED ep03 c14 YrwKvLBAuFiqY0m2jjAl
|
| 32 |
+
SUBMITTED ep03 c15 SFIpjNVGOcJoktyxZPCG
|
| 33 |
+
SUBMITTED ep03 c16 a7ofreXQpmQBpQBqmUd6
|
| 34 |
+
DONE ep03 16 jobs
|
| 35 |
+
SUBMITTED ep04 c01 3oWwRkTGwnE5PdZgT3fu
|
| 36 |
+
SUBMITTED ep04 c02 Jn1W1A3tF09QqYhT82Rq
|
| 37 |
+
SUBMITTED ep04 c03 j9iPGwGznwbmPs66sNVY
|
| 38 |
+
SUBMITTED ep04 c04 aw50epQ3xmzLwOqP6rvu
|
| 39 |
+
SUBMITTED ep04 c05 a7tfsnNCRZNL9s3a9g81
|
| 40 |
+
SUBMITTED ep04 c06 SeKafQo0OJpwvtJZ5UtN
|
| 41 |
+
SUBMITTED ep04 c07 U8wXwN7Dgv0gCvx79Q7g
|
| 42 |
+
SUBMITTED ep04 c08 56L3pl264eLQ7J2n8aIj
|
| 43 |
+
SUBMITTED ep04 c09 WqyfSzsZQLEhu1NlLwvQ
|
| 44 |
+
SUBMITTED ep04 c10 CQUWjktXdOR1Nr25igPs
|
| 45 |
+
SUBMITTED ep04 c11 C3EAzqqY5DWLO9p7yovj
|
| 46 |
+
SUBMITTED ep04 c12 eoeflXwd5c5kEDIl7sX5
|
| 47 |
+
SUBMITTED ep04 c13 AvqIABv74R6qm0xailDN
|
| 48 |
+
SUBMITTED ep04 c14 CysyLxaHLiERTftCsmpf
|
| 49 |
+
SUBMITTED ep04 c15 tNJQilGZIUFZnSFLEA7N
|
| 50 |
+
SUBMITTED ep04 c16 unYGwouj4qo7O2MqFBYX
|
| 51 |
+
DONE ep04 16 jobs
|
| 52 |
+
SUBMITTED ep05 c01 RDNQh19NXPuvwVhoismP
|
| 53 |
+
SUBMITTED ep05 c02 gtGvW8XocFFqUerqH21Y
|
| 54 |
+
SUBMITTED ep05 c03 prWLXMHfTHxApkgXb4jS
|
| 55 |
+
SUBMITTED ep05 c04 0nDamtJ2Kc0bXSgTNAGb
|
| 56 |
+
SUBMITTED ep05 c05 tvOkc2Ya0pUNm28akzHc
|
| 57 |
+
SUBMITTED ep05 c06 Wimrx0kQujfLANWC8CZ3
|
| 58 |
+
SUBMITTED ep05 c07 3lcPeQasFDCyZvZUDaYO
|
| 59 |
+
SUBMITTED ep05 c08 0emJ9cya5UtgrczreYwK
|
| 60 |
+
SUBMITTED ep05 c09 qdCqbthKD0rFawk6WGgx
|
| 61 |
+
SUBMITTED ep05 c10 WVSq0mspi6sZEhWkGy5P
|
| 62 |
+
SUBMITTED ep05 c11 cfuHYx9Q5NRZX5HkXaHB
|
| 63 |
+
SUBMITTED ep05 c12 SibZUIgEiBSOS4ir8VSk
|
| 64 |
+
SUBMITTED ep05 c13 X3W1P37JTjIKQ2YmoAGz
|
| 65 |
+
SUBMITTED ep05 c14 WVr9XS0eBUrk8f6XIeEJ
|
| 66 |
+
SUBMITTED ep05 c15 90laV34iTvp8ud8ul9nN
|
| 67 |
+
SUBMITTED ep05 c16 gXVwrRb1dvwuzi8HnvAp
|
| 68 |
+
DONE ep05 16 jobs
|
| 69 |
+
EXIT 0
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep1.log
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[0] COMPLETED c01
|
| 2 |
+
[0] COMPLETED c07
|
| 3 |
+
[0] COMPLETED c14
|
| 4 |
+
[0] COMPLETED c15
|
| 5 |
+
[0] COMPLETED c02
|
| 6 |
+
[0] COMPLETED c09
|
| 7 |
+
[0] COMPLETED c04
|
| 8 |
+
[0] COMPLETED c05
|
| 9 |
+
[0] COMPLETED c01
|
| 10 |
+
[0] COMPLETED c04
|
| 11 |
+
[0] COMPLETED c05
|
| 12 |
+
[0] c06 failed
|
| 13 |
+
[0] COMPLETED c09
|
| 14 |
+
[0] COMPLETED c06
|
| 15 |
+
[0] COMPLETED c11
|
| 16 |
+
[0] COMPLETED c12
|
| 17 |
+
[0] COMPLETED c02
|
| 18 |
+
[0] COMPLETED c02
|
| 19 |
+
[0] COMPLETED c03
|
| 20 |
+
[0] COMPLETED c03
|
| 21 |
+
[0] COMPLETED c07
|
| 22 |
+
[0] COMPLETED c16
|
| 23 |
+
[0] COMPLETED c10
|
| 24 |
+
[0] COMPLETED c13
|
| 25 |
+
[0] COMPLETED c08
|
| 26 |
+
[0] COMPLETED c16
|
| 27 |
+
SAVED episodes/clips/c01.mp4
|
| 28 |
+
SAVED episodes/clips/c02.mp4
|
| 29 |
+
SAVED episodes/clips/c03.mp4
|
| 30 |
+
SAVED episodes/clips/c04.mp4
|
| 31 |
+
SAVED episodes/clips/c05.mp4
|
| 32 |
+
SAVED episodes/clips/c06.mp4
|
| 33 |
+
SAVED episodes/clips/c07.mp4
|
| 34 |
+
SAVED episodes/clips/c08.mp4
|
| 35 |
+
SAVED episodes/clips/c09.mp4
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep2.log
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[0] COMPLETED c03
|
| 2 |
+
[0] COMPLETED c13
|
| 3 |
+
[0] c07 failed
|
| 4 |
+
[0] COMPLETED c12
|
| 5 |
+
[0] COMPLETED c15
|
| 6 |
+
[0] COMPLETED c06
|
| 7 |
+
[0] COMPLETED c08
|
| 8 |
+
SAVED episodes/episodes/clips/c01.mp4
|
| 9 |
+
SAVED episodes/episodes/clips/c02.mp4
|
| 10 |
+
SAVED episodes/episodes/clips/c03.mp4
|
| 11 |
+
SAVED episodes/episodes/clips/c04.mp4
|
| 12 |
+
SAVED episodes/episodes/clips/c05.mp4
|
| 13 |
+
SAVED episodes/episodes/clips/c06.mp4
|
| 14 |
+
SAVED episodes/episodes/clips/c07.mp4
|
| 15 |
+
SAVED episodes/episodes/clips/c08.mp4
|
| 16 |
+
SAVED episodes/episodes/clips/c09.mp4
|
| 17 |
+
SAVED episodes/episodes/clips/c10.mp4
|
| 18 |
+
SAVED episodes/episodes/clips/c12.mp4
|
| 19 |
+
SAVED episodes/episodes/clips/c13.mp4
|
| 20 |
+
SAVED episodes/episodes/clips/c14.mp4
|
| 21 |
+
SAVED episodes/episodes/clips/c15.mp4
|
| 22 |
+
SAVED episodes/episodes/clips/c16.mp4
|
| 23 |
+
SAVED episodes/episodes/clips/c01.mp4
|
| 24 |
+
SAVED episodes/episodes/clips/c02.mp4
|
| 25 |
+
SAVED episodes/episodes/clips/c03.mp4
|
| 26 |
+
SAVED episodes/episodes/clips/c04.mp4
|
| 27 |
+
SAVED episodes/episodes/clips/c05.mp4
|
| 28 |
+
SAVED episodes/episodes/clips/c09.mp4
|
| 29 |
+
SAVED episodes/episodes/clips/c11.mp4
|
| 30 |
+
SAVED episodes/episodes/clips/c13.mp4
|
| 31 |
+
SAVED episodes/episodes/clips/c16.mp4
|
| 32 |
+
SAVED episodes/episodes/clips/c06.mp4
|
| 33 |
+
SAVED episodes/episodes/clips/c07.mp4
|
| 34 |
+
SAVED episodes/episodes/clips/c08.mp4
|
| 35 |
+
SAVED episodes/episodes/clips/c12.mp4
|
| 36 |
+
SAVED episodes/episodes/clips/c14.mp4
|
| 37 |
+
SAVED episodes/episodes/clips/c15.mp4
|
| 38 |
+
[1] COMPLETED c12
|
| 39 |
+
[1] COMPLETED c01
|
| 40 |
+
[1] COMPLETED c11
|
| 41 |
+
[1] COMPLETED c04
|
| 42 |
+
SAVED episodes/episodes/clips/c10.mp4
|
| 43 |
+
[2] COMPLETED c04
|
| 44 |
+
[2] COMPLETED c14
|
| 45 |
+
[2] COMPLETED c05
|
| 46 |
+
[2] COMPLETED c15
|
| 47 |
+
[3] COMPLETED c12
|
| 48 |
+
[4] COMPLETED c11
|
| 49 |
+
[5] COMPLETED c10
|
| 50 |
+
[5] COMPLETED c02
|
| 51 |
+
[6] COMPLETED c16
|
| 52 |
+
[8] COMPLETED c08
|
| 53 |
+
[8] COMPLETED c07
|
| 54 |
+
[8] COMPLETED c06
|
| 55 |
+
[9] COMPLETED c11
|
| 56 |
+
[9] COMPLETED c06
|
| 57 |
+
[9] COMPLETED c12
|
| 58 |
+
[9] c11 failed
|
| 59 |
+
[12] COMPLETED c14
|
| 60 |
+
[12] COMPLETED c16
|
| 61 |
+
[16] COMPLETED c02
|
| 62 |
+
[16] COMPLETED c10
|
| 63 |
+
[16] COMPLETED c10
|
| 64 |
+
[17] COMPLETED c15
|
| 65 |
+
[19] c13 failed
|
| 66 |
+
[19] COMPLETED c06
|
| 67 |
+
[20] COMPLETED c09
|
| 68 |
+
[20] COMPLETED c16
|
| 69 |
+
[21] COMPLETED c13
|
| 70 |
+
[21] COMPLETED c15
|
| 71 |
+
[21] COMPLETED c14
|
| 72 |
+
[24] c13 failed
|
| 73 |
+
[26] COMPLETED c05
|
| 74 |
+
[27] COMPLETED c08
|
| 75 |
+
[27] COMPLETED c11
|
| 76 |
+
[31] COMPLETED c10
|
| 77 |
+
[35] COMPLETED c07
|
| 78 |
+
[38] COMPLETED c13
|
| 79 |
+
[38] COMPLETED c04
|
| 80 |
+
SWEEP_DONE
|
| 81 |
+
SWEEP_EXIT 0
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/episodes/sweep3.log
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[0] COMPLETED c14
|
| 2 |
+
[0] COMPLETED c09
|
| 3 |
+
[0] COMPLETED c01
|
| 4 |
+
[0] COMPLETED c01
|
| 5 |
+
[0] COMPLETED c07
|
| 6 |
+
[0] c14 failed
|
| 7 |
+
SAVED episodes/ep01/clips/c01.mp4
|
| 8 |
+
SAVED episodes/ep01/clips/c02.mp4
|
| 9 |
+
SAVED episodes/ep01/clips/c03.mp4
|
| 10 |
+
SAVED episodes/ep01/clips/c04.mp4
|
| 11 |
+
SAVED episodes/ep01/clips/c05.mp4
|
| 12 |
+
SAVED episodes/ep01/clips/c06.mp4
|
| 13 |
+
SAVED episodes/ep01/clips/c07.mp4
|
| 14 |
+
SAVED episodes/ep01/clips/c08.mp4
|
| 15 |
+
SAVED episodes/ep01/clips/c09.mp4
|
| 16 |
+
SAVED episodes/ep01/clips/c10.mp4
|
| 17 |
+
SAVED episodes/ep01/clips/c12.mp4
|
| 18 |
+
SAVED episodes/ep01/clips/c13.mp4
|
| 19 |
+
SAVED episodes/ep01/clips/c14.mp4
|
| 20 |
+
SAVED episodes/ep01/clips/c15.mp4
|
| 21 |
+
SAVED episodes/ep01/clips/c16.mp4
|
| 22 |
+
SAVED episodes/ep02/clips/c01.mp4
|
| 23 |
+
SAVED episodes/ep02/clips/c02.mp4
|
| 24 |
+
SAVED episodes/ep02/clips/c03.mp4
|
| 25 |
+
SAVED episodes/ep02/clips/c04.mp4
|
| 26 |
+
SAVED episodes/ep02/clips/c05.mp4
|
| 27 |
+
SAVED episodes/ep02/clips/c09.mp4
|
| 28 |
+
SAVED episodes/ep02/clips/c11.mp4
|
| 29 |
+
SAVED episodes/ep02/clips/c13.mp4
|
| 30 |
+
SAVED episodes/ep02/clips/c16.mp4
|
| 31 |
+
SAVED episodes/ep03/clips/c01.mp4
|
| 32 |
+
SAVED episodes/ep03/clips/c02.mp4
|
| 33 |
+
SAVED episodes/ep03/clips/c03.mp4
|
| 34 |
+
SAVED episodes/ep03/clips/c06.mp4
|
| 35 |
+
SAVED episodes/ep03/clips/c07.mp4
|
| 36 |
+
SAVED episodes/ep03/clips/c08.mp4
|
| 37 |
+
SAVED episodes/ep03/clips/c12.mp4
|
| 38 |
+
SAVED episodes/ep03/clips/c14.mp4
|
| 39 |
+
SAVED episodes/ep04/clips/c09.mp4
|
| 40 |
+
SAVED episodes/ep04/clips/c15.mp4
|
| 41 |
+
SAVED episodes/ep05/clips/c01.mp4
|
| 42 |
+
SAVED episodes/ep05/clips/c07.mp4
|
| 43 |
+
SAVED episodes/ep02/clips/c12.mp4
|
| 44 |
+
SAVED episodes/ep02/clips/c14.mp4
|
| 45 |
+
SAVED episodes/ep03/clips/c15.mp4
|
| 46 |
+
SAVED episodes/ep04/clips/c01.mp4
|
| 47 |
+
SAVED episodes/ep04/clips/c11.mp4
|
| 48 |
+
SAVED episodes/ep04/clips/c12.mp4
|
| 49 |
+
SAVED episodes/ep05/clips/c02.mp4
|
| 50 |
+
SAVED episodes/ep05/clips/c04.mp4
|
| 51 |
+
SAVED episodes/ep05/clips/c05.mp4
|
| 52 |
+
[2] COMPLETED c03
|
| 53 |
+
[2] COMPLETED c04
|
| 54 |
+
SAVED episodes/ep01/clips/c11.mp4
|
| 55 |
+
SAVED episodes/ep03/clips/c10.mp4
|
| 56 |
+
SAVED episodes/ep03/clips/c16.mp4
|
| 57 |
+
SAVED episodes/ep04/clips/c03.mp4
|
| 58 |
+
SAVED episodes/ep04/clips/c04.mp4
|
| 59 |
+
SAVED episodes/ep02/clips/c07.mp4
|
| 60 |
+
SAVED episodes/ep02/clips/c08.mp4
|
| 61 |
+
SAVED episodes/ep03/clips/c11.mp4
|
| 62 |
+
SAVED episodes/ep04/clips/c06.mp4
|
| 63 |
+
SAVED episodes/ep05/clips/c12.mp4
|
| 64 |
+
SAVED episodes/ep04/clips/c14.mp4
|
| 65 |
+
SAVED episodes/ep04/clips/c16.mp4
|
| 66 |
+
[5] COMPLETED c08
|
| 67 |
+
SAVED episodes/ep04/clips/c08.mp4
|
| 68 |
+
[6] COMPLETED c09
|
| 69 |
+
SAVED episodes/ep05/clips/c09.mp4
|
| 70 |
+
SAVED episodes/ep04/clips/c02.mp4
|
| 71 |
+
SAVED episodes/ep04/clips/c10.mp4
|
| 72 |
+
SAVED episodes/ep05/clips/c10.mp4
|
| 73 |
+
SAVED episodes/ep05/clips/c15.mp4
|
| 74 |
+
[8] COMPLETED c06
|
| 75 |
+
[8] c13 failed
|
| 76 |
+
SAVED episodes/ep05/clips/c06.mp4
|
| 77 |
+
SAVED episodes/ep03/clips/c09.mp4
|
| 78 |
+
SAVED episodes/ep05/clips/c16.mp4
|
| 79 |
+
SAVED episodes/ep02/clips/c15.mp4
|
| 80 |
+
SAVED episodes/ep04/clips/c13.mp4
|
| 81 |
+
SAVED episodes/ep05/clips/c14.mp4
|
| 82 |
+
[12] COMPLETED c05
|
| 83 |
+
SAVED episodes/ep04/clips/c05.mp4
|
| 84 |
+
SAVED episodes/ep03/clips/c05.mp4
|
| 85 |
+
SAVED episodes/ep05/clips/c08.mp4
|
| 86 |
+
SAVED episodes/ep05/clips/c11.mp4
|
| 87 |
+
[17] COMPLETED c03
|
| 88 |
+
SAVED episodes/ep02/clips/c10.mp4
|
| 89 |
+
SAVED episodes/ep05/clips/c03.mp4
|
| 90 |
+
[20] COMPLETED c07
|
| 91 |
+
SAVED episodes/ep04/clips/c07.mp4
|
| 92 |
+
SAVED episodes/ep03/clips/c04.mp4
|
| 93 |
+
SAVED episodes/ep03/clips/c13.mp4
|
| 94 |
+
[27] COMPLETED c06
|
| 95 |
+
[27] COMPLETED c13
|
| 96 |
+
SAVED episodes/ep02/clips/c06.mp4
|
| 97 |
+
SAVED episodes/ep05/clips/c13.mp4
|
| 98 |
+
SWEEP_DONE
|
| 99 |
+
SWEEP_EXIT 0
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/gen_dialogue.py
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Generate per-character dialogue voice tracks for an episode from a dialogue manifest."""
|
| 3 |
+
import os, json, sys, time, urllib.request, urllib.error
|
| 4 |
+
|
| 5 |
+
API = "https://openrouter.ai/api/v1/audio/speech"
|
| 6 |
+
KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
| 7 |
+
MODEL = "deepgram/flux-tts:free" # free, reliable, confirmed 36 voices
|
| 8 |
+
|
| 9 |
+
VOICES = {
|
| 10 |
+
"MARAA": "flux-maeve-en", "MARA": "flux-maeve-en",
|
| 11 |
+
"THEO": "flux-tanner-en", "ALV": "flux-sharon-en",
|
| 12 |
+
"SIMON": "flux-wade-en", "NIA": "flux-priya-en",
|
| 13 |
+
"CALEB": "flux-donovan-en", "ANNA": "flux-kelsey-en",
|
| 14 |
+
"ANNOUNCER": "flux-bruce-en", # robotic system voice
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
def speak(text, voice, out_path, response_format="mp3"):
|
| 18 |
+
body = {"model": MODEL, "input": text, "voice": voice, "response_format": response_format}
|
| 19 |
+
r = urllib.request.Request(API, method="POST")
|
| 20 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 21 |
+
r.add_header("Content-Type", "application/json")
|
| 22 |
+
try:
|
| 23 |
+
resp = urllib.request.urlopen(r, json.dumps(body).encode(), timeout=120)
|
| 24 |
+
with open(out_path, "wb") as f:
|
| 25 |
+
f.write(resp.read())
|
| 26 |
+
return "OK", os.path.getsize(out_path)
|
| 27 |
+
except urllib.error.HTTPError as e:
|
| 28 |
+
return "ERR", e.read().decode()[:300]
|
| 29 |
+
|
| 30 |
+
def main():
|
| 31 |
+
ep = sys.argv[1] # ep01..ep05
|
| 32 |
+
manifest = f"episodes/{ep}/dialogue/dialogue.json"
|
| 33 |
+
if not os.path.exists(manifest):
|
| 34 |
+
print(f"no dialogue manifest at {manifest}")
|
| 35 |
+
sys.exit(1)
|
| 36 |
+
dlg = json.load(open(manifest))
|
| 37 |
+
outdir = f"episodes/{ep}/dialogue/wav"
|
| 38 |
+
os.makedirs(outdir, exist_ok=True)
|
| 39 |
+
for line in dlg["lines"]:
|
| 40 |
+
cid = line["id"]
|
| 41 |
+
out = os.path.join(outdir, cid + ".mp3")
|
| 42 |
+
if os.path.exists(out):
|
| 43 |
+
continue
|
| 44 |
+
voice = VOICES.get(line["char"], VOICES["ANNOUNCER"])
|
| 45 |
+
st, info = speak(line["text"], voice, out)
|
| 46 |
+
print(cid, line["char"], st, info, flush=True)
|
| 47 |
+
time.sleep(1)
|
| 48 |
+
print("DLG_DONE", ep)
|
| 49 |
+
|
| 50 |
+
if __name__ == "__main__":
|
| 51 |
+
main()
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/poll_test.log
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Traceback (most recent call last):
|
| 2 |
+
File "/data2/handoff_runs/hd_sys01_open_deepseekv4flash073_08241758/scratch/osq_sample_ds_a7kdj/workspace/_production/video_client.py", line 68, in <module>
|
| 3 |
+
print("POLL", _j.dumps(data)[:1200])
|
| 4 |
+
^^
|
| 5 |
+
NameError: name '_j' is not defined
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/resubmit_failed.py
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Resubmit failed/pending-complete clips for a set of episodes."""
|
| 3 |
+
import os, sys, json, time, urllib.request, urllib.error
|
| 4 |
+
|
| 5 |
+
API = "https://openrouter.ai/api/v1/videos"
|
| 6 |
+
KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
| 7 |
+
MODEL = "bytedance/seedance-2.5"
|
| 8 |
+
RES = "720p"
|
| 9 |
+
|
| 10 |
+
def submit(c):
|
| 11 |
+
body = {"model": MODEL, "prompt": c["prompt"], "resolution": RES,
|
| 12 |
+
"generate_audio": True, "duration": c["duration"]}
|
| 13 |
+
if "seed" in c: body["seed"] = c["seed"]
|
| 14 |
+
r = urllib.request.Request(API, method="POST")
|
| 15 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 16 |
+
r.add_header("Content-Type", "application/json")
|
| 17 |
+
try:
|
| 18 |
+
resp = urllib.request.urlopen(r, json.dumps(body).encode(), timeout=90)
|
| 19 |
+
return resp.status, json.loads(resp.read().decode())
|
| 20 |
+
except urllib.error.HTTPError as e:
|
| 21 |
+
return e.code, e.read().decode()[:300]
|
| 22 |
+
|
| 23 |
+
for ep in sys.argv[1:]:
|
| 24 |
+
manpath = f"episodes/{ep}/submit/{ep.upper()}_manifest.json"
|
| 25 |
+
jobsf = manpath + ".jobs.json"
|
| 26 |
+
man = json.load(open(manpath))
|
| 27 |
+
jobs = json.load(open(jobsf))
|
| 28 |
+
byid = {c["id"]: c for c in man["clips"]}
|
| 29 |
+
changed = False
|
| 30 |
+
for j in jobs:
|
| 31 |
+
# re-submit anything that failed
|
| 32 |
+
if j.get("status") in ("failed", "error", "cancelled", "submit_error"):
|
| 33 |
+
c = byid[j["id"]]
|
| 34 |
+
st, data = submit(c)
|
| 35 |
+
if st == 202:
|
| 36 |
+
j["status"] = "pending"; j["job"] = data["id"]; j.pop("detail", None); j.pop("error", None)
|
| 37 |
+
print("RESUBMITTED", ep, j["id"], data["id"], flush=True)
|
| 38 |
+
changed = True
|
| 39 |
+
else:
|
| 40 |
+
print("RE_ERR", ep, j["id"], data, flush=True)
|
| 41 |
+
time.sleep(2)
|
| 42 |
+
if changed:
|
| 43 |
+
json.dump(jobs, open(jobsf, "w"), indent=2)
|
| 44 |
+
print("RESUBMIT_DONE")
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/tts_client.py
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""OpenRouter TTS client (OpenAI-compatible /api/v1/audio/speech)."""
|
| 3 |
+
import os, sys, json, urllib.request, urllib.error
|
| 4 |
+
|
| 5 |
+
API = "https://openrouter.ai/api/v1/audio/speech"
|
| 6 |
+
KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
| 7 |
+
|
| 8 |
+
def speak(model, text, voice, out_path, response_format="mp3", speed=1.0):
|
| 9 |
+
body = {
|
| 10 |
+
"model": model,
|
| 11 |
+
"input": text,
|
| 12 |
+
"voice": voice,
|
| 13 |
+
"response_format": response_format,
|
| 14 |
+
}
|
| 15 |
+
if speed != 1.0: body["speed"] = speed
|
| 16 |
+
r = urllib.request.Request(API, method="POST")
|
| 17 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 18 |
+
r.add_header("Content-Type", "application/json")
|
| 19 |
+
data = json.dumps(body).encode()
|
| 20 |
+
try:
|
| 21 |
+
resp = urllib.request.urlopen(r, data, timeout=120)
|
| 22 |
+
with open(out_path, "wb") as f:
|
| 23 |
+
f.write(resp.read())
|
| 24 |
+
return ("OK", resp.headers.get("X-Generation-Id"), os.path.getsize(out_path))
|
| 25 |
+
except urllib.error.HTTPError as e:
|
| 26 |
+
return ("ERR", e.code, e.read().decode()[:500])
|
| 27 |
+
except Exception as e:
|
| 28 |
+
return ("ERR", type(e).__name__, str(e))
|
| 29 |
+
|
| 30 |
+
if __name__ == "__main__":
|
| 31 |
+
# args: model voice "text" out
|
| 32 |
+
model, voice, text, out = sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4]
|
| 33 |
+
st, extra, sz = speak(model, voice, text, out)
|
| 34 |
+
print("TTS_RESULT", st, extra, sz)
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/video_client.py
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""OpenRouter video generation client for NINETEEN production."""
|
| 3 |
+
import os, sys, json, time, urllib.request, urllib.error
|
| 4 |
+
|
| 5 |
+
API = "https://openrouter.ai/api/v1/videos"
|
| 6 |
+
KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
| 7 |
+
|
| 8 |
+
def _req(method, url, body=None, timeout=60):
|
| 9 |
+
r = urllib.request.Request(url, method=method)
|
| 10 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 11 |
+
r.add_header("Content-Type", "application/json")
|
| 12 |
+
data = json.dumps(body).encode() if body is not None else None
|
| 13 |
+
try:
|
| 14 |
+
resp = urllib.request.urlopen(r, data, timeout=timeout)
|
| 15 |
+
return resp.status, json.loads(resp.read().decode())
|
| 16 |
+
except urllib.error.HTTPError as e:
|
| 17 |
+
return e.code, e.read().decode()[:800]
|
| 18 |
+
except Exception as e:
|
| 19 |
+
return -1, str(e)
|
| 20 |
+
|
| 21 |
+
def submit(model, prompt, first_frame=None, resolution="720p", generate_audio=True,
|
| 22 |
+
duration=None, seed=None, image_url_host=None):
|
| 23 |
+
body = {
|
| 24 |
+
"model": model,
|
| 25 |
+
"prompt": prompt,
|
| 26 |
+
"resolution": resolution,
|
| 27 |
+
"generate_audio": generate_audio,
|
| 28 |
+
}
|
| 29 |
+
if duration: body["duration"] = duration
|
| 30 |
+
if seed is not None: body["seed"] = seed
|
| 31 |
+
if first_frame:
|
| 32 |
+
body["frame_images"] = [{"frame_type": "first_frame",
|
| 33 |
+
"image_url": {"url": first_frame}}]
|
| 34 |
+
return _req("POST", API, body)
|
| 35 |
+
|
| 36 |
+
def poll(job_id, timeout=1800, interval=15):
|
| 37 |
+
url = f"{API}/{job_id}"
|
| 38 |
+
t0 = time.time()
|
| 39 |
+
while time.time() - t0 < timeout:
|
| 40 |
+
st, data = _req("GET", url)
|
| 41 |
+
if st != 200:
|
| 42 |
+
time.sleep(interval); continue
|
| 43 |
+
status = data.get("status")
|
| 44 |
+
if status in ("completed", "failed", "error", "cancelled"):
|
| 45 |
+
return data
|
| 46 |
+
time.sleep(interval)
|
| 47 |
+
return {"status": "timeout"}
|
| 48 |
+
|
| 49 |
+
def download(job_id, out_path, index=0):
|
| 50 |
+
url = f"{API}/{job_id}/content?index={index}"
|
| 51 |
+
r = urllib.request.Request(url, method="GET")
|
| 52 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 53 |
+
with urllib.request.urlopen(r, timeout=120) as resp, open(out_path, "wb") as f:
|
| 54 |
+
f.write(resp.read())
|
| 55 |
+
return out_path
|
| 56 |
+
|
| 57 |
+
if __name__ == "__main__":
|
| 58 |
+
import json as _j
|
| 59 |
+
cmd = sys.argv[1] if len(sys.argv) > 1 else "submit"
|
| 60 |
+
if cmd == "submit":
|
| 61 |
+
import json as _j
|
| 62 |
+
cfg = _j.loads(sys.argv[2])
|
| 63 |
+
st, data = submit(**cfg)
|
| 64 |
+
print("SUBMIT_STATUS", st)
|
| 65 |
+
print("SUBMIT_BODY", _j.dumps(data)[:800] if not isinstance(data, str) else data)
|
| 66 |
+
elif cmd == "poll":
|
| 67 |
+
job = sys.argv[2]
|
| 68 |
+
data = poll(job, timeout=int(sys.argv[3]) if len(sys.argv) > 3 else 1800)
|
| 69 |
+
print("POLL", _j.dumps(data)[:1200])
|
| 70 |
+
elif cmd == "download":
|
| 71 |
+
job, out = sys.argv[2], sys.argv[3]
|
| 72 |
+
print("SAVED", download(job, out))
|
s_harness_data/opensquilla/deepseek-V4-flash/prompt_07_the_nineteenth_floor/_production/video_poller.py
ADDED
|
@@ -0,0 +1,100 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""Concurrent poll+download for all episode manifests. Sweeps pending jobs in parallel."""
|
| 3 |
+
import os, sys, json, time, urllib.request, urllib.error
|
| 4 |
+
from concurrent.futures import ThreadPoolExecutor, as_completed
|
| 5 |
+
|
| 6 |
+
API = "https://openrouter.ai/api/v1/videos"
|
| 7 |
+
KEY = os.environ.get("OPENROUTER_API_KEY", "")
|
| 8 |
+
|
| 9 |
+
def _get(url, timeout=60):
|
| 10 |
+
r = urllib.request.Request(url, method="GET")
|
| 11 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 12 |
+
try:
|
| 13 |
+
resp = urllib.request.urlopen(r, timeout=timeout)
|
| 14 |
+
return resp.status, json.loads(resp.read().decode())
|
| 15 |
+
except urllib.error.HTTPError as e:
|
| 16 |
+
return e.code, e.read().decode()[:300]
|
| 17 |
+
except Exception as e:
|
| 18 |
+
return -1, str(e)
|
| 19 |
+
|
| 20 |
+
def _dl(url, out):
|
| 21 |
+
r = urllib.request.Request(url, method="GET")
|
| 22 |
+
r.add_header("Authorization", "Bearer " + KEY)
|
| 23 |
+
with urllib.request.urlopen(r, timeout=180) as resp, open(out, "wb") as f:
|
| 24 |
+
f.write(resp.read())
|
| 25 |
+
|
| 26 |
+
def status(j):
|
| 27 |
+
st, data = _get(f"{API}/{j['job']}")
|
| 28 |
+
if st == 200:
|
| 29 |
+
s = data.get("status")
|
| 30 |
+
if s == "completed" and data.get("unsigned_urls"):
|
| 31 |
+
j["status"] = "completed"; j["unsigned_urls"] = data["unsigned_urls"]
|
| 32 |
+
elif s in ("failed", "error", "cancelled"):
|
| 33 |
+
j["status"] = s; j["detail"] = str(data)[:200]
|
| 34 |
+
return j
|
| 35 |
+
|
| 36 |
+
def main(rounds=60, interval=15):
|
| 37 |
+
manifests = sys.argv[1:] if len(sys.argv) > 1 else []
|
| 38 |
+
if not manifests:
|
| 39 |
+
# default: all episode submit manifests
|
| 40 |
+
import glob
|
| 41 |
+
manifests = sorted(glob.glob("episodes/ep0*/submit/EP0*_manifest.json"))
|
| 42 |
+
done_all = False
|
| 43 |
+
for r in range(rounds):
|
| 44 |
+
active = []
|
| 45 |
+
for m in manifests:
|
| 46 |
+
jobsfile = m + ".jobs.json"
|
| 47 |
+
if not os.path.exists(jobsfile): continue
|
| 48 |
+
jobs = json.load(open(jobsfile))
|
| 49 |
+
pend = [j for j in jobs if j.get("status") == "pending"]
|
| 50 |
+
active += [(m, jobsfile, j) for j in pend]
|
| 51 |
+
if not active:
|
| 52 |
+
if r > 0: done_all = True
|
| 53 |
+
break
|
| 54 |
+
with ThreadPoolExecutor(max_workers=12) as ex:
|
| 55 |
+
futs = {ex.submit(status, j): (m, jobsfile, j) for m, jobsfile, j in active}
|
| 56 |
+
updated = {}
|
| 57 |
+
for f in as_completed(futs):
|
| 58 |
+
m, jobsfile, j = futs[f]
|
| 59 |
+
j = f.result()
|
| 60 |
+
updated.setdefault(jobsfile, []).append(j)
|
| 61 |
+
if j.get("status") == "completed":
|
| 62 |
+
print(f"[{r}] COMPLETED {j['id']}", flush=True)
|
| 63 |
+
elif j.get("status") != "pending":
|
| 64 |
+
print(f"[{r}] {j['id']} {j.get('status')}", flush=True)
|
| 65 |
+
# write back
|
| 66 |
+
for m, jobsfile, _ in futs.values():
|
| 67 |
+
if jobsfile in updated and os.path.exists(jobsfile):
|
| 68 |
+
jobs = json.load(open(jobsfile))
|
| 69 |
+
byid = {j["id"]: j for j in updated[jobsfile]}
|
| 70 |
+
for j in jobs:
|
| 71 |
+
if j["id"] in byid: j.update(byid[j["id"]])
|
| 72 |
+
json.dump(jobs, open(jobsfile, "w"), indent=2)
|
| 73 |
+
# download any completed not yet saved
|
| 74 |
+
for m in manifests:
|
| 75 |
+
jobsfile = m + ".jobs.json"
|
| 76 |
+
if not os.path.exists(jobsfile): continue
|
| 77 |
+
man = json.load(open(m))
|
| 78 |
+
jobs = json.load(open(jobsfile))
|
| 79 |
+
order = {c["id"]: c for c in man["clips"]}
|
| 80 |
+
for j in jobs:
|
| 81 |
+
if j.get("status") == "completed" and j.get("unsigned_urls"):
|
| 82 |
+
cid = j["id"]
|
| 83 |
+
# per-episode path: episodes/<ep0N>/clips/<cid>.mp4
|
| 84 |
+
epname = os.path.basename(os.path.dirname(os.path.dirname(m)))
|
| 85 |
+
epdir = os.path.join("episodes", epname, "clips")
|
| 86 |
+
out = os.path.join(epdir, cid + ".mp4")
|
| 87 |
+
os.makedirs(epdir, exist_ok=True)
|
| 88 |
+
if not os.path.exists(out):
|
| 89 |
+
try:
|
| 90 |
+
_dl(j["unsigned_urls"][0], out)
|
| 91 |
+
print(f"SAVED {out}", flush=True)
|
| 92 |
+
except Exception as e:
|
| 93 |
+
print(f"DL_ERR {cid} {e}", flush=True)
|
| 94 |
+
j["saved"] = os.path.exists(out)
|
| 95 |
+
json.dump(jobs, open(jobsfile, "w"), indent=2)
|
| 96 |
+
time.sleep(interval)
|
| 97 |
+
print("SWEEP_DONE" if done_all else "SWEEP_STOPPED_ROUNDS")
|
| 98 |
+
|
| 99 |
+
if __name__ == "__main__":
|
| 100 |
+
main()
|