remove pprint
Browse files- pytube/extract.py +3 -9
pytube/extract.py
CHANGED
@@ -1,7 +1,6 @@
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
"""This module contains all non-cipher related data extraction logic."""
|
3 |
import json
|
4 |
-
import pprint
|
5 |
import re
|
6 |
from collections import OrderedDict
|
7 |
|
@@ -254,11 +253,7 @@ def apply_signature(config_args: Dict, fmt: str, js: str) -> None:
|
|
254 |
# TypeError caught in __main__
|
255 |
raise TypeError("JS is None")
|
256 |
|
257 |
-
logger.debug(
|
258 |
-
"finished descrambling signature for itag=%s\n%s",
|
259 |
-
stream["itag"],
|
260 |
-
pprint.pformat({"s": stream["s"], "signature": signature,}, indent=2,),
|
261 |
-
)
|
262 |
# 403 forbidden fix
|
263 |
stream_manifest[i]["url"] = url + "&sig=" + signature
|
264 |
|
@@ -321,6 +316,5 @@ def apply_descrambler(stream_data: Dict, key: str) -> None:
|
|
321 |
{k: unquote(v) for k, v in parse_qsl(i)}
|
322 |
for i in stream_data[key].split(",")
|
323 |
]
|
324 |
-
|
325 |
-
|
326 |
-
)
|
|
|
1 |
# -*- coding: utf-8 -*-
|
2 |
"""This module contains all non-cipher related data extraction logic."""
|
3 |
import json
|
|
|
4 |
import re
|
5 |
from collections import OrderedDict
|
6 |
|
|
|
253 |
# TypeError caught in __main__
|
254 |
raise TypeError("JS is None")
|
255 |
|
256 |
+
logger.debug("finished descrambling signature for itag=%s", stream["itag"])
|
|
|
|
|
|
|
|
|
257 |
# 403 forbidden fix
|
258 |
stream_manifest[i]["url"] = url + "&sig=" + signature
|
259 |
|
|
|
316 |
{k: unquote(v) for k, v in parse_qsl(i)}
|
317 |
for i in stream_data[key].split(",")
|
318 |
]
|
319 |
+
|
320 |
+
logger.debug("applying descrambler")
|
|