.. | ||
.dockerignore | ||
Dockerfile | ||
index.ts | ||
kodik.ts | ||
libria.ts | ||
package-lock.json | ||
package.json | ||
README.md | ||
README.RU.md | ||
shared.ts | ||
sibnet.ts |
AniX - Player Parsers
This sub-project allows obtaining direct video file links from sources Sibnet, Kodik, Libria
It can be used both for the main AniX project and as a standalone service.
In the main project, the parsers are used to operate the internal player. If this function is not important to you, you may choose not to deploy this sub-service.
License: MIT
Usage
In the web browser address bar, enter:
<http|https>://<ip|domain><:port>/?url=<VIDEO_URL>&player=<PLAYER_SOURCE>
where:
- http|https - the scheme used to connect to the service
- ip|domain - IP address or domain where the service is hosted
- :port - service port, optional
- VIDEO_URL - the link to the video from the source
- PLAYER_SOURCE - the source, one of: kodik, sibnet, libria
Response:
- 500|400: an error occurred, see the
message
field in the response body for details - 200: request was successful
Deployment
Due to the nature of the sources, it is recommended to use a virtual server in Russia or the Netherlands, as they may be inaccessible from other countries.
Because of this specificity, the parsers cannot be deployed on edge services like CloudFlare Workers or Deno, only on a dedicated server.
Using docker
Requirements:
Pre-built
- Run the command:
docker run -d --name anix-player -p 7000:7000 ghcr.io/radiquum/anix-player-parser:29-05-2025
Manual build
Additional Requirements:
- Clone the repository
git clone https://github.com/Radiquum/AniX
- Navigate to the repository directory
cd AniX
- Navigate to the parsers directory
cd player-parsers
- Run the command
docker build -t anix-player-parser .
- Once finished, run the command:
docker run -d --restart always --name anix-player -p 7000:7000 anix-player-parser
Legend
- -d - run the container in background
- --restart always - always restart after server reboot
- --name - container name
- -p - container port accessible externally. PORT:7000
After deployment
The service will be available at: http://<YOUR IP><:YOUR PORT>/
Note
To use your own domain and support the https protocol, you can use traefik or another reverse-proxy with an SSL certificate.
Useful links:
Using pm2
Requirements:
Instructions:
- Clone the repository
git clone https://github.com/Radiquum/AniX
- Navigate to the repository directory
cd AniX
- Navigate to the parsers directory
cd player-parsers
- Run the command
npm install
- Once finished, Run the command
pm2 start index.ts -n anix-player-parser
Legend
- -n - service name in pm2
After deployment
The service will be available at: http://<YOUR IP>:7000/
Note
To enable automatic application start, it is recommended to configure pm2 to start on boot with the command: pm2 startup
Useful links: