projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[brightcove] Improve embed detection (closes #25674)
[youtube-dl]
/
youtube_dl
/
extractor
/
audiomack.py
diff --git
a/youtube_dl/extractor/audiomack.py
b/youtube_dl/extractor/audiomack.py
index a52d26cecd1e98f8d4a902ed4e8051a42e21e200..cc7771354c10b39778f0b2dcad55052db42066b3 100644
(file)
--- 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 .common import InfoExtractor
from .soundcloud import SoundcloudIE
+from ..compat import compat_str
from ..utils import (
ExtractorError,
url_basename,
from ..utils import (
ExtractorError,
url_basename,
@@
-61,10
+62,10
@@
class AudiomackIE(InfoExtractor):
# Audiomack wraps a lot of soundcloud tracks in their branded wrapper
# if so, pass the work off to the soundcloud extractor
if SoundcloudIE.suitable(api_response['url']):
# Audiomack wraps a lot of soundcloud tracks in their branded wrapper
# if so, pass the work off to the soundcloud extractor
if SoundcloudIE.suitable(api_response['url']):
- return
{'_type': 'url', 'url': api_response['url'], 'ie_key': 'Soundcloud'}
+ return
self.url_result(api_response['url'], SoundcloudIE.ie_key())
return {
return {
- 'id':
api_response.get('id', album_url_tag
),
+ 'id':
compat_str(api_response.get('id', album_url_tag)
),
'uploader': api_response.get('artist'),
'title': api_response.get('title'),
'url': api_response['url'],
'uploader': api_response.get('artist'),
'title': api_response.get('title'),
'url': api_response['url'],
@@
-136,7
+137,7
@@
class AudiomackAlbumIE(InfoExtractor):
result[resultkey] = api_response[apikey]
song_id = url_basename(api_response['url']).rpartition('.')[0]
result['entries'].append({
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'],
'uploader': api_response.get('artist'),
'title': api_response.get('title', song_id),
'url': api_response['url'],