Skip to content

Commit 76ddbaf

Browse files
committed
Update Readme
1 parent 18fa2dd commit 76ddbaf

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if __name__ == "__main__":
3636
type=t_type,
3737
sort_by=ParamSort.SEEDERS,
3838
sort_order=ParamSeq.DECREASING
39-
)[0]
39+
).torrents[0]
4040
print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])
4141

4242
client.logout()
@@ -59,7 +59,7 @@ if __name__ == "__main__":
5959
type=SearchParamType.HD_HUN,
6060
sort_by=ParamSort.SEEDERS,
6161
sort_order=ParamSeq.DECREASING
62-
)[0]
62+
).torrents[0]
6363

6464
client.download(torrent, "/tmp")
6565
client.logout()
@@ -144,7 +144,7 @@ async def main():
144144
type=t_type,
145145
sort_by=ParamSort.SEEDERS,
146146
sort_order=ParamSeq.DECREASING
147-
)[0]
147+
).torrents[0]
148148
print(torrent['title'], torrent['type'], torrent['size'], torrent['id'])
149149

150150
await client.logout()

0 commit comments

Comments
 (0)