diff options
author | JPFrancoia <jeanpatrick.francoia@gmail.com> | 2019-12-25 10:47:29 +0100 |
---|---|---|
committer | JPFrancoia <jeanpatrick.francoia@gmail.com> | 2019-12-25 10:47:29 +0100 |
commit | ec4f40de81d75d54764ab16915aefd082585ea4a (patch) | |
tree | 2c048349a5b5dceb2989d27a25a554201da1cd92 /tpblite/models/utils.py | |
parent | 4f00535cc83f57aac4b2a420907497e15f7c2f35 (diff) | |
download | tpb-lite-ec4f40de81d75d54764ab16915aefd082585ea4a.tar.gz tpb-lite-ec4f40de81d75d54764ab16915aefd082585ea4a.tar.bz2 tpb-lite-ec4f40de81d75d54764ab16915aefd082585ea4a.zip |
Addressing some comments in the PR (mainly code cleaning).
Diffstat (limited to 'tpblite/models/utils.py')
-rw-r--r-- | tpblite/models/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/tpblite/models/utils.py b/tpblite/models/utils.py index eb24f8c..1d5bda6 100644 --- a/tpblite/models/utils.py +++ b/tpblite/models/utils.py @@ -1,4 +1,4 @@ -from typing import Tuple, Type +from typing import Tuple import random from urllib.request import Request, urlopen import urllib.error @@ -35,9 +35,7 @@ class QueryParser: @classmethod def from_browse(cls, base_url: str, category: int, page: int, order: int): - print("browsing") segments = ("browse", str(category), str(page), str(order), "0") - return cls(base_url, segments) def _sendRequest(self): |