|
@@ -126,15 +126,18 @@ class Connector(object):
|
|
|
video_title = subprocess.check_output([
|
|
|
self._conf.values["youtube-dl"], "--get-title",
|
|
|
"https://www.youtube.com/watch?v=%s"
|
|
|
- % video_id], stderr=stderr).strip()
|
|
|
+ % video_id], stderr=stderr)
|
|
|
video_description = subprocess.check_output([
|
|
|
self._conf.values["youtube-dl"],
|
|
|
"--get-description",
|
|
|
"https://www.youtube.com/watch?v=%s"
|
|
|
- % video_id], stderr=stderr).strip()
|
|
|
+ % video_id], stderr=stderr)
|
|
|
except subprocess.CalledProcessError:
|
|
|
raise stov_exceptions.YoutubeDlCallFailed()
|
|
|
else:
|
|
|
+ video_title = video_title.decode(sys.stdout.encoding)
|
|
|
+ video_description = video_description.decode(
|
|
|
+ sys.stdout.encoding)
|
|
|
videos_list.append(YtVideo(
|
|
|
video_title,
|
|
|
video_description,
|