diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-10 16:11:28 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-10 16:11:28 +0800 |
commit | 09728d5fbc93c769b3f8971c06e9ed0bfb168b37 (patch) | |
tree | 878ec31b1d68a16b516407ceadee97cfbbeddfcb | |
parent | c16f8a4659566fd7421226b0d5ddb871425b392b (diff) |
[audiomack:album] Force video_id to be strings
Related: be6217b26142491232fb697b125015d45437832d
-rw-r--r-- | youtube_dl/extractor/audiomack.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/audiomack.py b/youtube_dl/extractor/audiomack.py index a52d26cec..f3bd4d444 100644 --- a/youtube_dl/extractor/audiomack.py +++ b/youtube_dl/extractor/audiomack.py @@ -6,6 +6,7 @@ import time from .common import InfoExtractor from .soundcloud import SoundcloudIE +from ..compat import compat_str from ..utils import ( ExtractorError, url_basename, @@ -136,7 +137,7 @@ class AudiomackAlbumIE(InfoExtractor): result[resultkey] = api_response[apikey] song_id = url_basename(api_response['url']).rpartition('.')[0] result['entries'].append({ - 'id': api_response.get('id', song_id), + 'id': compat_str(api_response.get('id', song_id)), 'uploader': api_response.get('artist'), 'title': api_response.get('title', song_id), 'url': api_response['url'], |