Esempio n. 1
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'BatotoML'
   
   self.main_address = 'http://bato.to'
   self.main_search_address = self.main_address + '/search?dosubmit=Search&name='
   
   self.login_page = self.main_address + '/forums/index.php?app=core&module=global&section=login'
   self.login_post = self.main_address + '/forums/index.php?app=core&module=global&section=login&do=process'
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//table[@class="ipb_table chapters_list"]//tr[contains( @class, "row lang_" )]'
   self.image_xpath = '//img[@id="comic_page"]'
   self.search_results_xpath = '//table[contains( @class, "chapters_list")]//tr'
   
   self.logged_in_xpath = '//a[@class="user_link"]'
   self.authkey_xpath = '//form[@id="login"]/input[@name="auth_key"]'
   
   # options
   self.chapters_list_reverse = True
   
   # data
   self.cookies_file = os.path.join(self.mmachine.var_folder, 'batoto_cookies.txt')
Esempio n. 2
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'MangaEdenML'
   
   # address
   self.main_address = 'http://www.mangaeden.com/'
   self.main_search_address = 'http://www.mangaeden.com/en/en-directory/?title='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_JSON
   self.chapters_type = CHAPTERS_JSON
   
   # search
   self.search_results_xpath = '//table[@id="mangaList"]/tbody/tr/td/a[@class="openManga"]|//table[@id="mangaList"]/tbody/tr/td/a[@class="closedManga"]'
   
   # download api
   self.api_manga = 'http://www.mangaeden.com/api/manga/'
   self.api_chapter = 'http://www.mangaeden.com/api/chapter/'
   self.api_image_server = 'http://cdn.mangaeden.com/mangasimg/'
   
   # options
   self.search_disabled = False
   self.chapters_list_reverse = False
Esempio n. 3
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'MangaSevenML'
   
   self.main_address = 'http://mangaseven.com/'
   self.main_search_address = 'http://mangaseven.com/directory/search/'
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   self.chapters_type = CHAPTERS_JSON
   
   # xpaths
   self.chapters_xpath = '//div[@id="ws-main"]//div[@class="wpm_pag mng_det"]/ul[@class="lst"]/li/span/a'
   self.search_results_xpath = '//ul[@id="wpm_mng_lst"]/li/a'
   
   # options
   self.chapters_list_reverse = True
   self.search_disabled = False
Esempio n. 4
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'MangaFoxML'
   
   self.main_address = 'http://mangafox.me'
   self.main_search_address = self.main_address + '/search.php?name_method=cw&author_method=cw&artist_method=cw&rating_method=eq&advopts=1&name='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//div[@id="chapters"]/ul[@class="chlist"]/li/div//a[@class!="edit"]'
   self.image_xpath = '//img[@id="image"]'
   self.new_page_xpath = '//div[@id="viewer"]/div/a'
   self.search_results_xpath = '//table[@id="listing"]/tr/td/a[contains(@class, "series_preview")]'
   
   # options
   self.chapters_list_reverse = True
   self.search_disabled = False
Esempio n. 5
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'TenMangaML'
   
   self.main_address = 'http://www.taadd.com'
   self.main_search_address = 'http://www.taadd.com/search/?wd='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//div[@class="chapter_list"]/table//tr'
   self.image_xpath = '//img[@id="comicpic"]'
   self.new_page_xpath = '//div/div/a[@class="blue"]'
   self.search_results_xpath = '//div[@id="search_list"]//div[@class="intro"]/h2/a'
   
   # options
   self.chapters_list_reverse = True
   self.search_disabled = True
Esempio n. 6
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'MangaHereML'
   
   self.main_address = 'http://www.mangahere.co'
   self.main_search_address = self.main_address + '/search.php?name='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//div[@class="detail_list"]/ul/li/span/a'
   self.image_xpath = '//img[@id="image"]'
   self.new_page_xpath = '//section[@id="viewer"]/a'
   self.search_results_xpath = '//div[@class="result_search"]/dl/dt'
   
   # options
   self.chapters_list_reverse = True
   self.search_disabled = False
Esempio n. 7
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'MangaReaderML'
   
   self.main_address = 'http://www.mangareader.net'
   self.main_search_address = self.main_address + '/search/?rd=0&status=0&order=0&genre=&p=0&w='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//table[@id="listing"]//a'
   self.image_xpath = '//img[@id="img"]'
   self.new_page_xpath = '//div[@id="imgholder"]/a'
   self.search_results_xpath = '//div[@id="mangaresults"]//div[@class="mangaresultinner"]'
   
   # options
   self.chapters_list_reverse = False
   self.search_disabled = False
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'SampleExtension'
   
   self.main_address = 'http://se.com'
   self.main_search_address = self.main_address + '/search?dosubmit=Search&name='
   
   # formats
   self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   
   # xpaths
   self.chapters_xpath = '//xpath/to/chapter'
   self.image_xpath = '//xpath/to/img'
   self.new_page_xpath = '//xpath/to/next/page/address'
   self.search_results_xpath = '//xpath/to/search/result'
   
   # options
   self.chapters_list_reverse = True
   self.search_disabled = False
Esempio n. 9
0
 def __init__(self, mmachine):
   
   StandardEXT.__init__(self, mmachine)
   self.name = 'DinastyScansML'
   
   self.main_address = 'http://dynasty-scans.com'
   self.main_search_address = '' # TODO: write the search
   
   # formats
   #self.search_results_type = FORMAT_HTML
   self.chapters_list_type = FORMAT_HTML
   self.chapters_type = CHAPTERS_JSON
   
   # xpaths
   self.chapters_xpath = '//dl[@class="chapter-list"]/dd/a'
   self.image_xpath = '//image[@id="image"]/img'
   self.new_page_xpath = '//xpath/to/next/page/address'
   self.search_results_xpath = ''
   
   # options
   self.chapters_list_reverse = False
   self.search_disabled = True