phub 4.8.5__py3-none-any.whl → 4.8.6__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/core.py +1 -1
- phub/modules/parser.py +1 -1
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/METADATA +1 -1
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/RECORD +8 -8
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/WHEEL +0 -0
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/entry_points.txt +0 -0
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/licenses/LICENSE +0 -0
- {phub-4.8.5.dist-info → phub-4.8.6.dist-info}/top_level.txt +0 -0
phub/core.py
CHANGED
|
@@ -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.
|
|
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
|
|
phub/modules/parser.py
CHANGED
|
@@ -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.
|
|
83
|
+
client.core.session.cookies.update({'KEY': cookie})
|
|
84
84
|
logger.info('Injected cookie %s', cookie)
|
|
85
85
|
# EOF
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
phub/__init__.py,sha256=tEWpP7XSkDB9_M5iJ1XHSgpJ6g4olWqYTX8f9IBpIAA,635
|
|
2
2
|
phub/__main__.py,sha256=nP5IffsxbcFzPdGkMWky4fs647NOswW9DT-S5AcLQtU,4028
|
|
3
3
|
phub/consts.py,sha256=a-okcZtwtSDmt4eub_acE1xWg1Fqxm1DZ9yy7aVGvM0,12453
|
|
4
|
-
phub/core.py,sha256=
|
|
4
|
+
phub/core.py,sha256=1APjjsAKH0EeaMxhVN3v7uMG760HDv3DJSty-Ycm5eE,18441
|
|
5
5
|
phub/errors.py,sha256=KiNt_4T4ffzgL-2iIfD8qhIHN_5DeKV4FLPcY72sOw8,1822
|
|
6
6
|
phub/literals.py,sha256=ZnRnn5hJNI3hM6aj2YxsxPANUR-PCqfE2SuQGD8_Yq4,10794
|
|
7
7
|
phub/utils.py,sha256=MYPYvpLrWAYXcwpSUJnRWvFNP0N9iOyLxkzaJFsk8GA,6582
|
|
8
8
|
phub/modules/__init__.py,sha256=h8BQjvxnqCEXxDCn7iDvnGLv0ZF_lE0dFlI7HVkzN5A,133
|
|
9
9
|
phub/modules/display.py,sha256=qOUaDGZJbGp80JAqPu_T__F2Mzwr3FBRnhrAdYdVjoE,2444
|
|
10
|
-
phub/modules/parser.py,sha256
|
|
10
|
+
phub/modules/parser.py,sha256=-7q3818wqDX1YMQouY9JguHDaULYiXFkL6rheHf-Big,2360
|
|
11
11
|
phub/modules/rss.py,sha256=j666dZenn3tWgLVXd2U3ox2-tWyUynFXuArzG2bmOFc,980
|
|
12
12
|
phub/objects/__init__.py,sha256=BHOythbS-r01YKYSxtExBlJZYF38hkp85aLAoVQfDd4,446
|
|
13
13
|
phub/objects/account.py,sha256=B1hSHmYHip08Gy-TdVmYq25iAA8rjdVuzwwkpjGjl8c,6044
|
|
@@ -24,9 +24,9 @@ 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.6.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
28
|
+
phub-4.8.6.dist-info/METADATA,sha256=bUL3Qpm8TIitdyW_j7S1hAihtA9L7RU_OwqDZrpChHI,41758
|
|
29
|
+
phub-4.8.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
30
|
+
phub-4.8.6.dist-info/entry_points.txt,sha256=oxL1BvDV19M1IGLgwFElgb37PlmGnblDBEfMwx3x6u8,44
|
|
31
|
+
phub-4.8.6.dist-info/top_level.txt,sha256=xqJ5Lg28Ba-pgvXf8qwpTFurW3neZhguNd8bhbQonZo,5
|
|
32
|
+
phub-4.8.6.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|