Aijazmakerb / vidsrc-api

An api that scrapes vidsrc.to
39 stars 41 forks source link

Fix some stuff #2

Closed Zsl8 closed 7 months ago

Zsl8 commented 9 months ago

i was able to fix some problems in this project using burpsuite proxi but i'm still having a problem i'm getting 404 in the https://vidplay.online/mediainfo/ request if you could fix it or give me the request requirements i'll be gratefull

all i did chage the domain from vidplay.site to vidplay.online

Tommy0412 commented 9 months ago

Use this key extractor https://raw.githubusercontent.com/Ciarands/vidsrc-keys/main/keys.json and add some headers for example useragent too avoid detection

Zsl8 commented 9 months ago

Use this key extractor https://raw.githubusercontent.com/Ciarands/vidsrc-keys/main/keys.json and add some headers for example useragent too avoid detection

alredy using it but still getting 404 in the response

const response = await axios.get(`https://vidplay.online/mediainfo/${data}?${vidplayLink.split('?')[1]}&autostart=true`, {
        params: {
            v: Date.now().toString(),
        },
        headers: {
            "Referer": vidplayLink
        }
    });
Tommy0412 commented 9 months ago
axios.get

im using it on vps and onrender and it work fine, i need to restart it every day since it crash but it work most of times just fine, where you hosting it on vps, versel render? maybe they ban your ip adress so axios cant get it, add User-Agent header or use proxy.

Aijazmakerb commented 7 months ago

Thanks for raising the issue, i was inactive because of my busy schedule but now this project is working fine