chore(extractor): cache Soaper for 12h

This commit is contained in:
WebStreamr 2025-09-02 13:48:01 +00:00
parent ccf8006f13
commit 1e100e6d2e
No known key found for this signature in database
2 changed files with 5 additions and 3 deletions

View file

@ -12,6 +12,8 @@ export class Soaper extends Extractor {
public readonly label = 'Soaper';
public override readonly ttl: number = 43200000; // 12h
public supports(_ctx: Context, url: URL): boolean {
return null !== url.host.match(/soaper/) && null !== url.pathname.match(/^\/(episode|movie)_/);
}

View file

@ -13,7 +13,7 @@ exports[`Soaper Black Mirror 1`] = `
"title": "Black Mirror 4x2",
},
"sourceId": "soaper_en",
"ttl": 900000,
"ttl": 43200000,
"url": "https://soaper.live/home/index/TVM3U8?key=RnX8mnL4l5hEz38dxBAbFjV27jbe3Yh13LqxV48ViM7j60OLjmh3w5PJ8nQPh2brz0eEAAt50Zvv7d89hpM3OLWQ6nsjb4n0l3ApSna13LB3EbUxbbyJ70KwuVjaooMP5mIE4MbjyvqJHjRq3amYA5SPV8NRl8wmivl8YyrlMmFx6VomOAp2C5WR46w10v.m3u8",
},
]
@ -32,7 +32,7 @@ exports[`Soaper Full Metal Jacket 1`] = `
"title": "Full Metal Jacket (1987)",
},
"sourceId": "soaper_en",
"ttl": 900000,
"ttl": 43200000,
"url": "https://soaper.live/home/index/M3U8?key=RnX8BOr9NRiEz3W5ownqUjVQ3LQew9S13L8VbnEQCM72wz1AEyIrld1z4NXwF2ByZneoX7i5Ez9BlPpxUpMeqJ2qdOhjb4PlArnASnlEpp2b8Whx1lwpx4oRIVzEKX0Z6rcEQWArMlxvTjRq3aMEnQUP3mvva8RZfvldjM9mz5FxZZv6QKdzcVxqX8q.m3u8",
},
]
@ -51,7 +51,7 @@ exports[`Soaper last of us s2e3 1`] = `
"title": "The Last of Us 2x3",
},
"sourceId": "soaper_de",
"ttl": 900000,
"ttl": 43200000,
"url": "https://soaper.live/home/index/TVM3U8?key=LrezaYpLOxT4O61m8e3mSLdBzLNyRaf8zPmERxvwh1Mrj6zbVEUvAzRv2KZLu5PVvRKqwbcz6qmb9vbOi3wQZ4ae8RsZ9N3Jm9Yatw4yE55bBp.m3u8",
},
]