plexflow 0.0.78__py3-none-any.whl → 0.0.79__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,6 +3,8 @@ from plexflow.utils.api.rest.restful import Restful
3
3
  from plexflow.core.torrents.providers.piratesparadise.utils import PiratesParadiseSearchResult
4
4
  from plexflow.utils.torrent.extract.piratesparadise import extract_torrent_results
5
5
  from typing import List
6
+ from plexflow.utils.strings.sanitize import remove_punctuation
7
+
6
8
 
7
9
  class PiratesParadise(Plexful):
8
10
  def __init__(self, base_url: str = 'https://piratesparadise.org'):
@@ -10,7 +12,7 @@ class PiratesParadise(Plexful):
10
12
 
11
13
  def search(self, query: str, headless: bool = True, **kwargs) -> List[PiratesParadiseSearchResult]:
12
14
  response = self.get('/search.php', query_params={
13
- 'q': query,
15
+ 'q': remove_punctuation(query),
14
16
  })
15
17
 
16
18
  response.raise_for_status()
@@ -0,0 +1,9 @@
1
+ import string
2
+
3
+ def remove_punctuation(text):
4
+ """Removes all punctuation from a given string."""
5
+ if not isinstance(text, str):
6
+ return "" # Handle non-string input gracefully
7
+
8
+ translator = str.maketrans('', '', string.punctuation)
9
+ return text.translate(translator)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: plexflow
3
- Version: 0.0.78
3
+ Version: 0.0.79
4
4
  Summary: A short description of the package.
5
5
  License: MIT
6
6
  Keywords: keyword1,keyword2,keyword3
@@ -426,14 +426,14 @@ plexflow/core/torrents/providers/piratesparadise/__init__.py,sha256=47DEQpj8HBSa
426
426
  plexflow/core/torrents/providers/piratesparadise/__pycache__/__init__.cpython-311.pyc,sha256=IPhTUbnFhD-jhXQxUsYyjZHs08ho1cVQk1Fx6gj46_s,186
427
427
  plexflow/core/torrents/providers/piratesparadise/__pycache__/__init__.cpython-312.pyc,sha256=POQn-sb7PYiQiZZz1tPsPsexwX5PWhCfoXCfK0Tu1IQ,184
428
428
  plexflow/core/torrents/providers/piratesparadise/__pycache__/extratorrent.cpython-312.pyc,sha256=jFH8XCLnDh4ZNXs_VHoua7yJrOzf4UXE9ocwEvb40uk,1849
429
- plexflow/core/torrents/providers/piratesparadise/__pycache__/piratesparadise.cpython-312.pyc,sha256=qllembPfXh-mpPvVR5ut9V5PoxvIn8YT0GUV_oQpPuQ,1774
429
+ plexflow/core/torrents/providers/piratesparadise/__pycache__/piratesparadise.cpython-312.pyc,sha256=MvQpzbjdWV_Uhr-WrCh0ykDFdWhPhqDFu_Cs6Eqf2K4,1878
430
430
  plexflow/core/torrents/providers/piratesparadise/__pycache__/therarbg.cpython-312.pyc,sha256=EuY35TKrVDa6nz3JrVqRGURM9AOFZKeX1DPaHIGn5yo,1732
431
431
  plexflow/core/torrents/providers/piratesparadise/__pycache__/torrentquest.cpython-312.pyc,sha256=mnM8dE7oCUjkjRL_pabx89IAi-KrjOme0WzWyQr1X0w,1835
432
432
  plexflow/core/torrents/providers/piratesparadise/__pycache__/tpb.cpython-311.pyc,sha256=e_38p1LN_QMIlb92ffVan46SkaPTaMVYFpys7BzPEaY,1688
433
433
  plexflow/core/torrents/providers/piratesparadise/__pycache__/tpb.cpython-312.pyc,sha256=OaCxggRVF0ZZiZmQTxyDZ8CyivJShLfZhLCglhUsXoI,1422
434
434
  plexflow/core/torrents/providers/piratesparadise/__pycache__/utils.cpython-311.pyc,sha256=YwB71cMUDX6MxUduWoFXRQXsP_LIRqK4rAVrJMX4v38,6704
435
435
  plexflow/core/torrents/providers/piratesparadise/__pycache__/utils.cpython-312.pyc,sha256=IrcVcSYpD4mAn21gja6_3ULB0Kt_JUd3ZTX7piLmNRc,3447
436
- plexflow/core/torrents/providers/piratesparadise/piratesparadise.py,sha256=QifPboYgJOlIsOO0OGUPkvTg3NaXCAIH3vdaTG_TT1c,845
436
+ plexflow/core/torrents/providers/piratesparadise/piratesparadise.py,sha256=p0V00VKDKijf3B63yVaea2YdRLLIkJAOpPVhTKPglDc,929
437
437
  plexflow/core/torrents/providers/piratesparadise/utils.py,sha256=qnYQlqmzR62EEEcylSohrUQtIyYselNK2JhhN3y-LsQ,1372
438
438
  plexflow/core/torrents/providers/rarbg2/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
439
439
  plexflow/core/torrents/providers/rarbg2/__pycache__/__init__.cpython-311.pyc,sha256=5V3wvzaKuEsqNyOL4-jILERBitIwrVqVnMjuQ_gAgik,189
@@ -620,9 +620,11 @@ plexflow/utils/strings/__pycache__/filesize.cpython-311.pyc,sha256=X9fexslLrSygn
620
620
  plexflow/utils/strings/__pycache__/filesize.cpython-312.pyc,sha256=rwweeoyPPod9hRAf7ZGbNXi5W8z-sxXQryXrnRql9JQ,1878
621
621
  plexflow/utils/strings/__pycache__/json_extract.cpython-312.pyc,sha256=LE-dU05XzIsJRC6iQh1LodV2dcA0rWcgUktxRGCq76U,14966
622
622
  plexflow/utils/strings/__pycache__/language.cpython-312.pyc,sha256=KmJqMsvEJaR2yqeFb4jy6Ha3h4VSDbmhwVlGYKojcps,562
623
+ plexflow/utils/strings/__pycache__/sanitize.cpython-312.pyc,sha256=fRcOYMIZxmik87gtVCWNr_RBl07TY1qBlEIPGvwNSf4,599
623
624
  plexflow/utils/strings/filesize.py,sha256=mLVd0xqIEzAif5Tn_PyCddFmUPXPNnEbLhBNJTsgOvs,1547
624
625
  plexflow/utils/strings/json_extract.py,sha256=590oY1LMnbe9COm3fD6z74OtOzxeXd3Hrf06afhHOvc,14884
625
626
  plexflow/utils/strings/language.py,sha256=J9-wqmCdxf9Ws5_X1tV4vX4d7AGkKci0eaBE4Lit0j0,269
627
+ plexflow/utils/strings/sanitize.py,sha256=V-58iC4-0xIb-dgK595JbPNyyB9jZbY1xHMazXnQyuI,274
626
628
  plexflow/utils/subtitle/__pycache__/search.cpython-312.pyc,sha256=VFulOf14P0m9ncFRxXwENemR8wNolA8xZykpfdAq4eg,3542
627
629
  plexflow/utils/subtitle/search.py,sha256=MbLJFeU9LDdFnXZXAI86YroBfD4X4Jp0YynLsnEvQ-c,2433
628
630
  plexflow/utils/tasks/__pycache__/decorators.cpython-311.pyc,sha256=8zuAsEfYLEBQQ4DGKqkx-JFCjd73kGhAiPblBNFa2cQ,1675
@@ -669,7 +671,7 @@ plexflow/utils/video/__pycache__/audio.cpython-312.pyc,sha256=vXBnJwWgTDFdixMBs-
669
671
  plexflow/utils/video/__pycache__/subtitle.cpython-312.pyc,sha256=PCjpCLydGXaRsQy6cikhgsEs8WlComfOoYPiLFqfVMA,2515
670
672
  plexflow/utils/video/audio.py,sha256=tJ_lNwcjVuBQYD5cYOlXpr__eh8-hnReIgNRgIYOpqo,3380
671
673
  plexflow/utils/video/subtitle.py,sha256=LOGONGxs_RzmqtGP-DBKreOzS1eUFEKo75Q6AfnavW0,1290
672
- plexflow-0.0.78.dist-info/METADATA,sha256=37irObOaaMbn2WVUzgkVV8dSv4edqaoqdSi3T_M8Jgw,2954
673
- plexflow-0.0.78.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
674
- plexflow-0.0.78.dist-info/entry_points.txt,sha256=aEqDHlozu_zjWrl2sibtrqtQHMgU8kSJZrE782CP47g,1362
675
- plexflow-0.0.78.dist-info/RECORD,,
674
+ plexflow-0.0.79.dist-info/METADATA,sha256=jLTyHWvmN5DEQHd9Vr8t-hauw_wbEfTIMbmG972F1eY,2954
675
+ plexflow-0.0.79.dist-info/WHEEL,sha256=IYZQI976HJqqOpQU6PHkJ8fb3tMNBFjg-Cn-pwAbaFM,88
676
+ plexflow-0.0.79.dist-info/entry_points.txt,sha256=aEqDHlozu_zjWrl2sibtrqtQHMgU8kSJZrE782CP47g,1362
677
+ plexflow-0.0.79.dist-info/RECORD,,