Skip to content

Commit 4f40f5c

Browse files
authored
Merge pull request #4 from pawamoy/files
Fix Torrent.files property
2 parents 128e477 + 333de87 commit 4f40f5c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tpb/tpb.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,7 @@ def info(self):
351351
@property
352352
def files(self):
353353
if not self._files:
354-
path = '/ajax_details_filelist.php?id={id}'.format(id=self.id)
355-
url = self.url.path(path)
354+
url = self.url.path('/ajax_details_filelist.php').query_param('id', self.id)
356355
request = get(str(url), headers=headers())
357356
root = html.fromstring(request.text)
358357
rows = root.findall('.//tr')

0 commit comments

Comments
 (0)