09-26-2021, 09:39 AM
0
(06-19-2020, 08:24 AM)mfaraj Wrote: You are not allowed to view links. Register or Login to view.Addon params
addon param and addon.xml control the appearance,behavior and reaction of the addon wiith TSmedia.
Many params are available but not necessory to write then in Param file in the addon path,any param not mentioned TSmedia will consider the default value for it.
the basic params which should b written in the Param file
PHP Code:##params##
plugin_title==YTS YIFY
plugin_id==ytslt
section==movies
subsection==general
group==movies
rating==5
version==1.0.8
provider==TSmedia Team Support yassinov.com
The other optional params are
all are known exceptPHP Code:textsize==20
textcolor==#00ffe875
infobar_forecolor==#000080
infobar_color==#00ffe875
baseurl== https://yts.lt/
style==thumbnails
fanart==True
mediatype==torrents
downloadimage_by==thread
autonext==False
metadata==False
subtitle==False
player=="exteplayer3"
mediatype: take values video(default),audio,picture,youtube,torrent
downloadimage_by:takes values thread(default),cfthread(for cloudflare protected images),twisted
autonext:play the next item in players automatically used mainly fro youtube clips,default False
metadata:usaully the addon display automatically the imdb data for the movie if the imdb_id is available ,but if we want TSmedia to display metadate(genre,language,country..) extracted from the source we put metadata==True default is False
subtitle:also TSmedia download subtitle and play it automatically for given movie if imdb_id is available,to make this possible we put subtitle==True default is False
player:some links in some addons played by specific player
player takes two value exteplayer3 and systemPlayer default is systemPlayer
available tools in wTSmedia-addon menu(edit params,addon settings) to help in making Param file and addon,xml
Web scraping:
means extracting data from the source and process it to be read by the local application.
Basic knowledge of regular expression is needed and ability to analyze the source by the browsers(firefox,chrome) from the development tools.
the best way to learn this by studying any known addon and looking for the code how do this task.
with time the process will be easy and interesting.
END
great works thanks