TeaTV will have add-ons system. This is our new documentation for contributing add-ons.
Note: The documentation is not finished and will be updated.
Add-ons are some kind of code that was developed by third-party developers. Add-ons can locally & remotely be installed in TeaTV Desktop.
TeaTV Add-ons have one main purpose and that's providing more sources to get more links and get better movie watching experience.
With some basic knowledge of programming, you can totally make somes add-ons, use it to enjoy the movies you like.
TeaTV application searches movie/tv/anime links on the web (using Nodejs):
- Step 1 (Provider Crawler): From input information, search across supported providers for embed links
- Step 2 (Url Resolver): Convert embed links (host) to direct links.
Note:
provider
: free movie online website, like5movies.to
,www.primewire.ag
host
: video hosting website, likeopenload
,streamango
link
:embed link
: video link that only plays on web, likehttps://openload.co/embed/aoiV82o6DQ0
direct link
: video link that returns a video file, can be played on player, likehttp://vjs.zencdn.net/v/oceans.mp4
There are two kinds of add-ons:
- provider: to support one more provider
- host: to support on more host
One add-on come with two files:
manifest.json
- structure:
object
add_on_type
:string
, {provider
,host
}domain
:array
, [string
]version
:string
(Format0.0.0
, doesn't allow text likebeta
)url
:string
(url of host_or_provider_name.js)type
:array
, [string
{tv
,movie
,anime
}], only whenadd_on_type
==provider
request_data
:any object
, use for requesting addition data (like api keys)
host_or_provider_name.js
The structure of code in host_or_provider_name.js
will be shown in sample code. There are some notes:
- No require/import allow, we provide some libraries and you can do many things with it. In case you need more library, contact us or bundle them into one file (but we advise against it). Remeber: No require/import allow.
- You can use Javascript ES6, with async/await support, but have to use "module.exports"
- To get started, clone out sample code repo, and start from there
- Our Todo providers list & Todo hosts list