phub 4.7.9__tar.gz → 4.8.0__tar.gz

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.
Files changed (39) hide show
  1. {phub-4.7.9 → phub-4.8.0}/PKG-INFO +1 -1
  2. {phub-4.7.9 → phub-4.8.0}/pyproject.toml +1 -1
  3. {phub-4.7.9 → phub-4.8.0}/src/phub/modules/parser.py +1 -2
  4. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/query.py +1 -1
  5. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/PKG-INFO +1 -1
  6. {phub-4.7.9 → phub-4.8.0}/LICENSE +0 -0
  7. {phub-4.7.9 → phub-4.8.0}/README.md +0 -0
  8. {phub-4.7.9 → phub-4.8.0}/pypi.md +0 -0
  9. {phub-4.7.9 → phub-4.8.0}/setup.cfg +0 -0
  10. {phub-4.7.9 → phub-4.8.0}/setup.py +0 -0
  11. {phub-4.7.9 → phub-4.8.0}/src/phub/__init__.py +0 -0
  12. {phub-4.7.9 → phub-4.8.0}/src/phub/__main__.py +0 -0
  13. {phub-4.7.9 → phub-4.8.0}/src/phub/consts.py +0 -0
  14. {phub-4.7.9 → phub-4.8.0}/src/phub/core.py +0 -0
  15. {phub-4.7.9 → phub-4.8.0}/src/phub/errors.py +0 -0
  16. {phub-4.7.9 → phub-4.8.0}/src/phub/literals.py +0 -0
  17. {phub-4.7.9 → phub-4.8.0}/src/phub/modules/__init__.py +0 -0
  18. {phub-4.7.9 → phub-4.8.0}/src/phub/modules/display.py +0 -0
  19. {phub-4.7.9 → phub-4.8.0}/src/phub/modules/rss.py +0 -0
  20. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/__init__.py +0 -0
  21. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/account.py +0 -0
  22. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/data.py +0 -0
  23. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/feed.py +0 -0
  24. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/image.py +0 -0
  25. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/playlist.py +0 -0
  26. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/user.py +0 -0
  27. {phub-4.7.9 → phub-4.8.0}/src/phub/objects/video.py +0 -0
  28. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/__init__.py +0 -0
  29. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/test_auth.py +0 -0
  30. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/test_model.py +0 -0
  31. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/test_playlist.py +0 -0
  32. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/test_search.py +0 -0
  33. {phub-4.7.9 → phub-4.8.0}/src/phub/tests/test_video.py +0 -0
  34. {phub-4.7.9 → phub-4.8.0}/src/phub/utils.py +0 -0
  35. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/SOURCES.txt +0 -0
  36. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/dependency_links.txt +0 -0
  37. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/entry_points.txt +0 -0
  38. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/requires.txt +0 -0
  39. {phub-4.7.9 → phub-4.8.0}/src/phub.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phub
3
- Version: 4.7.9
3
+ Version: 4.8.0
4
4
  Summary: An API for Pornhub
5
5
  Author-email: Egsagon <egsagon.git@gmail.com>, EchterAlsFake <EchterAlsFake@proton.me>
6
6
  License: GNU GENERAL PUBLIC LICENSE
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "phub"
3
- version = "4.7.9"
3
+ version = "4.8.0"
4
4
  description = "An API for Pornhub"
5
5
  authors = [
6
6
  {name = 'Egsagon', email = "egsagon.git@gmail.com"},
@@ -79,8 +79,7 @@ def challenge(client: Client, challenge: str, token: str) -> None:
79
79
 
80
80
  # Build and inject cookie
81
81
  cookie = f'{n}*{p // n}:{s}:{token}:1'
82
- client.core.config.cookies = {'KEY', cookie}
82
+ client.core.config.cookies = {'KEY': cookie}
83
83
  client.core.update_cookies()
84
84
  logger.info('Injected cookie %s', cookie)
85
- print("Injected cookie for authentication")
86
85
  # EOF
@@ -184,7 +184,7 @@ class Query:
184
184
 
185
185
  assert isinstance(index, int)
186
186
  url = self.url.format(page = index + 1)
187
- req = self.client.call(url, get_response=True)
187
+ req = self.client.call(url, get_response=True, throw=False)
188
188
 
189
189
  if req.status_code == 404:
190
190
  raise errors.NoResult()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phub
3
- Version: 4.7.9
3
+ Version: 4.8.0
4
4
  Summary: An API for Pornhub
5
5
  Author-email: Egsagon <egsagon.git@gmail.com>, EchterAlsFake <EchterAlsFake@proton.me>
6
6
  License: GNU GENERAL PUBLIC LICENSE
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes