Skip to content

This module provides hoster resolution helper functions which are used in the movian plugins.

License

Notifications You must be signed in to change notification settings

BuXXe/hoster-resolution-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hoster-resolution-library

This module provides hoster resolution helper functions which are used in the movian plugins. The main script (hrl.js) serves as a helper script which provides functions to check if a resolver exists and select the correct resolver for a given host and resolve the link. The resolvers are small scripts in the resolver directory which provide a single function to resolve site links. The file names have to be lowercase names of the hosters.

Usage

// Import the main script
var resolvers = require('./hoster-resolution-library/hrl');
var videolink="";

// Check if hoster is implemented
if(resolvers.check(hostername))
	// resolve the given link with hostername
	videolink = resolvers.resolve(hosterlink, hostername);
else
	// Resolver is not implemented
	...

About

This module provides hoster resolution helper functions which are used in the movian plugins.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published