aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJPFrancoia <jeanpatrick.francoia@gmail.com>2019-12-25 11:14:21 +0100
committerJPFrancoia <jeanpatrick.francoia@gmail.com>2019-12-25 11:14:21 +0100
commit836fa075264a1d1f43a434c2e134d6bf6cb57943 (patch)
tree05eccc6de9c7713d5344c9b19aa7e90c4140dd77
parent3435c5b357e7bd0bfc1ea1720230f534b14a5c15 (diff)
downloadtpb-lite-836fa075264a1d1f43a434c2e134d6bf6cb57943.tar.gz
tpb-lite-836fa075264a1d1f43a434c2e134d6bf6cb57943.tar.bz2
tpb-lite-836fa075264a1d1f43a434c2e134d6bf6cb57943.zip
Adding comment explaining the 0 at the end of the browse URL.
-rw-r--r--tpblite/models/utils.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tpblite/models/utils.py b/tpblite/models/utils.py
index c6b6248..dd03b55 100644
--- a/tpblite/models/utils.py
+++ b/tpblite/models/utils.py
@@ -38,6 +38,7 @@ class QueryParser:
@classmethod
def browse(cls, base_url: str, category: int, page: int, order: int) -> T:
+ # The 0 is added to the URL to stay consistent with the manual web request
segments = ("browse", str(category), str(page), str(order), "0")
return cls(base_url, segments)