Fix paging + concatenate
This commit is contained in:
parent
1c5624d2dd
commit
41e51a0b12
@ -56,15 +56,14 @@ class Nyaa(ConnectorCore):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
valid_trs = valid_trs + 1
|
valid_trs = valid_trs + 1
|
||||||
href = '%s%s' % (self.base_url, url['href'])
|
href = self.base_url + url['href']
|
||||||
|
|
||||||
self.data.append({
|
self.data.append({
|
||||||
'lang': self.get_lang(url_safe),
|
'lang': self.get_lang(url_safe),
|
||||||
'href': href,
|
'href': href,
|
||||||
'name': url_safe,
|
'name': url_safe,
|
||||||
'comment': str(urls[0]).replace('/view/',
|
'comment': str(urls[0]).replace('/view/', self.base_url + '/view/') if has_comment else '',
|
||||||
'%s%s' % (self.base_url, '/view/')) if has_comment else '',
|
'link': tds[2].decode_contents().replace('/download/', self.base_url + '/download/'),
|
||||||
'link': tds[2].decode_contents().replace('/download/', '%s%s' % (self.base_url, '/download/')),
|
|
||||||
'size': tds[3].string,
|
'size': tds[3].string,
|
||||||
'date': parse_date(tds[4].string, '%Y-%m-%d %H:%M'),
|
'date': parse_date(tds[4].string, '%Y-%m-%d %H:%M'),
|
||||||
'seeds': check_seeds,
|
'seeds': check_seeds,
|
||||||
|
@ -48,7 +48,7 @@ class Pantsu(ConnectorCore):
|
|||||||
continue
|
continue
|
||||||
|
|
||||||
valid_trs = valid_trs + 1
|
valid_trs = valid_trs + 1
|
||||||
href = '%s%s' % (self.base_url, url['href'])
|
href = self.base_url + url['href']
|
||||||
|
|
||||||
self.data.append({
|
self.data.append({
|
||||||
'lang': self.get_lang(url_safe),
|
'lang': self.get_lang(url_safe),
|
||||||
|
@ -21,7 +21,7 @@ class YggTorrent(ConnectorCore):
|
|||||||
sort_type = 'size'
|
sort_type = 'size'
|
||||||
if self.return_type is ConnectorReturn.HISTORY:
|
if self.return_type is ConnectorReturn.HISTORY:
|
||||||
sort_type = 'publish_date'
|
sort_type = 'publish_date'
|
||||||
sort_page = '&page=%s' % (self.page * 50) if self.page > 1 else ''
|
sort_page = '&page=%s' % ((self.page - 1) * 50) if self.page > 1 else ''
|
||||||
|
|
||||||
return '%s/engine/search?name=%s&category=2145&sub_category=%s&do=search&order=desc&sort=%s%s' % (
|
return '%s/engine/search?name=%s&category=2145&sub_category=%s&do=search&order=desc&sort=%s%s' % (
|
||||||
self.base_url, self.query, self.category, sort_type, sort_page
|
self.base_url, self.query, self.category, sort_type, sort_page
|
||||||
|
Reference in New Issue
Block a user