def hitodumagiri(he, url): studio = '人妻斬り' performer = he.find_class('name_JP_hitozuma')[0].text.strip() age = libssw.extr_num( he.xpath('//table[@summary="movie info"][1]//tr[1]/td')[1].text)[0] title = performer + age + '才' qname = '+'.join(map(libssw.quote, performer.split())) srchurl = 'http://www.c0930.com/search/?q={}&x=0&y=0&category_search_type=and&flag_match_type=0'.format( qname) release = None while not release: resp, srchp = libssw.open_url(srchurl) for div in srchp.find_class('unit-thumbs ori1'): if div[1].get('href') == url: release = libssw.extr_num(div[0].text) else: nextbold = he.find_class('next bold') if nextbold is not None: srchurl = nextbold[0].get('href') uncensored(url, release, title, studio, [performer], '')
def caribbean(he, netloc, url): if netloc == 'www.caribbeancom.com': studio = 'カリビアンコム' title = he.find('.//h1[@itemprop="name"]').text.strip() release = libssw.extr_num( he.find('.//dd[@itemprop="uploadDate"]').text) else: studio = 'カリビアンコム プレミアム' title = he.find_class('video-detail')[0].xpath('.//h1')[0].text.strip() release = libssw.extr_num( he.find('.//div[@class="movie-info"]/dl[3]/dd[1]').text) performers = he.find_class('movie-info')[0].xpath( 'dl[1]/dd')[0].text_content().split() uncensored(url, release, title, studio, performers, '')
def japorn(he, url): """JAPORN.TV""" note = '' current_tab = he.xpath('//ol[@class="tab current"][1]/a')[0] if current_tab.get('title') == 'DVD': # DVDのときのBlu-ray版チェック bd = he.xpath('//a[@title="BLU-RAY"]') if len(bd): bdlink = bd[0].get('href') note = ' ([[Blu-ray版>{}]])'.format(bdlink) elif current_tab.get('title') == 'BLU-RAY': # Blu-ray版のときのDVD版チェック dvd = he.xpath('//a[@title="DVD"]') if len(dvd): dvdlink = dvd[0].get('href') note = ' ([[DVD版>{}]])'.format(dvdlink) title = he.xpath('//div[@id="mini-tabet"]/h2')[0].text.strip() for redtitle in he.iterfind('.//span[@class="redtitle"]'): label = redtitle.text.strip() if label.startswith('主演女優'): performers = [ t.strip() for t in redtitle.getparent().xpath('a/text()') ] elif label.startswith('スタジオ'): studio = redtitle.getnext().text.strip() elif label.startswith('発売日'): reltext = redtitle.tail.strip() release = libssw.extr_num(reltext) release = [release[i] for i in (2, 0, 1)] uncensored(url, release, title, studio, performers, note)
def pacopacomama(he, url): studio = 'パコパコママ' title = he.xpath('//title')[0].text.strip() release = libssw.extr_num(he.find_class('date')[0].text)[:3] performers = he.xpath('//div[@class="detail-info-l"]//table/tr[1]/td/a' )[0].text.strip().split() uncensored(url, release, title, studio, performers, '')
def jukujoclub(he, url): studio = '熟女倶楽部' movdata = he.find_class('movie_data_bottom')[0].xpath('table')[0] title = movdata.xpath('tr[2]/td')[1].text.strip() release = ['0000'] + libssw.extr_num(movdata.xpath('tr[7]/td')[1].text) performers = movdata.xpath('tr[3]/td')[1].text_content().split() uncensored(url, release, title, studio, performers, '')
def tenmusume(he, url): studio = '天然むすめ' title = re_musume_title.findall(he.xpath('//title')[0].text.strip())[0] release = libssw.extr_num( he.get_element_by_id('info').xpath('div[1]/ul/li[1]/em')[0].tail) performers = he.get_element_by_id('info').xpath( 'div[1]/ul/li[2]/a')[0].text.strip().split() uncensored(url, release, title, studio, performers, '')
def heydouga(he, url): studio = 'HEY動画' title = he.xpath('//meta[@name="description"]')[0].get('content') movieinfo = he.find_class('movieInfo')[0] release = libssw.extr_num(movieinfo.xpath('li[1]')[0].text) performers = movieinfo.xpath('li[2]/a')[0].text.split() uncensored(release, title, studio, performers, '')
def tokyohot(he, url): studio = 'Tokyo-Hot' title = he.xpath('//div[@class="pagetitle"]/h2')[0].text.strip() release = libssw.extr_num( he.xpath('//dl[@class="info"][2]/dd[1]/text()')[0]) performers = [ t.strip() for t in he.xpath('//dl[@class="info"][1]/dd[1]/a/text()') ] uncensored(url, release, title, studio, performers, '')
def heyzo(he, url): studio = 'HEYZO' title = he.xpath('//meta[@name="description"]')[0].get('content') title = re_heyzo_title.findall(title)[0] release = libssw.extr_num( he.find_class('release-day')[0].getnext().text.strip()) performers = he.xpath('//div[@class="movieInfo"]//span[@class="actor"]' )[0].getnext().xpath('a//text()') uncensored(url, release, title, studio, performers, '')
def ipondo(he, url): studio = '一本道' title = he.xpath('//h1')[0].getnext().text_content().strip() performers = he.xpath('//h1/a')[0].text.strip().split() # 検索結果ページから配信開始日を取得する # 検索文字列(URL)の作成 qlist = performers[:] qlist.append(title) verbose('qlist: ', qlist) searchurl = 'http://www.1pondo.tv/list.php?q={}&op=and'.format('+'.join( libssw.quote(s) for s in qlist)) verbose('searchurl: ', searchurl) release = None while not release: r, e = libssw.open_url(searchurl) for div in e.iterfind('.//div[@class="list_container"]/div'): a = div.xpath('a')[0] verbose('a: ', a.get('href')) if a.get('href') == url: release = libssw.extr_num(div.xpath('p')[0].text_content()) break else: # ページ内に見つからなかったら次のページヘ for pagin in he.iterfind( './/div[@class="listblock"]/p[@align="right"]/a'): if pagin.text.strip() == '次へ': searchurl = 'http://www.1pondo.tv{}'.format( pagin.get('href')) break else: # 最後まで見つからなかったらダミーリストを返す emsg('W', '配信開始日を取得できませんでした。') release = tuple('0000', '00', '00') uncensored(url, release, title, studio, performers, '')