phase 1 rework

This commit is contained in:
admin_rb committed 2026-10-23 16:38:55 +02:00
1 parent 211bfd174d
commit 20054198f3
38 files changed
+5001 -1019

No files matched your search

+85
View File
@@ -0,0 +1,85 @@
{
"version": 1,
"baselineCommit": "211bfd174dd78eac36f3c74411ecaa72f56eec79",
"description": "Synthetic examples captured from the reviewed source. IDs, tokens, timestamps, filenames, and logs are fictional. These fixtures must never initiate network requests.",
"cli": {
"video": {
"script": "scripts/proxer-dl-video.py",
"requiredFlags": [["-u", "--url"], ["-f", "--filename"], ["-t", "--token"], ["-o", "--output"]]
},
"series": {
"script": "scripts/proxer-dl-series.py",
"requiredFlags": [["-i", "--id"], ["-n", "--name"], ["-e", "--episodes"], ["-l", "--language"], ["-t", "--token"], ["-o", "--output"]],
"languages": ["engsub", "engdub", "gersub", "gerdub"]
}
},
"namingCases": [
{
"entrypoint": "web-video",
"input": { "url": "https://proxer.me/watch/999999999/2/engsub" },
"expectedFilenames": ["999999999 E2 engsub"]
},
{
"entrypoint": "web-video",
"input": { "url": "https://proxer.me/watch/999999999/2/engsub", "filename": "Fixture Video S01E02" },
"expectedFilenames": ["Fixture Video S01E02"]
},
{
"entrypoint": "web-series",
"input": { "id": "999999999", "name": "Fixture Series ", "episode_from": "9", "episode_to": "10", "language": "gersub" },
"expectedFilenames": ["Fixture SeriesE09_gersub", "Fixture SeriesE10_gersub"]
},
{
"entrypoint": "web-series",
"input": { "id": "999999999", "episode_from": "1", "episode_to": "2", "language": "gerdub" },
"expectedFilenames": ["999999999E1_gerdub", "999999999E2_gerdub"]
},
{
"entrypoint": "cli-series",
"input": { "id": "999999999", "name": "Fixture Series", "episodes": "9-10", "language": "engdub" },
"expectedFilenames": ["Fixture Series_Episode_9_engdub.mp4", "Fixture Series_Episode_10_engdub.mp4"]
}
],
"legacyDocuments": {
"queue": [
{
"_id": "000000000000000000000001",
"url": "https://proxer.me/watch/999999999/1/engsub",
"token": "PHASE1_FIXTURE_COOKIE=NOT_A_REAL_TOKEN==",
"filename": "Fixture SeriesE1_engsub",
"created_at": "2026-01-01T12:00:00.000Z"
},
{
"_id": "000000000000000000000002",
"url": "https://proxer.me/watch/999999999/2/engsub",
"token": "PHASE1_FIXTURE_COOKIE=NOT_A_REAL_TOKEN==",
"filename": "Fixture SeriesE2_engsub",
"created_at": "2026-01-01T12:00:00.000Z",
"processing": true
}
],
"done": [
{
"_id": "000000000000000000000003",
"filename": "Fixture Completed",
"finished_at": "2026-01-01T12:10:00.000Z",
"output_log": "Synthetic completed download log."
}
],
"failed": [
{
"_id": "000000000000000000000004",
"filename": "Fixture Failed",
"failed_at": "2026-01-01T12:11:00.000Z",
"output_log": "Synthetic network failure log."
}
],
"settings": [{ "_id": "global", "captcha_blocked": false }]
},
"intentionalPhase1Corrections": [
"The video web form's name field becomes a usable filename fallback; explicit legacy filename remains supported.",
"Python failures must exit nonzero and produce a failed result; historical zero-exit failures are not preserved.",
"Unsafe or malformed paths, URLs, cookies, and unbounded episode ranges are rejected.",
"Public status documents exclude credential fields."
]
}
+16
View File
@@ -0,0 +1,16 @@
{
"version": 1,
"baselineCommit": "211bfd174dd78eac36f3c74411ecaa72f56eec79",
"protectedRoot": "scripts/lib",
"entries": [
{ "path": ".", "type": "directory" },
{ "path": "__pycache__", "type": "directory" },
{ "path": "__pycache__/proxer_utils.cpython-311.pyc", "type": "file", "sha256": "031db0ff7cdf5658ee6e722f387c40e0d77075c74c889c7e90a0594039fa7c06", "executable": true },
{ "path": "__pycache__/proxer_utils.cpython-313.pyc", "type": "file", "sha256": "6f2f3533e4a73876977d4036be681efaa025a658e666c2fda19f961c34a88a05", "executable": true },
{ "path": "__pycache__/proxer_utils.cpython-38.pyc", "type": "file", "sha256": "84525538e325d3345596147e8f7895c42be89374f03673546a3533db00aecf28", "executable": true },
{ "path": "__pycache__/script_utils.cpython-313.pyc", "type": "file", "sha256": "bf60ab460120ace66aa3cd78b3317fc4193de6339b1150d8e5dcdb30d583e5e0", "executable": true },
{ "path": "__pycache__/script_utils.cpython-38.pyc", "type": "file", "sha256": "cc0fc12c9dfb77d2be003e4c23d020c1940d3694a0be457205f391de31529a45", "executable": true },
{ "path": "proxer_utils.py", "type": "file", "sha256": "52820651360fd5fd351d28fe979fda494092a6947467ae65f600064722941789", "executable": true },
{ "path": "script_utils.py", "type": "file", "sha256": "dfc4e19fd5395b77c746871b34a14c134022883c571e3603bb35346307e9e017", "executable": true }
]
}