diff options
author | Loic Coyle <loic.coyle@hotmail.fr> | 2020-08-22 03:40:37 +0200 |
---|---|---|
committer | Loic Coyle <loic.coyle@hotmail.fr> | 2020-08-22 03:40:37 +0200 |
commit | e2a941fbfc032e1aa57994879c43ab0585324346 (patch) | |
tree | b4538dade37abd2852ac4801e330a535af7db0b3 | |
parent | 85adf1b1126de2091828d5ed0309d037e66b3232 (diff) | |
download | tpb-lite-e2a941fbfc032e1aa57994879c43ab0585324346.tar.gz tpb-lite-e2a941fbfc032e1aa57994879c43ab0585324346.tar.bz2 tpb-lite-e2a941fbfc032e1aa57994879c43ab0585324346.zip |
PEP8 and remove unused import
-rw-r--r-- | tpblite/tpblite.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tpblite/tpblite.py b/tpblite/tpblite.py index abd59ae..b4028b6 100644 --- a/tpblite/tpblite.py +++ b/tpblite/tpblite.py @@ -1,11 +1,10 @@ from typing import Optional -from .models.torrents import Torrents, Torrent +from .models.torrents import Torrents from .models.utils import QueryParser class TPB: - def __init__(self, base_url: str = "https://tpb.party"): """ThePirateBay Object @@ -62,7 +61,7 @@ class TPB: self._search_url = q.url return Torrents(q.html_source) - def top(self, category: int=0, last_48=False): + def top(self, category: int = 0, last_48: bool = False): """Get the top torrents of a category and return a list of Torrents Args: |