Zebraslive / vidsrc-api

Home Page:https://api-movie-source.vercel.app/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vidsrc-api

Status Deployment

STATUS- WORKING - (UPDATED MAR/17/24)

  • Everything Works - Vidsrc.to NEW ISSUE fixed on last commit.So update it to make it work.
  • The filemoon has restrictions on vercel,so if you need filemoon,proxy it or run on a different platform.(It seems its not working...)

A simple web scrapper based on this resolver.

About

  • Deploying

    Project specifically made to run on vercel,but easy to deploy on other platforms.Just check the running fastapi on the specific platform.

  • Running it locally

    1.Fork and Clone the repo. 2.Create a virtial env if you want. 3.install the deps.[pip install -r requirements.txt] 4.run it using uvicorn.[uvicorn main:app --reload]

  • If you liked it :)

  • If any issues,drop an issue on github.

FEATURES

- async support - There will be an update soon for completely changing the code to async to increase speed.
- parallel execution
- very fast results
- subtitle support for enery sources.

NOTES

- Dont overload the deployment.
- This api is made for educational purpouse only. This is just a simple scrapper built arround `https://github.com/Ciarands` vidsrc downloader.This project was only made to prevent ads and redirects caused by the `iframe`s
- This api isnt a copy of the inspired project,but its a complete reqrite of code to make it work as an api and use async style to give vary fast results.
- Dont perform bulk request to the api and store the m3u8's returned,cuz they may not work after 24 hours or so.This api scrape websites that have `video on demand` feature so storing it is useless.

USAGE (GET)

  • base url: https://api-source-movie.vercel.app

  • endpoints:

    • /vidsrc/{db_id}
    • /vsrcme/{db_id}
    • /subs/?url={subtitle_url@opensubtitles.org}
  • parameters:

    • s - season (series only)
    • e - episodes (series only)
    • l - language(subtitle)

RESPONSE SCEMA

[UPDATE] Added a common response scheam for the endpoints,so every source is an element of an array.And the api retruns an array.

[
  {
    "name": "SOURCE_NAME",
    "data": {
      "file": "FILE.m3u8",
      "sub": [
        {
          "lang":"LANGUAGE",
          "file":"FILE.srt"
        }
        {
          "lang":"LANGUAGE",
          "file":"FILE.srt"
        }
      ]
    }
  }
  {
    "name": "SOURCE_NAME_2",
    "data": {
      "file": "FILE.m3u8",
      "sub": [
        {
          "lang":"LANGUAGE",
          "file":"FILE.srt"
        }
        {
          "lang":"LANGUAGE",
          "file":"FILE.srt"
        }
      ]
    }
  }
]

ERROR CODES

ERROR CODES
===========
1402 : filemoon error.[filemoon domain whitelisting][solution:retry]
1308 : multiembed captcha error.[solution:retry/do captcha]
1309 : vidsrcPro error.[decode error][solution:retry]
1310 : subtitle fetch error.[reload]

1404 : no sources found.
1401 : vidplay error.

1500 : not found error.
500  : internal error/fetch error

OTHER PROJECTS

About

https://api-movie-source.vercel.app/

License:GNU General Public License v3.0


Languages

Language:Python 100.0%