@letsmoe/otter-plugin-s-to 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -3
- package/plugin.js +4 -0
- package/README.md +0 -3
package/package.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@letsmoe/otter-plugin-s-to",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"main": "plugin.js",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"otter-plugin"
|
|
7
|
+
],
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/Letsmoe/otter.git"
|
|
11
|
+
}
|
|
6
12
|
}
|
package/plugin.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var ne="OTTER_ACCOUNT_USERNAME",ie="OTTER_ACCOUNT_SESSION";var U={"User-Agent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36",Accept:"text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8","Accept-Language":"de-DE,de;q=0.9,en;q=0.8","Accept-Encoding":"gzip, deflate, br"};function oe(){let e=process.env.FLARESOLVERR_URL;return e&&e.trim()?e.trim():void 0}function se(){return oe()!==void 0}async function ae(e,t=60000){let r=oe();if(!r)throw Error("no FLARESOLVERR_URL configured");let n=await fetch(r,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({cmd:"request.get",url:e,maxTimeout:t}),signal:AbortSignal.timeout(t+5000)});if(!n.ok)throw Error(`solver HTTP ${n.status} fetching ${e}`);let i=await n.json();if(i.status!=="ok"||!i.solution?.response)throw Error(`solver failed for ${e}: ${i.message??"unknown"}`);return i.solution.response}function x(e){try{return new URL(e).hostname.replace(/^www\./,"")}catch{return""}}function H(e){return e}var Q=require("fs");class b extends Error{type;code;status;constructor(e,t,r={}){super(t);this.name=e,this.type=e,this.code=r.code,this.status=r.status}}class h extends b{constructor(e,t){super("blocked_error",e,{code:"blocked",status:t})}}class u extends b{constructor(e,t,r){super("source_error",t,{code:e,status:r})}}class S extends b{constructor(e,t){super("dead_link_error",e,{code:"dead_link",status:t})}}class D extends b{constructor(e,t){super("rate_limit_error",e,{code:"rate_limited",status:t})}}class w extends b{constructor(e,t){super("http_error",e,{status:t})}}var ce="blocked: ";function ue(){return{async open(e){if(typeof __otterBrowse!=="function")throw new h(`Opening ${e} needs the Otter app`);try{return await __otterBrowse(e)}catch(t){throw gt(t)}}}}function gt(e){let t=e instanceof Error?e.message:String(e);if(!t.startsWith(ce))return e;return new h(t.slice(ce.length))}var B=require("node-html-parser");var ht=/eval\(function\(p,a,c,k,e,[dr]\)/,yt=/\}\(['"]/,bt=/^,\s*(\d+)\s*,\s*(\d+)\s*,\s*(?=['"])/,xt=/^\s*\.split\(\s*['"]\|['"]\s*\)/;var St={n:`
|
|
2
|
+
`,t:"\t",r:"\r"};function le(e,t){let r=e[t],n="",i=t+1;while(i<e.length){let o=e[i];if(o===r)return{value:n,end:i+1};if(o!=="\\"){n+=o,i+=1;continue}let s=e[i+1];n+=St[s]||s,i+=2}return}function fe(e,t){let r=e%t,n=e<t?"":fe(Math.floor(e/t),t);if(r>35)return n+String.fromCharCode(r+29);return n+r.toString(36)}function wt(e,t,r){let n=new Map;for(let i=0;i<r;i++){let o=fe(i,t);n.set(o,e[i]||o)}return n}function Pt(e){let t=ht.exec(e);if(!t)return;let r=e.slice(t.index).search(yt);if(r===-1)return;let n=le(e,t.index+r+2);if(!n)return;let i=e.slice(n.end),o=bt.exec(i);if(!o)return;let s=le(i,o[0].length);if(!s)return;if(!xt.test(i.slice(s.end)))return;return{payload:n.value,radix:parseInt(o[1],10),count:parseInt(o[2],10),words:s.value.split("|")}}function me(e){let t=Pt(e);if(!t)return;let r=wt(t.words,t.radix,t.count);return t.payload.replace(/\b\w+\b/g,(n)=>{let i=r.get(n);if(i===void 0)return n;return i})}function N(e){let t=me(e);if(t===void 0)return;for(let r=1;r<3;r++){let n=me(t);if(n===void 0)return t;t=n}return t}var _t=/^[a-z][a-z0-9+.-]*:/i,Rt=/^([a-z][a-z0-9+.-]*:)\/\/([^/?#]+)([^?#]*)(\?[^#]*)?/i;function pe(e){let t=Rt.exec(e);if(!t)throw Error(`not an absolute URL: ${e}`);return{protocol:t[1],origin:`${t[1]}//${t[2]}`,pathname:t[3]||"/",search:t[4]||""}}function l(e){return pe(e).origin}function de(e){let t=e.search(/[?#]/),r=e,n="";if(t!==-1)r=e.slice(0,t),n=e.slice(t);let i=[];for(let s of r.split("/"))if(s==="..")i.pop();else if(s!==".")i.push(s);let o=i.join("/");if(o.startsWith("/"))return o+n;return"/"+o+n}function d(e,t){if(_t.test(t))return t;let r=pe(e);if(t.startsWith("//"))return r.protocol+t;if(t.startsWith("/"))return r.origin+de(t);if(t.startsWith("?"))return r.origin+r.pathname+t;if(t.startsWith("#"))return r.origin+r.pathname+r.search+t;let n=r.pathname.slice(0,r.pathname.lastIndexOf("/")+1);return r.origin+de(n+t)}var vt=/https?:\/\/[^\s"'<>\\)]+/gi,Et=/\.(m3u8|mpd|mp4|webm)(?:[?#]|$)/i;function v(e,t="video/mp4"){if(/\.m3u8/i.test(e))return"application/x-mpegURL";if(/\.mpd/i.test(e))return"application/dash+xml";if(/\.webm/i.test(e))return"video/webm";if(/\.mp4/i.test(e))return"video/mp4";return t}function At(e){return e.replace(/\\\//g,"/").replace(/\\u0026/gi,"&").replace(/&/g,"&")}function ge(e){let t=At(e).match(vt)||[],r=[];for(let n of t){let i=n.replace(/[,;]+$/,"");if(Et.test(i))r.push(i)}return r}function Ct(e){let t=N(e),r=ge(e);if(t!==void 0)r.push(...ge(t));return[...new Set(r)].map((i)=>({url:i,mime_type:v(i)}))}function kt(e,t){if(!e||/^(javascript|about|data):/i.test(e))return;try{return d(t,e)}catch{return}}function Lt(e,t){let r=[];for(let n of B.parse(e).querySelectorAll("iframe")){let i=n.getAttribute("src")||n.getAttribute("data-src")||"",o=kt(i,t);if(o)r.push(o)}return r}function Ot(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Tt(e,t){let r=e[t],n=r==="{"?"}":"]",i=0,o=!1;for(let s=t;s<e.length;s++){let a=e[s];if(o){if(a==="\\")s+=1;else if(a==='"')o=!1;continue}if(a==='"')o=!0;else if(a===r)i+=1;else if(a===n)i-=1;if(i===0)return e.slice(t,s+1)}return}function he(e){if(e===void 0)return;try{return JSON.parse(e)}catch{return}}function It(e,t){let r=B.parse(e).querySelector(`script[id="${t}"]`);if(!r)return;return he(r.textContent)}function Mt(e,t){let r=It(e,t);if(r!==void 0)return r;let i=new RegExp(`${Ot(t)}["']?\\s*[:=]\\s*([\\[{])`).exec(e);if(!i)return;let o=i.index+i[0].length-1;return he(Tt(e,o))}function P(e){let t=e.replace(/\s+/g,"").replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;return Buffer.from(t+"=".repeat(r),"base64").toString("utf-8")}var j={mediaUrls:Ct,unpack:N,iframes:Lt,scriptJson:Mt,base64:P,mimeType:v};var be=require("node-html-parser");var Ut=15000,Ht=2,$t=250,Dt=["cf-chl-","_cf_chl_opt","challenge-platform","cf-browser-verification","challenges.cloudflare.com","attention required! | cloudflare"];class C{rawResponse;bodyText;constructor(e,t){this.rawResponse=e;this.bodyText=t}get status(){return this.rawResponse.status}get url(){return this.rawResponse.url}async text(){if(this.bodyText===void 0)this.bodyText=await this.rawResponse.text();return this.bodyText}async json(){return JSON.parse(await this.text())}async html(){return be.parse(await this.text())}response(){return this.rawResponse}}function Nt(e){if(!e||e.length===0)return"en-US,en;q=0.9";let r=e[0];if(r==="en")return"en-US,en;q=0.9";let n=r.split("-")[0];if(r===n)return`${r}-${r.toUpperCase()},${r};q=0.9,en;q=0.8`;return`${r},${n};q=0.9,en;q=0.8`}function ye(e,t,r){if(e!==403&&e!==503)return!1;if(t.get("cf-mitigated")==="challenge")return!0;let n=r.toLowerCase();if(n.includes("just a moment")&&n.includes("cloudflare"))return!0;return Dt.some((i)=>n.includes(i))}function F(e,t){let r=`HTTP ${t} fetching ${e}`;if(t===429)return new D(r,t);if(t>=500)return new u("source_offline",r,t);return new w(r,t)}function Bt(e){return new Promise((t)=>setTimeout(t,e))}function jt(e){return new URLSearchParams(e).toString()}function xe(e){return new Se(e)}class Se{config;fetchImplementation;constructor(e){this.config=e;this.fetchImplementation=e.fetch??fetch}get(e,t={}){return this.send(this.prepare("GET",e,t))}post(e,t={}){let r=this.prepare("POST",e,t);return this.attachBody(r.init,t),this.send(r)}async finalUrl(e,t={}){let r=this.prepare("GET",e,t);try{return(await this.fetchImplementation(r.url,this.withTimeout(r))).url||r.url}catch{return r.url}}absolute(e){if(/^https?:\/\//i.test(e))return e;if(e.startsWith("//"))return"https:"+e;if(!this.config.baseUrl)throw Error(`cannot resolve "${e}": the plugin declares no base_url`);return d(this.config.baseUrl+"/",e)}prepare(e,t,r){let n={"User-Agent":U["User-Agent"],Accept:U.Accept,"Accept-Language":Nt(this.config.languages)};if(r.referer)n.Referer=r.referer;Object.assign(n,r.headers);let i=Ht;if(r.retries!==void 0)i=r.retries;let o={method:e,headers:n};if(r.follow_redirects===!1)o.redirect="manual";return{url:this.absolute(t),init:o,retries:i,timeoutMs:r.timeout_ms||Ut,allowErrorStatus:r.allow_error_status===!0}}withTimeout(e){return{...e.init,signal:AbortSignal.timeout(e.timeoutMs)}}attachBody(e,t){let r=e.headers;if(t.json!==void 0){r["Content-Type"]="application/json",e.body=JSON.stringify(t.json);return}if(typeof t.body==="string"){e.body=t.body;return}if(t.body)r["Content-Type"]="application/x-www-form-urlencoded",e.body=jt(t.body)}async send(e){let t=await this.fetchWithRetries(e),r=t.response.status;if(r>=200&&r<400)return new C(t.response,t.bodyText);let n=await this.readBody(t);if(ye(r,t.response.headers,n))return this.solveChallenge(e,t.response);if(e.allowErrorStatus)return new C(t.response,n);throw F(e.url,r)}async readBody(e){if(e.bodyText!==void 0)return e.bodyText;return e.response.text()}async solveChallenge(e,t){let r=`${e.url} is behind a Cloudflare challenge`;if(e.init.method!=="GET"||!se())throw new h(r,t.status);try{let n=await ae(e.url);return new C(t,n)}catch(n){let i=n instanceof Error?n.message:String(n);throw new h(`${r} and the solver failed: ${i}`,t.status)}}async fetchWithRetries(e){let t="";for(let r=0;r<=e.retries;r++){if(r>0)await Bt($t*r);try{let n=await this.fetchOnce(e);if(!this.shouldRetry(n)||r===e.retries)return n}catch(n){t=n instanceof Error?n.message:String(n)}}throw new u("source_offline",`${e.url} is unreachable: ${t}`)}shouldRetry(e){let t=e.response.status;if(t<500)return!1;return!ye(t,e.response.headers,e.bodyText||"")}async fetchOnce(e){let t=await this.fetchImplementation(e.url,this.withTimeout(e));if(t.status!==503)return{response:t};return{response:t,bodyText:await t.text()}}}var Ft=[404,410],qt=/not found|missing|deleted|removed|does not exist/i;function we(e){return Ft.includes(e)}async function f(e,t,r={}){try{return await t.http.get(e,r)}catch(n){if(n instanceof w&&n.status!==void 0&&we(n.status))throw new S(`${e} no longer exists (HTTP ${n.status})`,n.status);throw n}}function k(e,t,r){if(t.test(e))throw new S(`${r} says the file does not exist`)}function Gt(e){try{let t=JSON.parse(e);if(typeof t.error==="string")return t.error;return""}catch{return""}}function q(e,t){if(!we(e))return!1;return qt.test(Gt(t))}function Pe(e,t,r){if(q(t,r))throw new S(`${e} reports the video as missing (HTTP ${t})`,t);throw F(e,t)}function m(e){return e}function Kt(e,t){return e.domains.some((r)=>t===r||t.endsWith("."+r))}class E{fallback;hosters;constructor(e=[],t){this.fallback=t;this.hosters=[...e]}register(e){this.hosters.push(e)}find(e){let t=x(e);if(t==="")return;return this.hosters.find((r)=>Kt(r,t))}supports(e){return this.find(e)!==void 0}nameOf(e){let t=this.find(e);if(!t)return;return t.name}domains(){return this.hosters.flatMap((e)=>e.domains)}async retrieve(e,t){let r=this.find(e);if(r)return r.retrieve(e,t);let n=await t.http.finalUrl(e),i=this.find(n);if(i)return i.retrieve(n,t);if(!this.fallback)throw Error(`no hoster serves ${e}`);return this.fallback.retrieve(n,t)}}var _e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",Vt=10,Wt=/dsplayer\.hotkeys[^']+'([^']+)[\s\S]+?function\s*makePlay[\s\S]+?return[^?]+([^"]+)/,zt=/<title>\s*(Video|File) not found/i;function Zt(){let e="";for(let t=0;t<Vt;t++)e+=_e[Math.floor(Math.random()*_e.length)];return e}async function Jt(e,t){let r=await f(e,t,{referer:l(e)+"/"}),n=r.url||e,o=(await r.text()).match(/<iframe\s*src="([^"]+)/),s=n.replace("/d/","/e/");if(o)s=d(n,o[1]);let c=await(await f(s,t,{referer:n})).text();return k(c,zt,s),c}async function Yt(e,t){let r=e.replace("/e/","/d/"),i=(await Jt(r,t)).match(Wt);if(!i)throw new u("extraction_failed",`Dood: no player script on ${e}`);let o=l(r),a=(await(await t.http.get(d(o+"/",i[1]),{referer:o+"/"})).text()).trim(),c={Referer:o+"/"};if(a.includes("cloudflarestorage."))return{url:a,mime_type:"video/mp4",headers:c};return{url:a+Zt()+i[2]+Date.now(),mime_type:"video/mp4",headers:c}}var Re=m({name:"Doodstream",domains:["dood.watch","doodstream.com","dood.to","dood.so","dood.cx","dood.la","dood.ws","dood.sh","doodstream.co","dood.pm","dood.wf","dood.re","dood.yt","dooood.com","dood.stream","ds2play.com","doods.pro","ds2video.com","d0o0d.com","do0od.com","d0000d.com","d000d.com","dood.li","dood.work","dooodster.com","vidply.com","all3do.com","do7go.com","doodcdn.io","doply.net","vide0.net","vvide0.com","d-s.io","dsvplay.com","myvidplay.com","playmogo.com"],retrieve:Yt});var G;function g(e,t){let r=0,n=e,i=t;while(i>0){if(i&1)r^=n;if(n<<=1,n&256)n^=283;i>>=1}return r}function L(e,t){return(e<<t|e>>8-t)&255}function Xt(){let e=new Uint8Array(256),t=new Uint8Array(256);for(let r=1;r<256;r++)for(let n=1;n<256;n++)if(g(r,n)===1)t[r]=n;for(let r=0;r<256;r++){let n=t[r];e[r]=n^L(n,1)^L(n,2)^L(n,3)^L(n,4)^99}return e}function Qt(){if(!G)G={substitutionBox:Xt()};return G}function er(e,t){let r=e.length/4,n=r+6,i=new Uint8Array(16*(n+1));i.set(e);let o=1;for(let s=r;s<4*(n+1);s++){let a=i.slice((s-1)*4,s*4);if(s%r===0)a.set([t[a[1]]^o,t[a[2]],t[a[3]],t[a[0]]]),o=g(o,2);else if(r>6&&s%r===4)for(let c=0;c<4;c++)a[c]=t[a[c]];for(let c=0;c<4;c++)i[s*4+c]=i[(s-r)*4+c]^a[c]}return i}function K(e,t,r){for(let n=0;n<16;n++)e[n]^=t[r*16+n]}function ve(e,t){for(let r=0;r<16;r++)e[r]=t[e[r]]}function Ee(e){let t=e.slice();for(let r=0;r<4;r++)for(let n=0;n<4;n++)e[r*4+n]=t[(r+n)%4*4+n]}function tr(e){for(let t=0;t<4;t++){let[r,n,i,o]=e.slice(t*4,t*4+4);e[t*4]=g(r,2)^g(n,3)^i^o,e[t*4+1]=r^g(n,2)^g(i,3)^o,e[t*4+2]=r^n^g(i,2)^g(o,3),e[t*4+3]=g(r,3)^n^i^g(o,2)}}function V(e,t,r){let n=t.length/16-1,i=e.slice();K(i,t,0);for(let o=1;o<n;o++)ve(i,r),Ee(i),tr(i),K(i,t,o);return ve(i,r),Ee(i),K(i,t,n),i}function rr(e){for(let t=15;t>=12;t--)if(e[t]=e[t]+1&255,e[t]!==0)return}function Ae(e,t){let r=new Uint8Array(16),n=t.slice();for(let i=0;i<128;i++){if(e[i>>3]&128>>(i&7))for(let s=0;s<16;s++)r[s]^=n[s];let o=n[15]&1;for(let s=15;s>0;s--)n[s]=n[s]>>1|(n[s-1]&1)<<7;if(n[0]>>=1,o)n[0]^=225}return r}function nr(e,t){let r=new Uint8Array(16),n=new Uint8Array(16);new DataView(n.buffer).setUint32(12,t.length*8);for(let i=0;i<t.length;i+=16){let o=t.subarray(i,i+16);for(let s=0;s<o.length;s++)r[s]^=o[s];r=Ae(r,e)}for(let i=0;i<16;i++)r[i]^=n[i];return Ae(r,e)}function ir(e,t){let r=0;for(let n=0;n<16;n++)r|=e[n]^t[n];return r===0}function Ce(e,t,r){if(e.length!==16&&e.length!==24&&e.length!==32)throw Error("AES-GCM: invalid key length");if(t.length!==12)throw Error("AES-GCM: only 12 byte nonces are supported");if(r.length<16)throw Error("AES-GCM: data shorter than the tag");let{substitutionBox:n}=Qt(),i=er(e,n),o=r.subarray(0,r.length-16),s=r.subarray(r.length-16),a=new Uint8Array(16);a.set(t),a[15]=1;let c=V(a,i,n),M=V(new Uint8Array(16),i,n),_=nr(M,o);for(let p=0;p<16;p++)_[p]^=c[p];if(!ir(_,s))throw Error("AES-GCM: authentication failed");let re=new Uint8Array(o.length);for(let p=0;p<o.length;p+=16){rr(a);let dt=V(a,i,n),pt=Math.min(16,o.length-p);for(let R=0;R<pt;R++)re[p+R]=o[p+R]^dt[R]}return re}var or=2;function ke(e,t,r){return{url:e,mime_type:r.extract.mimeType(e,"application/x-mpegURL"),headers:{Referer:l(t.url)+"/"}}}function sr(e,t){let r=e.match(/data-hls-url="([^"]+)/);if(r)return r[1].replace(/&/g,"&");let n=t.extract.mediaUrls(e),i=n.find((o)=>o.mime_type==="application/x-mpegURL");if(i)return i.url;if(n.length>0)return n[0].url;return}async function ar(e,t,r,n){if(r===0)return f(e,n,{referer:t});return n.http.get(e,{referer:t})}async function Le(e,t,r,n){let i=await ar(e,t,r,n),o={url:i.url||e,html:await i.text()},s=sr(o.html,n);if(s)return ke(s,o,n);if(r>=or)return;let a=n.extract.iframes(o.html,o.url);if(a.length===0)return;return Le(a[0],o.url,r+1,n)}var cr=20;function O(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4;return Uint8Array.from(Buffer.from(t+"=".repeat(r),"base64"))}function ur(e){let t=parseInt(e.version,10);if(!(t>=1&&t<=cr))throw new u("extraction_failed",`Filemoon: unknown playback version ${e.version}`);let r=O(e.key_parts[t-1]),n=O(e.key_parts[31-t-1]),i=new Uint8Array(r.length+n.length);return i.set(r),i.set(n,r.length),i}function lr(e){let t=Ce(ur(e),O(e.iv),O(e.payload));return JSON.parse(Buffer.from(t).toString("utf8")).sources||[]}function mr(e){let t;for(let r of e)if(!t||(r.height||0)>(t.height||0))t=r;return t}function fr(e){let t=new URL(e).pathname.split("/").filter(Boolean);return t[t.length-1]||""}function dr(e){try{return JSON.parse(e)}catch{return{}}}async function pr(e,t){let r=fr(e);if(r==="")return;let n=l(e),i=await t.http.get(`${n}/api/videos/${r}`,{referer:`${n}/e/${r}`,allow_error_status:!0}),o=await i.text();if(q(i.status,o))throw new S(`Filemoon: ${e} reports the video as missing`,i.status);if(i.status>=400)return;let s=dr(o);if(!s.playback)return;let a=mr(lr(s.playback));if(!a)return;return ke(a.url,{url:n+"/",html:""},t)}async function gr(e,t){let r=await pr(e,t);if(r)return r;let n=await Le(e,l(e)+"/",0,t);if(!n)throw new u("extraction_failed",`Filemoon: no stream found on ${e}`);return n}var Oe=m({name:"Filemoon",domains:["filemoon.sx","filemoon.to","filemoon.in","filemoon.link","filemoon.nl","filemoon.org"],retrieve:gr});var Te=require("node-html-parser");var hr=["application/x-mpegURL","application/dash+xml","video/mp4","video/webm"];function yr(e){for(let t of hr){let r=e.find((n)=>n.mime_type===t);if(r)return r}return}function br(e,t){let r=Te.parse(e);for(let n of r.querySelectorAll("video[src], source[src]")){let i=n.getAttribute("src")||"";if(i.startsWith("http")||i.startsWith("//")){let o=t.http.absolute(i);return{url:o,mime_type:t.extract.mimeType(o)}}}return}function Ie(e,t){let r=br(e,t);if(r)return r;return yr(t.extract.mediaUrls(e))}async function xr(e,t,r){for(let n of r.extract.iframes(e,t))try{let i=await r.http.get(n,{referer:t}),o=Ie(await i.text(),r);if(o)return o}catch{r.log(`generic: skipping unreachable frame ${n}`)}return}var Me=m({name:"Generic",domains:[],async retrieve(e,t){let n=await(await f(e,t)).text(),i=Ie(n,t)||await xr(n,e,t);if(!i)throw new u("extraction_failed",`no stream URL found at ${e}`);return{url:i.url,mime_type:i.mime_type}}});var Sr=/ById\('.+?=\s*(["']\/\/[^;<]+)/g;function wr(e){let t="";for(let r of e.replace(/'/g,'"').split("+")){let n=r.match(/"([^"]*)/);if(!n)continue;let i=0;for(let o of r.matchAll(/substring\((\d+)/g))i+=parseInt(o[1],10);t+=n[1].slice(i)}return t}function Pr(e){let t=Array.from(e.matchAll(Sr));if(t.length===0)return;return t[t.length-1][1]}async function _r(e,t){let r=l(e),n=e.replace("/v/","/e/"),i=await f(n,t,{referer:r+"/"}),o=Pr(await i.text());if(!o)throw new u("extraction_failed",`Streamtape: no video link on ${e}`);let s=d(n,wr(o)+"&stream=1"),a={Referer:r+"/"};return{url:(await t.http.get(s,{headers:a,follow_redirects:!1})).response().headers.get("location")||s,mime_type:"video/mp4",headers:a}}var Ue=m({name:"Streamtape",domains:["streamtape.com","strtape.cloud","streamtape.net","streamta.pe","streamtape.site","strcloud.link","strcloud.club","strtpe.link","streamtape.cc","scloud.online","stape.fun","streamadblockplus.com","shavetape.cash","streamtape.to","streamta.site","streamadblocker.xyz","tapewithadblock.org","adblocktape.wiki","antiadtape.com","streamtape.xyz","tapeblocker.com","streamnoads.com","tapeadvertisement.com","tapeadsenjoyer.com","watchadsontape.com","tpead.net","advertape.net","strtape.site","strtapeadblock.me","gettapeads.com","streamtapeadblock.art","streamtapeadblockuser.xyz","advtpe.com"],retrieve:_r});function Rr(e){let t=new URL(e).pathname.split("/").filter(Boolean),r=t[t.length-1];if(!r)throw new u("extraction_failed",`Vidara: no file code in ${e}`);return r}async function vr(e,t){let r=Rr(e),n=l(e),i=`${n}/e/${r}`,o=await t.http.post(`${n}/api/stream`,{json:{filecode:r,device:"web"},headers:{Referer:i,Origin:n},allow_error_status:!0}),s=await o.text();if(o.status>=400)Pe(o.url||`${n}/api/stream`,o.status,s);let a=JSON.parse(s);if(!a.streaming_url)throw new u("extraction_failed",`Vidara: no streaming_url for ${e}`);return{url:a.streaming_url,mime_type:t.extract.mimeType(a.streaming_url,"application/x-mpegURL"),headers:{Referer:i,Origin:n}}}var He=m({name:"Vidara",domains:["vidara.to","vidara.so","vidaraa.cc","odysseusa.cc"],retrieve:vr});var Er="https://www.google.com/recaptcha/api.js",$e="https://www.google.com/recaptcha/api2/anchor",Ar="https://www.google.com/recaptcha/api2/reload";function Cr(e){let t=e.match(/(?:src="https:\/\/www\.google\.com\/recaptcha\/api\.js\?.*?render|data-sitekey)="?([^"&]+)/);if(!t)return;return t[1]}function De(e){return Buffer.from(`${e}:443`).toString("base64").replace(/=+$/,"")}async function kr(e,t,r){let i=(await(await t.http.get(`${Er}?render=${e}`,{referer:r})).text()).match(/releases\/([^/]+)/);if(!i)return;return i[1]}async function Lr(e,t,r,n,i){let o=new URLSearchParams({ar:"1",k:e,co:De(t),hl:"en",v:r,size:"invisible",cb:"123456789"}),a=(await(await n.http.get(`${$e}?${o.toString()}`,{referer:i})).text()).match(/recaptcha-token.+?="([^"]+)/);if(!a)return;return a[1]}async function Ne(e,t,r){let n=Cr(e);if(!n)return"";let i=l(t),o=await kr(n,r,t);if(!o)return"";let s=await Lr(n,i,o,r,t);if(!s)return"";let c=(await(await r.http.post(`${Ar}?k=${n}`,{body:{v:o,reason:"q",k:n,c:s,sa:"",co:De(i)},referer:$e})).text()).match(/rresp","([^"]+)/);if(!c)return"";return c[1]}var Or=/class="container error"[\s\S]{0,400}?Video not found/i;function Tr(e){let t=new URL(e).pathname.split("/").filter(Boolean).pop();return`${l(e)}/e/${t}`}async function Ir(e,t){let r=Tr(e),n=l(r),i=r.split("/").pop(),s=await(await f(r,t,{referer:r})).text();k(s,Or,r);let a=s.match(/name="token"\s*content="([^"]+)/),c=s.match(/<video[\s\S]+?data-base="([^"]+)/);if(!a||!c)throw new u("extraction_failed",`Vinovo: no player data on ${r}`);let _=await(await t.http.post(`${n}/api/file/url/${i}`,{body:{token:a[1],recaptcha:await Ne(s,r,t)},headers:{Origin:n,Referer:n+"/","X-Requested-With":"XMLHttpRequest"}})).json();if(_.status!=="ok"||!_.token)throw new u("extraction_failed",`Vinovo: file url refused for ${r}`);return{url:`${c[1]}/stream/${_.token}`,mime_type:"video/mp4",headers:{Referer:n+"/"}}}var Be=m({name:"Vinovo",domains:["vinovo.to","vinovo.si"],retrieve:Ir});var T=["@$","^^","~@","%?","*~","!!","#&"];function je(e){return e.replace(/[A-Za-z]/g,(t)=>{let r=t<="Z"?65:97;return String.fromCharCode((t.charCodeAt(0)-r+13)%26+r)})}function Fe(e,t){return Array.from(e,(r)=>String.fromCharCode(r.charCodeAt(0)-t)).join("")}function W(e){return Array.from(e).reverse().join("")}function Mr(e,t){return t.reduce((r,n)=>r.split(n).join(""),e)}function Ur(e,t){let r=Mr(je(e),t);return P(W(Fe(P(r),3)))}function Hr(e){let t=[["direct_access_url",!0],["mp4",!0],["source",!1],["hls",!1],["file",!1]];for(let[r,n]of t){let i=e[r];if(typeof i!=="string"||i==="")continue;if(n)return{url:i,mime_type:"video/mp4"};return{url:i,mime_type:v(i,"application/x-mpegURL")}}return}function $r(e){let t=e.match(/https?:\/\/[^\s"']+\.m3u8[^\s"']*/i);if(t)return{url:t[0],mime_type:"application/x-mpegURL"};let r=e.match(/https?:\/\/[^\s"']+\.mp4[^\s"']*/i);if(r)return{url:r[0],mime_type:"video/mp4"};return}function z(e){try{return Hr(JSON.parse(e))}catch{return $r(e)}}function Z(e){try{return e()}catch{return}}function qe(e){let t=e.match(/MKGMa="([^"]+)"/);if(!t)return;return Z(()=>{let r=je(t[1]).replace(/_/g,"");return z(P(W(Fe(P(r),3))))})}function Ge(e){let t=e.match(/a168c\s*=\s*'([^']+)'/);if(!t)return;return Z(()=>z(W(P(t[1].replace(/\\/g,"")))))}function Ke(e,t){let r=e.matchAll(/<script[^>]+type=["']application\/json["'][^>]*>([\s\S]*?)<\/script>/gi);for(let n of r){let i=Z(()=>{let o=JSON.parse(n[1].trim());if(!Array.isArray(o)||typeof o[0]!=="string")return;return z(Ur(o[0],t))});if(i)return i}return}function Ve(e){let t=e.match(/\[(?:'\W{2}'[,\]]){1,9}/);if(!t)return;return t[0].slice(2,-2).split("','")}var Dr=[/"hls"\s*:\s*"(https?:[^"]+\.m3u8[^"]*)"/i,/'hls'\s*:\s*'(https?:[^']+\.m3u8[^']*)'/i,/"file"\s*:\s*"(https?:[^"]+\.m3u8[^"]*)"/i,/src\s*:\s*["'](https?:[^"']+\.m3u8[^"']*)["']/i,/"file"\s*:\s*"(https?:[^"]+\.mp4[^"]*)"/i,/'file'\s*:\s*'(https?:[^']+\.mp4[^']*)'/i,/mp4["']:\s*["']([^"']+)["']/i];function We(e){for(let t of Dr){let r=t.exec(e);if(r)return{url:r[1],mime_type:v(r[1])}}return}var ze=["voe.sx","voe-unblock.com","voe-unblock.net","voeunblock.com","un-block-voe.net","voeunbl0ck.com","voeunblck.com","voeunblk.com","voe-un-block.com","jonathansociallike.com","voeun-block.net","v-o-e-unblock.com","edwardarriveoften.com","nathanfromsubject.com","audaciousdefaulthouse.com","launchreliantcleaverriver.com","kennethofficialitem.com","reputationsheriffkennethsand.com","fittingcentermondaysunday.com","lukecomparetwo.com","housecardsummerbutton.com","fraudclatterflyingcar.com","wolfdyslectic.com","bigclatterhomesguideservice.com","uptodatefinishconferenceroom.com","jayservicestuff.com","realfinanceblogcenter.com","tinycat-voe-fashion.com","35volitantplimsoles5.com","20demidistance9elongations.com","telyn610zoanthropy.com","toxitabellaeatrebates306.com","greaseball6eventual20.com","745mingiestblissfully.com","19turanosephantasia.com","30sensualizeexpression.com","321naturelikefurfuroid.com","449unceremoniousnasoseptal.com","guidon40hyporadius9.com","cyamidpulverulence530.com","boonlessbestselling244.com","antecoxalbobbing1010.com","matriculant401merited.com","scatch176duplicities.com","availedsmallest.com","counterclockwisejacky.com","simpulumlamerop.com","paulkitchendark.com","metagnathtuggers.com","gamoneinterrupted.com","chromotypic.com","crownmakermacaronicism.com","generatesnitrosate.com","yodelswartlike.com","figeterpiazine.com","strawberriesporail.com","valeronevijao.com","timberwoodanotia.com","apinchcaseation.com","nectareousoverelate.com","nonesnanking.com","kathleenmemberhistory.com","stevenimaginelittle.com","jamiesamewalk.com","bradleyviewdoctor.com","sandrataxeight.com","graceaddresscommunity.com","shannonpersonalcost.com","cindyeyefinal.com","michaelapplysome.com","sethniceletter.com","brucevotewithin.com","rebeccaneverbase.com","loriwithinfamily.com","roberteachfinal.com","erikcoldperson.com","jasminetesttry.com","heatherdiscussionwhen.com","robertplacespace.com","alleneconomicmatter.com","josephseveralconcern.com","donaldlineelse.com","lisatrialidea.com","toddpartneranimal.com","jamessoundcost.com","brittneystandardwestern.com","sandratableother.com","robertordercharacter.com","maxfinishseveral.com","chuckle-tube.com","kristiesoundsimply.com","adrianmissionminute.com","richardsignfish.com","jennifercertaindevelopment.com","diananatureforeign.com","goofy-banana.com","mariatheserepublican.com","johnalwayssame.com","kellywhatcould.com","jilliandescribecompany.com","lukesitturn.com","mikaylaarealike.com","christopheruntilpoint.com","walterprettytheir.com","crystaltreatmenteast.com","lauradaydo.com","smoki.cc","lancewhosedifficult.com","ogladaj.me","dianaavoidthey.com","jefferycontrolmodel.com","marissasharecareer.com","charlestoughrace.com","ianrequireadult.com","timmaybealready.com","jessicayeahcatch.com","johnbeyondnation.com","jeanprofessorcentral.com","juliewomanwish.com","garylargeavailable.com","jennifereconomicgive.com","pamelachangemission.com","ellenpoliticalfollow.com","caseyimpactstation.com","matthewhotelscience.com","jessicachoosemake.com","stevenfamilyedge.com","tracylocalschool.com","eugenemakedraw.com","johnfullwonder.com","katherineschoolphone.com","jamesbornmain.com","jeremyparticipantanything.com","teresapoliticallearn.com","megankiddifference.com",...Array.from({length:10},(e,t)=>`voeunblock${t+1}.com`)];var Nr=3,Br=3000;function jr(e){if(e.length>Br)return;if(!/permanentToken|const currentUrl/.test(e))return;let t=e.match(/}\s*else\s*\{[^}]*window\.location\.href\s*=\s*['"]([^'"]+)['"]/);if(t)return t[1];let r=e.match(/window\.location\.href\s*=\s*['"]([^'"]+)['"]/);if(r)return r[1];return}async function Fr(e,t){let r=e;for(let n=0;n<Nr;n++){let o=await(await f(r,t)).text(),s=jr(o);if(!s)return{url:r,html:o};r=d(r,s)}throw new u("extraction_failed",`VOE: too many redirect pages from ${e}`)}async function qr(e,t,r){let n=e.match(/json">\["[^"]+"\]<\/script>\s*<script\s*src="([^"]+)"/);if(!n)return T;try{let i=await r.http.get(d(t,n[1]),{referer:t});return Ve(await i.text())||T}catch{return T}}async function Gr(e,t){let r=await qr(e.html,e.url,t);return Ke(e.html,r)||qe(e.html)||Ge(e.html)||We(e.html)}var Kr=/<script[^>]+type=["']application\/json["']|\b(?:mkgma|a168c)\b|["']hls["']\s*:|\.m3u8/i;async function Vr(e,t){let r=await Fr(e,t),n=await Gr(r,t);if(n)return{...n,headers:{Referer:l(r.url)+"/"}};if(!Kr.test(r.html))throw new h(`VOE: ${r.url} served "${Wr(r.html)}" instead of the player`);throw new u("extraction_failed",`VOE: no stream found on ${r.url}`)}function Wr(e){let t=e.match(/<title[^>]*>([^<]*)<\/title>/i);if(!t)return"a page without a title";return t[1].trim()}var Ze=m({name:"VOE",domains:ze,retrieve:Vr});var J=new E([Ze,He,Re,Oe,Ue,Be],Me);var zr={ä:"ae",ö:"oe",ü:"ue",ß:"ss",æ:"ae",œ:"oe",ø:"o",đ:"d",ł:"l",ð:"d",þ:"th",ı:"i"},Zr=/[äöüßæœøđłðþı]/g,Jr=/[\u0300-\u036f]/g,Yr=/['\u2018\u2019`\u00b4]/g,Xr=/[\s\u00a0-\u00bf\u2000-\u206f!-\/:-@\[-`{-~]+/g,Qr=/\s*\(\d{4}\)\s*$/,en=["and","und"],tn=["the","der","die","das"];function I(e){return e.toLowerCase().replace(Zr,(o)=>zr[o]).normalize("NFD").replace(Jr,"").replace(Yr,"").replace(Xr," ").trim()}function Ye(e){let r=I(e.replace(Qr,"")).split(" ").filter((n)=>!en.includes(n));if(r.length>1&&tn.includes(r[0]))r.shift();return r.join(" ")}function Xe(e){if(e.object==="movie")return e;return e.series}function rn(e){let t=Xe(e),r=[t.title,t.original_title],n=[];for(let i of r)if(i)n.push(Ye(i));return n}function Qe(e,t){let r=Ye(e);if(r==="")return!1;return rn(t).includes(r)}function nn(e){if(typeof e==="string")return e;let t=e.title;if(typeof t==="string")return t;return""}function Je(e,t){if(e===void 0||t===void 0)return 2;let r=Math.abs(e-t);if(r===0)return 0;if(r===1)return 1;return 3}function on(e,t,r={}){let n=r.title||nn,i=e.filter((c)=>Qe(n(c),t));if(i.length===0)return;if(!r.year)return i[0];let o=Xe(t).year,s=r.year,a=i[0];for(let c of i)if(Je(s(c),o)<Je(s(a),o))a=c;return a}var Y={normalize:I,titles:Qe,best:on};var sn="OTTER_BASE_URL";function an(e,t){let n=(t[sn]||"").trim()||e.base_url;if(!n)return;return n.replace(/\/+$/,"")}function cn(e,t){let r={};for(let n of e.settings||[]){let i=t[n.key]||n.default;if(i!==void 0)r[n.key]=i}return r}function un(e){let t=e[ie]||"";if(t==="")return;return{username:e[ne]||"",session:t}}function ln(e){if(e===void 0)return"";try{return" "+JSON.stringify(e)}catch{return" "+String(e)}}function et(e,t={}){let r=t.env||process.env,n=an(e,r),i=e.languages||[];return{plugin:{id:e.id,name:e.name,version:e.version,base_url:n,languages:i},http:xe({baseUrl:n,languages:i,fetch:t.fetch}),match:Y,extract:j,hosters:J,browser:t.browser||ue(),settings:cn(e,r),account:un(r),log(o,s){console.error(`[${e.id}] ${o}${ln(s)}`)},list(o){return{object:"list",data:o}}}}async function tt(e){let t=Date.now();return{...await e(),load_time_ms:Date.now()-t}}function rt(e){return!("meta"in e)}function mn(e){let t=[];if(e.streams)t.push("streams");if(e.sources)t.push("resolve");if(e.subtitles)t.push("subtitles");if(e.account)t.push("login");return t}function fn(e){if(!e.account)return;return{signup_url:e.account.signup_url}}function dn(e){if(!e.sources)return;let t=[...e.sources.domains];if(e.sources.fallback)t.push("*");return t}function pn(e){return{name:e.id,display_name:e.name,description:e.description,icon:e.icon,version:e.version,capabilities:mn(e),domains:dn(e),settings:e.settings,requires_solver:e.requires_solver,base_url:e.base_url,languages:e.languages,media:e.media,account:fn(e)}}function X(e){if(e.tmdb_id)return String(e.tmdb_id);if(e.imdb_id)return e.imdb_id;return I(e.title).replace(/ /g,"-")}function gn(e){return{object:"movie",id:`movie:${X(e)}`,title:e.title,original_title:e.original_title,year:e.year,tmdb_id:e.tmdb_id,imdb_id:e.imdb_id}}function hn(e){return{object:"series",id:`series:${X(e)}`,title:e.title,original_title:e.original_title,year:e.year,tmdb_id:e.tmdb_id,imdb_id:e.imdb_id}}function yn(e){let t=e.season_number||0,r=e.episode_number||0;return{object:"episode",id:`episode:${X(e)}:${t}:${r}`,series:hn(e),season_number:t,episode_number:r}}function nt(e){let t=gn(e);if(e.media_type==="episode")t=yn(e);return{media:t}}function bn(e){return{media:nt(e).media,languages:e.languages||[]}}function xn(e,t){if(e.label)return e.label;let r=t.hosters.nameOf(e.url);if(r)return r;return x(e.url)||"Stream"}function Sn(e,t){return{...e,object:"stream",label:xn(e,t),language:wn(e,t)}}function wn(e,t){if(e.language)return e.language;if(t.plugin.languages.length!==1)return;return t.plugin.languages[0]}function Pn(e){return{label:e.label,url:e.url,quality:e.quality,language:e.language,format:e.format,size_bytes:e.size_bytes}}function _n(e){return{...e,object:"subtitle",format:e.format||"srt"}}function Rn(e){return{url:e.url,language:e.language,format:e.format,label:e.label,release:e.release,hearing_impaired:e.hearing_impaired,headers:e.headers}}function vn(e){return{...e,object:"source"}}function En(e){return{url:e.url,mime_type:e.mime_type,headers:e.headers,quality:e.quality}}class it{definition;ctx;constructor(e,t={}){this.definition=e;this.ctx=et(e,t)}async listStreams(e){let t=this.definition.streams;if(!t)throw Error("streams not implemented");let r=await t.list(e,this.ctx);return this.ctx.list(r.data.map((n)=>Sn(n,this.ctx)))}async listSubtitles(e){let t=this.definition.subtitles;if(!t)throw Error("subtitles not implemented");let r=await t.list(e,this.ctx);return this.ctx.list(r.data.map(_n))}async retrieveSource(e){let t=this.definition.sources;if(!t)throw Error("resolve not implemented");return vn(await t.retrieve(e,this.ctx))}async login(e){let t=this.definition.account;if(!t)throw Error("login not implemented");return t.login(e,this.ctx)}}function ot(e,t={}){let r=new it(e,t),n={meta:pn(e)};if(e.streams)n.streams=async(i)=>({downloads:(await r.listStreams(nt(i))).data.map(Pn)});if(e.subtitles)n.subtitles=async(i)=>({subtitles:(await r.listSubtitles(bn(i))).data.map(Rn)});if(e.sources)n.resolve=(i)=>tt(async()=>En(await r.retrieveSource({url:i})));if(e.account)n.login=(i)=>r.login(i);return n}function A(e){Q.writeSync(1,JSON.stringify({result:e})+`
|
|
3
|
+
`),process.exit(0)}function y(e,t){Q.writeSync(1,JSON.stringify({error:e,code:t})+`
|
|
4
|
+
`),process.exit(0)}async function An(){let e=await Bun.stdin.text();try{return JSON.parse(e)}catch{y("invalid JSON on stdin")}}async function Cn(e,t){if(t.capability==="meta")A(e.meta);if(t.capability==="streams"){if(!e.streams)y("streams not implemented");A(await e.streams(t.args))}if(t.capability==="subtitles"){if(!e.subtitles)y("subtitles not implemented");A(await e.subtitles(t.args))}if(t.capability==="resolve"){if(!e.resolve)y("resolve not implemented");let r=t.args?.url;if(!r)y("args.url required for resolve");A(await e.resolve(String(r)))}if(t.capability==="login"){if(!e.login)y("login not implemented");A(await e.login(t.args))}y(`unsupported capability: ${t.capability}`)}function kn(e){if(e instanceof b)y(e.message,e.code);y(e instanceof Error?e.message:String(e))}async function ee(e){let t=await An();try{let r=rt(e)?ot(e):e;return await Cn(r,t)}catch(r){kn(r)}}var Ln=[["en","eng"],["de","ger","deu"],["fr","fre","fra"],["es","spa"],["it","ita"],["pt","por","pob","pb"],["nl","dut","nld"],["pl","pol"],["ru","rus"],["tr","tur"],["sv","swe"],["da","dan"],["no","nor","nob"],["fi","fin"],["cs","cze","ces"],["sk","slo","slk"],["hu","hun"],["ro","rum","ron"],["bg","bul"],["el","ell","gre"],["he","heb"],["ar","ara"],["zh","chi","zho","zht","zhc"],["ja","jpn"],["ko","kor"],["hi","hin"],["th","tha"],["vi","vie"],["id","ind"],["uk","ukr"],["hr","hrv"],["sr","scc","srp"],["sl","slv"],["lt","lit"],["lv","lav"],["et","est"],["fa","per","fas"],["ca","cat"],["eu","baq","eus"],["gl","glg"],["is","ice","isl"],["ms","may","msa"],["bn","ben"],["ta","tam"],["sq","alb","sqi"],["mk","mac","mkd"],["bs","bos"],["hy","arm","hye"],["ka","geo","kat"]],On=new Map,Tn=new Map;for(let[e,t,...r]of Ln){Tn.set(e,t);for(let n of[t,...r])On.set(n,e)}var te=["s.to","serienstream.to"];function st(e,t){let r=x(e);if(te.includes(r))return!0;let n=x(t.plugin.base_url||"");return n!==""&&r===n}var In={"1":"de","2":"en","3":"de-sub"};function at(e){let t=[];for(let r of e.querySelectorAll("li.series-item > a")){let n=r.getAttribute("href")||"";if(!n.startsWith("/serie/"))continue;t.push({title:r.text.trim(),path:n})}return t}function ct(e,t,r){return`${e}/staffel-${t}/episode-${r}`}function ut(e,t){let r=In[e];if(r)return r;return t.toLowerCase()}async function lt({url:e},t){let r=await t.browser.open(e);return t.log("play link led to",r),t.hosters.retrieve(r,t)}async function mt({media:e},t){if(e.object!=="episode")return t.list([]);let r=await Mn(e,t);if(!r)return t.list([]);let n=await Un(ct(r.path,e.season_number,e.episode_number),t);if(!n)return t.list([]);let i=await Promise.all(n.querySelectorAll("button.link-box[data-play-url]").map((o)=>$n(o,t)));return t.list(i.filter((o)=>o!==null))}async function Mn(e,t){let r=await(await t.http.get("/serien")).html();return t.match.best(at(r),e)}async function Un(e,t){try{return await(await t.http.get(e)).html()}catch(r){if(r instanceof w&&r.status===404)return;throw r}}async function Hn(e,t){let r=await t.http.finalUrl(e);if(st(r,t))return e;return r}async function $n(e,t){let r=e.getAttribute("data-play-url")||"",n=e.getAttribute("data-provider-name")||"";if(!r||!n)return null;let i=e.getAttribute("data-language-label")||"",o=e.getAttribute("data-language-id")||"";return{url:await Hn(t.http.absolute(r),t),label:`${n} — ${i}`,language:ut(o,i)}}var ft=H({id:"s-to",name:"S.to",version:"0.5.0",description:"German streaming aggregator: finds playable streams for episodes on serienstream.to (formerly s.to)",icon:"https://serienstream.to/favicon.ico",base_url:"https://serienstream.to",languages:["de"],media:["episode"],streams:{list:mt},sources:{domains:te,retrieve:lt}});ee(ft);
|
package/README.md
DELETED