|
@@ -101,9 +101,9 @@ class Connector(object):
|
|
"--match-title",
|
|
"--match-title",
|
|
self._search,
|
|
self._search,
|
|
"--get-id",
|
|
"--get-id",
|
|
- self._url], stderr=stderr).strip()
|
|
|
|
|
|
+ self._url], stderr=stderr)
|
|
except subprocess.CalledProcessError as error_message:
|
|
except subprocess.CalledProcessError as error_message:
|
|
- video_ids = error_message.output.strip()
|
|
|
|
|
|
+ video_ids = error_message.output
|
|
else:
|
|
else:
|
|
try:
|
|
try:
|
|
video_ids = subprocess.check_output([
|
|
video_ids = subprocess.check_output([
|
|
@@ -111,7 +111,8 @@ class Connector(object):
|
|
self._conf.values["maxvideos"], "--get-id",
|
|
self._conf.values["maxvideos"], "--get-id",
|
|
self._url], stderr=stderr).strip()
|
|
self._url], stderr=stderr).strip()
|
|
except subprocess.CalledProcessError as error_message:
|
|
except subprocess.CalledProcessError as error_message:
|
|
- video_ids = error_message.output.strip()
|
|
|
|
|
|
+ video_ids = error_message.output
|
|
|
|
+ video_ids = video_ids.decode(sys.stdout.encoding).strip()
|
|
if len(video_ids) >= 1:
|
|
if len(video_ids) >= 1:
|
|
for video_id in video_ids.split("\n"):
|
|
for video_id in video_ids.split("\n"):
|
|
video_exists = False
|
|
video_exists = False
|