Nick Ficano
commited on
Commit
·
1840946
1
Parent(s):
6b1a31c
revert, that broke the build
Browse files- pytube/api.py +1 -1
pytube/api.py
CHANGED
@@ -255,7 +255,7 @@ class YouTube(object):
|
|
255 |
if not response:
|
256 |
raise PytubeError("Unable to open url: {0}".format(self.url))
|
257 |
|
258 |
-
html = response.read()
|
259 |
if "og:restrictions:age" in html:
|
260 |
raise AgeRestricted("Age restricted video. Unable to download "
|
261 |
"without being signed in.")
|
|
|
255 |
if not response:
|
256 |
raise PytubeError("Unable to open url: {0}".format(self.url))
|
257 |
|
258 |
+
html = response.read()
|
259 |
if "og:restrictions:age" in html:
|
260 |
raise AgeRestricted("Age restricted video. Unable to download "
|
261 |
"without being signed in.")
|