|
Plugins
Arturo actually supports these following sites: These sites are great because subtitles are divided in pages with specific tv series name and season. If you want to create a new plugin for www.foosubtitles.cz, you have to:
Plugins are just Python files that must adhere to this specification: class Scraper(object):
#This class has to be called Scraper, that's it!
def __init__(self,opener,tvseries_config):
#This constructor initialize the opener and, as it is called just one time, can be used for site authentication
def get_subtitles_file_url_list(self,tvseries_config):
#This method does the dirty job!
#Starting from tv series url, using regular expression, it has to return a list of url like this:
#['http://www.foosubtitles.cz/download/sub_episodes1.zip','http://www.foosubtitles.cz/download/sub_episodes2.zip',..]Remember, plugins are not forever! If subtitles repositories change its layout, plugin probably will miserably start to fail. Have fun! |
► Sign in to add a comment