mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2026-04-30 12:36:03 +00:00
Compare commits
2 Commits
a7bde7271d
...
7f0f9a36a9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7f0f9a36a9 | ||
|
|
4b52c27a17 |
@ -372,6 +372,7 @@ class SoundcloudBaseIE(InfoExtractor):
|
|||||||
'repost_count': extract_count('reposts'),
|
'repost_count': extract_count('reposts'),
|
||||||
'genres': traverse_obj(info, ('genre', {str}, filter, all, filter)),
|
'genres': traverse_obj(info, ('genre', {str}, filter, all, filter)),
|
||||||
'artists': traverse_obj(info, ('publisher_metadata', 'artist', {str}, filter, all, filter)),
|
'artists': traverse_obj(info, ('publisher_metadata', 'artist', {str}, filter, all, filter)),
|
||||||
|
'track': info.get('title'),
|
||||||
'formats': formats if not extract_flat else None,
|
'formats': formats if not extract_flat else None,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -423,6 +424,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'repost_count': int,
|
'repost_count': int,
|
||||||
'thumbnail': 'https://i1.sndcdn.com/artworks-000031955188-rwb18x-original.jpg',
|
'thumbnail': 'https://i1.sndcdn.com/artworks-000031955188-rwb18x-original.jpg',
|
||||||
'uploader_url': 'https://soundcloud.com/ethmusic',
|
'uploader_url': 'https://soundcloud.com/ethmusic',
|
||||||
|
'track': 'Lostin Powers - She so Heavy (SneakPreview) Adrian Ackers Blueprint 1',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# geo-restricted
|
# geo-restricted
|
||||||
@ -447,6 +449,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'thumbnail': 'https://i1.sndcdn.com/artworks-v8bFHhXm7Au6-0-original.jpg',
|
'thumbnail': 'https://i1.sndcdn.com/artworks-v8bFHhXm7Au6-0-original.jpg',
|
||||||
'genres': ['Alternative'],
|
'genres': ['Alternative'],
|
||||||
'artists': ['The Royal Concept'],
|
'artists': ['The Royal Concept'],
|
||||||
|
'track': 'Goldrushed',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# private link
|
# private link
|
||||||
@ -471,6 +474,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'uploader_url': 'https://soundcloud.com/jaimemf',
|
'uploader_url': 'https://soundcloud.com/jaimemf',
|
||||||
'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
|
'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
|
||||||
'genres': ['youtubedl'],
|
'genres': ['youtubedl'],
|
||||||
|
'track': 'Youtube - Dl Test Video \'\' Ä↭',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# private link (alt format)
|
# private link (alt format)
|
||||||
@ -495,6 +499,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'uploader_url': 'https://soundcloud.com/jaimemf',
|
'uploader_url': 'https://soundcloud.com/jaimemf',
|
||||||
'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
|
'thumbnail': 'https://a1.sndcdn.com/images/default_avatar_large.png',
|
||||||
'genres': ['youtubedl'],
|
'genres': ['youtubedl'],
|
||||||
|
'track': 'Youtube - Dl Test Video \'\' Ä↭',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# downloadable song
|
# downloadable song
|
||||||
@ -520,6 +525,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'view_count': int,
|
'view_count': int,
|
||||||
'genres': ['Dance & EDM'],
|
'genres': ['Dance & EDM'],
|
||||||
'artists': ['80M'],
|
'artists': ['80M'],
|
||||||
|
'track': 'The Following',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# private link, downloadable format
|
# private link, downloadable format
|
||||||
@ -545,6 +551,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'uploader_url': 'https://soundcloud.com/oriuplift',
|
'uploader_url': 'https://soundcloud.com/oriuplift',
|
||||||
'genres': ['Trance'],
|
'genres': ['Trance'],
|
||||||
'artists': ['Ori Uplift'],
|
'artists': ['Ori Uplift'],
|
||||||
|
'track': 'Uplifting Only 238 [No Talking] (incl. Alex Feed Guestmix) (Aug 31, 2017) [wav]',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
# no album art, use avatar pic for thumbnail
|
# no album art, use avatar pic for thumbnail
|
||||||
@ -569,6 +576,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'repost_count': int,
|
'repost_count': int,
|
||||||
'uploader_url': 'https://soundcloud.com/garyvee',
|
'uploader_url': 'https://soundcloud.com/garyvee',
|
||||||
'artists': ['MadReal'],
|
'artists': ['MadReal'],
|
||||||
|
'track': 'Sideways (Prod. Mad Real)',
|
||||||
},
|
},
|
||||||
'params': {
|
'params': {
|
||||||
'skip_download': True,
|
'skip_download': True,
|
||||||
@ -595,6 +603,7 @@ class SoundcloudIE(SoundcloudBaseIE):
|
|||||||
'repost_count': int,
|
'repost_count': int,
|
||||||
'genres': ['Piano'],
|
'genres': ['Piano'],
|
||||||
'uploader_url': 'https://soundcloud.com/giovannisarani',
|
'uploader_url': 'https://soundcloud.com/giovannisarani',
|
||||||
|
'track': 'Mezzo Valzer',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -672,8 +681,14 @@ class SoundcloudPlaylistBaseIE(SoundcloudBaseIE):
|
|||||||
entries, playlist_id,
|
entries, playlist_id,
|
||||||
playlist.get('title'),
|
playlist.get('title'),
|
||||||
playlist.get('description'),
|
playlist.get('description'),
|
||||||
uploader=traverse_obj(playlist, ('user', 'username')),
|
**(traverse_obj(playlist, {
|
||||||
uploader_id=str_or_none(traverse_obj(playlist, ('user', 'id'))))
|
'uploader': ('user', 'username', {str}),
|
||||||
|
'uploader_id': ('user', 'id', {str_or_none}),
|
||||||
|
'album': ('title', {str}),
|
||||||
|
'album_artist': ('user', 'username', {str}),
|
||||||
|
'album_type': ('set_type', {str}),
|
||||||
|
})),
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
||||||
@ -687,6 +702,9 @@ class SoundcloudSetIE(SoundcloudPlaylistBaseIE):
|
|||||||
'description': 'md5:71d07087c7a449e8941a70a29e34671e',
|
'description': 'md5:71d07087c7a449e8941a70a29e34671e',
|
||||||
'uploader': 'The Royal Concept',
|
'uploader': 'The Royal Concept',
|
||||||
'uploader_id': '9615865',
|
'uploader_id': '9615865',
|
||||||
|
'album': 'The Royal Concept EP',
|
||||||
|
'album_artists': ['The Royal Concept'],
|
||||||
|
'album_type': 'ep',
|
||||||
},
|
},
|
||||||
'playlist_mincount': 5,
|
'playlist_mincount': 5,
|
||||||
}, {
|
}, {
|
||||||
@ -966,6 +984,9 @@ class SoundcloudPlaylistIE(SoundcloudPlaylistBaseIE):
|
|||||||
'description': 're:.*?TILT Brass - Bowery Poetry Club',
|
'description': 're:.*?TILT Brass - Bowery Poetry Club',
|
||||||
'uploader': 'Non-Site Records',
|
'uploader': 'Non-Site Records',
|
||||||
'uploader_id': '33660914',
|
'uploader_id': '33660914',
|
||||||
|
'album_artists': ['Non-Site Records'],
|
||||||
|
'album_type': '',
|
||||||
|
'album': 'TILT Brass - Bowery Poetry Club, August \'03 [Non-Site SCR 02]',
|
||||||
},
|
},
|
||||||
'playlist_count': 6,
|
'playlist_count': 6,
|
||||||
}]
|
}]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user