linting
Browse files- README.md +1 -1
- pytube/__main__.py +3 -2
- setup.cfg +2 -3
README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
<div align="center">
|
3 |
<p>
|
4 |
<img src="./images/pytube.png" width="350" height="328" alt="pytube logo" />
|
5 |
-
</p>
|
6 |
<p align="center">
|
7 |
<img src="https://img.shields.io/pypi/v/pytube.svg" alt="pypi">
|
8 |
<a href="https://travis-ci.org/nficano/pytube"><img src="https://travis-ci.org/nficano/pytube.svg?branch=master" /></a>
|
|
|
2 |
<div align="center">
|
3 |
<p>
|
4 |
<img src="./images/pytube.png" width="350" height="328" alt="pytube logo" />
|
5 |
+
</p>
|
6 |
<p align="center">
|
7 |
<img src="https://img.shields.io/pypi/v/pytube.svg" alt="pypi">
|
8 |
<a href="https://travis-ci.org/nficano/pytube"><img src="https://travis-ci.org/nficano/pytube.svg?branch=master" /></a>
|
pytube/__main__.py
CHANGED
@@ -109,7 +109,7 @@ class YouTube(object):
|
|
109 |
self.player_config_args = self.vid_info
|
110 |
else:
|
111 |
self.player_config_args = extract.get_ytplayer_config(
|
112 |
-
self.watch_html
|
113 |
)['args']
|
114 |
|
115 |
# https://github.com/nficano/pytube/issues/165
|
@@ -127,7 +127,8 @@ class YouTube(object):
|
|
127 |
mixins.apply_signature(self.player_config_args, fmt, self.js)
|
128 |
except TypeError:
|
129 |
self.js_url = extract.js_url(
|
130 |
-
self.embed_html, self.age_restricted
|
|
|
131 |
self.js = request.get(self.js_url)
|
132 |
mixins.apply_signature(self.player_config_args, fmt, self.js)
|
133 |
|
|
|
109 |
self.player_config_args = self.vid_info
|
110 |
else:
|
111 |
self.player_config_args = extract.get_ytplayer_config(
|
112 |
+
self.watch_html,
|
113 |
)['args']
|
114 |
|
115 |
# https://github.com/nficano/pytube/issues/165
|
|
|
127 |
mixins.apply_signature(self.player_config_args, fmt, self.js)
|
128 |
except TypeError:
|
129 |
self.js_url = extract.js_url(
|
130 |
+
self.embed_html, self.age_restricted,
|
131 |
+
)
|
132 |
self.js = request.get(self.js_url)
|
133 |
mixins.apply_signature(self.player_config_args, fmt, self.js)
|
134 |
|
setup.cfg
CHANGED
@@ -3,7 +3,7 @@ commit = True
|
|
3 |
tag = True
|
4 |
current_version = 9.0.7
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
-
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
@@ -15,6 +15,5 @@ description-file = README.md
|
|
15 |
|
16 |
[coverage:run]
|
17 |
source = pytube
|
18 |
-
omit =
|
19 |
pytube/compat.py
|
20 |
-
|
|
|
3 |
tag = True
|
4 |
current_version = 9.0.7
|
5 |
parse = (?P<major>\d+)\.(?P<minor>\d+)\.(?P<patch>\d+)(\-(?P<release>[a-z]+))?
|
6 |
+
serialize =
|
7 |
{major}.{minor}.{patch}
|
8 |
|
9 |
[metadata]
|
|
|
15 |
|
16 |
[coverage:run]
|
17 |
source = pytube
|
18 |
+
omit =
|
19 |
pytube/compat.py
|
|