phub 4.8.1__tar.gz → 4.8.2__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.1 → phub-4.8.2}/PKG-INFO +1 -1
  2. {phub-4.8.1 → phub-4.8.2}/pyproject.toml +1 -1
  3. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/video.py +7 -1
  4. {phub-4.8.1 → phub-4.8.2}/src/phub.egg-info/PKG-INFO +1 -1
  5. {phub-4.8.1 → phub-4.8.2}/LICENSE +0 -0
  6. {phub-4.8.1 → phub-4.8.2}/README.md +0 -0
  7. {phub-4.8.1 → phub-4.8.2}/pypi.md +0 -0
  8. {phub-4.8.1 → phub-4.8.2}/setup.cfg +0 -0
  9. {phub-4.8.1 → phub-4.8.2}/setup.py +0 -0
  10. {phub-4.8.1 → phub-4.8.2}/src/phub/__init__.py +0 -0
  11. {phub-4.8.1 → phub-4.8.2}/src/phub/__main__.py +0 -0
  12. {phub-4.8.1 → phub-4.8.2}/src/phub/consts.py +0 -0
  13. {phub-4.8.1 → phub-4.8.2}/src/phub/core.py +0 -0
  14. {phub-4.8.1 → phub-4.8.2}/src/phub/errors.py +0 -0
  15. {phub-4.8.1 → phub-4.8.2}/src/phub/literals.py +0 -0
  16. {phub-4.8.1 → phub-4.8.2}/src/phub/modules/__init__.py +0 -0
  17. {phub-4.8.1 → phub-4.8.2}/src/phub/modules/display.py +0 -0
  18. {phub-4.8.1 → phub-4.8.2}/src/phub/modules/parser.py +0 -0
  19. {phub-4.8.1 → phub-4.8.2}/src/phub/modules/rss.py +0 -0
  20. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/__init__.py +0 -0
  21. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/account.py +0 -0
  22. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/data.py +0 -0
  23. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/feed.py +0 -0
  24. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/image.py +0 -0
  25. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/playlist.py +0 -0
  26. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/query.py +0 -0
  27. {phub-4.8.1 → phub-4.8.2}/src/phub/objects/user.py +0 -0
  28. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/__init__.py +0 -0
  29. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/test_auth.py +0 -0
  30. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/test_model.py +0 -0
  31. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/test_playlist.py +0 -0
  32. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/test_search.py +0 -0
  33. {phub-4.8.1 → phub-4.8.2}/src/phub/tests/test_video.py +0 -0
  34. {phub-4.8.1 → phub-4.8.2}/src/phub/utils.py +0 -0
  35. {phub-4.8.1 → phub-4.8.2}/src/phub.egg-info/SOURCES.txt +0 -0
  36. {phub-4.8.1 → phub-4.8.2}/src/phub.egg-info/dependency_links.txt +0 -0
  37. {phub-4.8.1 → phub-4.8.2}/src/phub.egg-info/entry_points.txt +0 -0
  38. {phub-4.8.1 → phub-4.8.2}/src/phub.egg-info/requires.txt +0 -0
  39. {phub-4.8.1 → phub-4.8.2}/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.1
3
+ Version: 4.8.2
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.1"
3
+ version = "4.8.2"
4
4
  description = "An API for Pornhub"
5
5
  authors = [
6
6
  {name = 'Egsagon', email = "egsagon.git@gmail.com"},
@@ -218,9 +218,15 @@ class Video:
218
218
  except Exception as e:
219
219
  self.logger.warning(f"Skipping invalid quality entry: {q}, {e}")
220
220
  continue
221
-
222
221
  return quality_urls
223
222
 
223
+ def get_segments(self, quality) -> list:
224
+ """
225
+ :param quality: (str) The video quality
226
+ :return: (list) A list of segments (URLs)
227
+ """
228
+ segments = self.client.core.get_segments(m3u8_url_master=self.m3u8_base_url, quality=quality)
229
+ return segments
224
230
 
225
231
  def download(self,
226
232
  path: Union[str, os.PathLike],
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: phub
3
- Version: 4.8.1
3
+ Version: 4.8.2
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
File without changes