display files in torrent
This commit is contained in:
parent
2ee1c761ea
commit
bcc3079d41
2 changed files with 8 additions and 0 deletions
|
|
@ -169,4 +169,10 @@ class TorrentsPage(BasePage):
|
|||
if title and body:
|
||||
torrent.description += '%s\n\n%s\n' % (title, body)
|
||||
|
||||
div = self.document.getroot().cssselect('div#files_%s' % torrent.id)
|
||||
if div:
|
||||
for tr in div[0].find('table'):
|
||||
if tr.attrib.get('class', None) != 'colhead_dark':
|
||||
torrent.files.append(tr.find('td').text)
|
||||
|
||||
return torrent
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue