remove unused import
Browse files- pytube/helpers.py +0 -2
- pytube/mixins.py +1 -1
pytube/helpers.py
CHANGED
@@ -4,11 +4,9 @@
|
|
4 |
import logging
|
5 |
import pprint
|
6 |
import re
|
7 |
-
from typing import Optional
|
8 |
|
9 |
from pytube.exceptions import RegexMatchError
|
10 |
|
11 |
-
|
12 |
logger = logging.getLogger(__name__)
|
13 |
|
14 |
|
|
|
4 |
import logging
|
5 |
import pprint
|
6 |
import re
|
|
|
7 |
|
8 |
from pytube.exceptions import RegexMatchError
|
9 |
|
|
|
10 |
logger = logging.getLogger(__name__)
|
11 |
|
12 |
|
pytube/mixins.py
CHANGED
@@ -38,7 +38,7 @@ def apply_signature(config_args: Dict, fmt: str, js: str) -> None:
|
|
38 |
)
|
39 |
for i, stream in enumerate(stream_manifest):
|
40 |
try:
|
41 |
-
url = stream["url"]
|
42 |
except KeyError:
|
43 |
if live_stream:
|
44 |
raise LiveStreamError("Video is currently being streamed live")
|
|
|
38 |
)
|
39 |
for i, stream in enumerate(stream_manifest):
|
40 |
try:
|
41 |
+
url: str = stream["url"]
|
42 |
except KeyError:
|
43 |
if live_stream:
|
44 |
raise LiveStreamError("Video is currently being streamed live")
|