@docchi/cda-checking
Simple checking package, if cda video is deleted or available.
Kontakt
- GitHub: github.com/ankordii
- Website: https://docchi.pl/
- E-mail: pomoc@docchi.pl
Installation
Node.js required
npm install @docchi/cda-checking
How to use
Don't forget to add
"type": "module"
to package.json
How to use:
Examples of ID
- EMBED URL - https://ebd.cda.pl/620x395/115890987a
- VIDEO URL - https://www.cda.pl/video/115890987a
- JUST ID - 115890987a
Example:
import checkPlayer from "@docchi/cda-checking";
console.log(await
checkPlayer("https://www.cda.pl/video/115890987a")
)
If available
{
"status": 200,
"message": "Source exists"
}
Codes
-
500 - Something went wrong!
-
410 - Source removed by administrators.
-
200 - Source exists
-
206 - Page loaded, but couldn't verify if source exists
Support
IMPORTANT: Help me beeing efficient, please! I am developing in my free time for no money. Contribute to the project by posting complete, structured and helpful issues which I can reproduce quickly without asking for missing information.