phub 4.8.5__tar.gz → 4.8.6__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.8.5 → phub-4.8.6}/PKG-INFO +1 -1
  2. {phub-4.8.5 → phub-4.8.6}/pyproject.toml +1 -1
  3. {phub-4.8.5 → phub-4.8.6}/src/phub/core.py +1 -1
  4. {phub-4.8.5 → phub-4.8.6}/src/phub/modules/parser.py +1 -1
  5. {phub-4.8.5 → phub-4.8.6}/src/phub.egg-info/PKG-INFO +1 -1
  6. {phub-4.8.5 → phub-4.8.6}/LICENSE +0 -0
  7. {phub-4.8.5 → phub-4.8.6}/README.md +0 -0
  8. {phub-4.8.5 → phub-4.8.6}/pypi.md +0 -0
  9. {phub-4.8.5 → phub-4.8.6}/setup.cfg +0 -0
  10. {phub-4.8.5 → phub-4.8.6}/setup.py +0 -0
  11. {phub-4.8.5 → phub-4.8.6}/src/phub/__init__.py +0 -0
  12. {phub-4.8.5 → phub-4.8.6}/src/phub/__main__.py +0 -0
  13. {phub-4.8.5 → phub-4.8.6}/src/phub/consts.py +0 -0
  14. {phub-4.8.5 → phub-4.8.6}/src/phub/errors.py +0 -0
  15. {phub-4.8.5 → phub-4.8.6}/src/phub/literals.py +0 -0
  16. {phub-4.8.5 → phub-4.8.6}/src/phub/modules/__init__.py +0 -0
  17. {phub-4.8.5 → phub-4.8.6}/src/phub/modules/display.py +0 -0
  18. {phub-4.8.5 → phub-4.8.6}/src/phub/modules/rss.py +0 -0
  19. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/__init__.py +0 -0
  20. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/account.py +0 -0
  21. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/data.py +0 -0
  22. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/feed.py +0 -0
  23. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/image.py +0 -0
  24. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/playlist.py +0 -0
  25. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/query.py +0 -0
  26. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/user.py +0 -0
  27. {phub-4.8.5 → phub-4.8.6}/src/phub/objects/video.py +0 -0
  28. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/__init__.py +0 -0
  29. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/test_auth.py +0 -0
  30. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/test_model.py +0 -0
  31. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/test_playlist.py +0 -0
  32. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/test_search.py +0 -0
  33. {phub-4.8.5 → phub-4.8.6}/src/phub/tests/test_video.py +0 -0
  34. {phub-4.8.5 → phub-4.8.6}/src/phub/utils.py +0 -0
  35. {phub-4.8.5 → phub-4.8.6}/src/phub.egg-info/SOURCES.txt +0 -0
  36. {phub-4.8.5 → phub-4.8.6}/src/phub.egg-info/dependency_links.txt +0 -0
  37. {phub-4.8.5 → phub-4.8.6}/src/phub.egg-info/entry_points.txt +0 -0
  38. {phub-4.8.5 → phub-4.8.6}/src/phub.egg-info/requires.txt +0 -0
  39. {phub-4.8.5 → phub-4.8.6}/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.8.5
3
+ Version: 4.8.6
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.8.5"
3
+ version = "4.8.6"
4
4
  description = "An API for Pornhub"
5
5
  authors = [
6
6
  {name = 'Egsagon', email = "egsagon.git@gmail.com"},
@@ -61,7 +61,7 @@ class Client:
61
61
  self.core = core or BaseCore(config=RuntimeConfig())
62
62
  self.core.initialize_session()
63
63
  self.core.session.headers.update(consts.HEADERS)
64
- self.core.session.cookies.update(consts.HEADERS)
64
+ self.core.session.cookies.update(consts.COOKIES)
65
65
  # Applying PornHub specific cookies and headers to base API
66
66
  self.logger.debug('Initialised new Client %s', self)
67
67
 
@@ -80,6 +80,6 @@ def challenge(client: Client, challenge: str, token: str) -> None:
80
80
  # Build and inject cookie
81
81
  cookie = f'{n}*{p // n}:{s}:{token}:1'
82
82
  client.core.config.cookies = {'KEY': cookie}
83
- client.core.update_cookies()
83
+ client.core.session.cookies.update({'KEY': cookie})
84
84
  logger.info('Injected cookie %s', cookie)
85
85
  # EOF
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phub
3
- Version: 4.8.5
3
+ Version: 4.8.6
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