Kashyap Maduri
commited on
Commit
·
4f32aa1
1
Parent(s):
79e3d84
fixed issue #88. Cause because of str and bytes difference in python3
Browse files- pytube/api.py +1 -1
pytube/api.py
CHANGED
@@ -363,7 +363,7 @@ class YouTube(object):
|
|
363 |
response = urlopen(url)
|
364 |
if not response:
|
365 |
raise PytubeError("Unable to open url: {0}".format(self.url))
|
366 |
-
self._js_cache = response.read()
|
367 |
try:
|
368 |
matches = reg_exp.search(self._js_cache)
|
369 |
if matches:
|
|
|
363 |
response = urlopen(url)
|
364 |
if not response:
|
365 |
raise PytubeError("Unable to open url: {0}".format(self.url))
|
366 |
+
self._js_cache = response.read().decode()
|
367 |
try:
|
368 |
matches = reg_exp.search(self._js_cache)
|
369 |
if matches:
|