-
Notifications
You must be signed in to change notification settings - Fork 10k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[youtube] fixed --flat-playlist always showing uploader as none #28045
Conversation
Hey, thanks for your PR! Please prefix your commit message (and PR title) with |
woops sorry, updated. |
e7c5de2
to
35b6113
Compare
Also got rid of the extra 2 commits i accidentally created when attempting to rename the commit. |
Add test. |
def test_youtube_flat_playlist_uploaders(self): | ||
dl = FakeYDL() | ||
dl.params['extract_flat'] = True | ||
ie = YoutubeTabIE(dl) | ||
result = ie.extract('https://www.youtube.com/playlist?list=PL2zzFmCbIz4fshCLrvopue-wDeKQ5ERKO') | ||
self.assertIsPlaylist(result) | ||
for entry in result['entries']: | ||
if entry['title'] not in ('[Deleted video]', '[Private video]'): | ||
self.assertTrue(entry.get('uploader')) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Test should be added to Use one of the youtube-dl's test playlists for testing, e.g. https://www.youtube.com/playlist?list=PL4lCao7KL_QFVb7Iudeipvc2BCavECqzc._TESTS
of extractor class.
Please follow the guide below
x
into all the boxes [ ] relevant to your pull request (like that [x])Before submitting a pull request make sure you have:
In order to be accepted and merged into youtube-dl each piece of code must be in public domain or released under Unlicense. Check one of the following options:
What is the purpose of your pull request?
Description of your pull request and other information
running:
prior to the bugfix would always have "uploader": none in each playlist item. post fix the proper uploader will appear in said field