[YoutubeDL] Add support for playlist_uploader and playlist_uploader_id in output...
authorSergey M․ <dstftw@gmail.com>
Mon, 18 Dec 2017 20:53:44 +0000 (03:53 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 18 Dec 2017 20:53:44 +0000 (03:53 +0700)
README.md
youtube_dl/YoutubeDL.py

index cd30d147a9bb5a40500d899e196647564bad80b5..47b0640abfd179a13909835e2e05af589bb60e6d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -539,6 +539,8 @@ The basic usage is not to set any template arguments when downloading a single f
  - `playlist_index` (numeric): Index of the video in the playlist padded with leading zeros according to the total length of the playlist
  - `playlist_id` (string): Playlist identifier
  - `playlist_title` (string): Playlist title
+ - `playlist_uploader` (string): Full name of the playlist uploader
+ - `playlist_uploader_id` (string): Nickname or id of the playlist uploader
 
 Available for the video that belongs to some logical chapter or section:
 
index 68721e9ab81a3bbebac8846d52ed6bd7f92e05c9..ace80f14b8bdac8dca7c3d87e08179ead17c5c02 100755 (executable)
@@ -975,6 +975,8 @@ class YoutubeDL(object):
                     'playlist': playlist,
                     'playlist_id': ie_result.get('id'),
                     'playlist_title': ie_result.get('title'),
+                    'playlist_uploader': ie_result.get('uploader'),
+                    'playlist_uploader_id': ie_result.get('uploader_id'),
                     'playlist_index': i + playliststart,
                     'extractor': ie_result['extractor'],
                     'webpage_url': ie_result['webpage_url'],