phub 4.8.1__py3-none-any.whl → 4.8.2__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.
- phub/objects/video.py +7 -1
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/METADATA +1 -1
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/RECORD +7 -7
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/WHEEL +0 -0
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/entry_points.txt +0 -0
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/licenses/LICENSE +0 -0
- {phub-4.8.1.dist-info → phub-4.8.2.dist-info}/top_level.txt +0 -0
phub/objects/video.py
CHANGED
|
@@ -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],
|
|
@@ -17,16 +17,16 @@ phub/objects/image.py,sha256=qCLuaOy-EYzA_uXxiPRQeCLHPf9gFr0o7TDszQvWXZs,3376
|
|
|
17
17
|
phub/objects/playlist.py,sha256=hpP76yH23LdDS0iL28jhp_iG7EGetYJA3xoqZZdXjTs,3278
|
|
18
18
|
phub/objects/query.py,sha256=crYC-MJGEf04XO3hfU7FPyyHEnBWS9D8XbeQmtTnpzQ,11596
|
|
19
19
|
phub/objects/user.py,sha256=pIumIGC_MQXQ-hjzf_0c0I_egL4WziHrh2e8XegArEc,8161
|
|
20
|
-
phub/objects/video.py,sha256=
|
|
20
|
+
phub/objects/video.py,sha256=NgsfxgqwjkiTKcNLEgwfMLfeGU7n2j4ZF3Vkq4LocR0,19168
|
|
21
21
|
phub/tests/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
22
22
|
phub/tests/test_auth.py,sha256=ySy1Aw0bogMGDSTmzVXO_W352cbRFzXUGjuDX1Iu0xE,609
|
|
23
23
|
phub/tests/test_model.py,sha256=hRpmIjsx2z0EjTWsIpwT_vpHm-H4wCmZtvGWOohaIKQ,1426
|
|
24
24
|
phub/tests/test_playlist.py,sha256=-hS5bIBecsv3zSNlUo66b73DdVbkYlmVThYip9Ivpss,1081
|
|
25
25
|
phub/tests/test_search.py,sha256=VeqyjVzu0QnIYR6NhcujXy8wfCcWn1BlvKS06iY-7JY,1301
|
|
26
26
|
phub/tests/test_video.py,sha256=4E70tiza45byMFIrjBdnpP3xOSyk1YKoTGNP4_QTI0E,1465
|
|
27
|
-
phub-4.8.
|
|
28
|
-
phub-4.8.
|
|
29
|
-
phub-4.8.
|
|
30
|
-
phub-4.8.
|
|
31
|
-
phub-4.8.
|
|
32
|
-
phub-4.8.
|
|
27
|
+
phub-4.8.2.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
28
|
+
phub-4.8.2.dist-info/METADATA,sha256=A7_wFWtOTpS6k9qVA3VwX6A4ky-uuM24sef4gpExgu0,41740
|
|
29
|
+
phub-4.8.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
phub-4.8.2.dist-info/entry_points.txt,sha256=oxL1BvDV19M1IGLgwFElgb37PlmGnblDBEfMwx3x6u8,44
|
|
31
|
+
phub-4.8.2.dist-info/top_level.txt,sha256=xqJ5Lg28Ba-pgvXf8qwpTFurW3neZhguNd8bhbQonZo,5
|
|
32
|
+
phub-4.8.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|