aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt <32886639+mattlyon93@users.noreply.github.com>2020-10-17 06:19:52 +1100
committerGitHub <noreply@github.com>2020-10-17 06:19:52 +1100
commitbcc6e8f261139725c714c835acb7ff7eedbbf047 (patch)
tree2d5e25670cf2ff327f39bdac709550868c209b33
parent7c53f870114987e3e7cb891d94625574d09abebe (diff)
downloadtpb-lite-bcc6e8f261139725c714c835acb7ff7eedbbf047.tar.gz
tpb-lite-bcc6e8f261139725c714c835acb7ff7eedbbf047.tar.bz2
tpb-lite-bcc6e8f261139725c714c835acb7ff7eedbbf047.zip
Update README.md
-rw-r--r--README.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/README.md b/README.md
index 07c5bd9..e588afa 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ t = TPB()
torrents = t.search('public domain')
# See how many torrents were found
-print('There were {0} torrents found.'.format(len(torrents))
+print('There were {0} torrents found.'.format(len(torrents)))
# Iterate through list of torrents and print info for Torrent object
for torrent in torrents:
@@ -37,7 +37,7 @@ for torrent in torrents:
# Customize your search
from tpblite import CATEGORIES, ORDERS
-torrents = t.search('public domain', page=2, order=ORDERS.NAME.DEC, category=CATEGORIES.VIDEO.MOVIES)
+torrents = t.search('public domain', page=2, order=ORDERS.NAME.DES, category=CATEGORIES.VIDEO.MOVIES)
# Get the most seeded torrent based on a filter
torrent = torrents.getBestTorrent(min_seeds=30, min_filesize='500 MiB', max_filesize='4 GiB')
@@ -51,7 +51,7 @@ print(torrent.magnetlink)
## Browse
```python
# You can browse all of the torrents from a single category
-torrents = t.browse(category=CATEGORIES.VIDEOS)
+torrents = t.browse(category=CATEGORIES.VIDEO)
# Customize the page number and sort order
torrents = t.browse(category=CATEGORIES.VIDEO.MOVIES, page=1, order=ORDERS.UPLOADED.DES)
```
@@ -72,7 +72,7 @@ torrents = t.top(category=CATEGORIES.GAMES.ALL, last_48=True)
```python
# To print all available categories, use the classmethod printOptions
CATEGORIES.printOptions()
-# Or just a subset of categories, like VIDEOS
+# Or just a subset of categories, like VIDEO
CATEGORIES.VIDEO.printOptions()
# Similarly for the sort order
ORDERS.printOptions()