0

Problem: I'm trying to deploy my Node.js Stremio addon to Vercel, which is supposed to return some M3U8 stream links for movies.

Issue:

When I run the addon locally, I send a request to the embed video player URL, and I can successfully get the working M3U8 link from the unpacked JS code. However, when I deploy it to Vercel, the same process doesn’t work. I do get the M3U8 link, but it returns a 403 Forbidden error from the Nginx server. Question: Is there any way to bypass this issue and make it work in the deployed version?

I'm using axios to make a request and unpacker to retrive m3u8 link

const streamProviderUrl = "https://ryderjet.com/embed/7s09e8rezgsy";
const { data: streamProviderData } = await axios.get(streamProviderUrl);
const unpacked = unpacker.unpack(streamProviderData);
const streamUrlMatch = unpacked.match(/file:"([^"]+)"/i);
const streamUrl = streamUrlMatch ? streamUrlMatch[1] : null;

Example of working one:

https://VwhUVRleQt9Z.milocdn.com/hls2/01/02281/0onw5upfr6jv_h/master.m3u8?t=a7HrJxHedjJc7E8u3TN1TVT-OoilncEebNnzxPlGh08&s=1741445418&e=129600&f=11408281&srv=9CCbT1vHqSzs&i=0.4&sp=500&p1=9CCbT1vHqSzs&p2=9CCbT1vHqSzs&asn=2860

Example of non working one:

https://TzOYNoerzJ90.milocdn.com/hls2/01/02124/958yscqo2sj2_h/master.m3u8?t=2FaAkAJuQUPLyspVuPVS204ygIKX4CMd8Rl1uyKDIRE&s=1741448120&e=129600&f=10621413&srv=aMrD2gI94v8g&i=0.4&sp=500&p1=aMrD2gI94v8g&p2=aMrD2gI94v8g&asn=14618

NGINX FORBIDDEN

Thanks in advance! :)

6
  • None of the links are working. Looks like the video is either geo-restricted or it is an expiring URL. Commented Mar 13 at 5:17
  • Its expired now, the link I get them from is this: ryderjet.com/embed/7s09e8rezgsy Commented Mar 13 at 19:07
  • Sorry was busy with few other things. If you can share an active link, I can help debug/fix the issue Commented Apr 5 at 10:39
  • I appreciate the help @Vishvesh :) the source link is this: ryderjet.com/embed/7s09e8rezgsy from there if u search for "p,a,c,k,e,d" u will find some packed js code that contains m3u link, use this unpacker: matthewfl.com/unPacker.html the problem is when u do all that locally, it works like a charm but when deployed on a server, boom 403 :( Commented Apr 7 at 17:59
  • @Vishvesh is there rly no way around this? I would love to get this to work so my kids would watch some old time dubbed movies Commented Apr 23 at 13:29

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.