-
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
[Generic] Fix RSS item thumbnail URL #27405
Conversation
The thumbnail url of an item in RSS feed is in "href" attribute (not directly in the itunes:image tag)
Add a test. |
Change upload_date (compat_str previously failed) and add thumbnail
youtube_dl/extractor/generic.py
Outdated
'duration': float, | ||
'thumbnail': None, |
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.
This make zero sense. You must add a test that will test the changes made.
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.
@dstftw yes, you are right. Can I add another RSS feed, because this one don't get thumbnail image ?
Or I can update the test of this one http://www.hellointernet.fm/podcast?format=rss ?
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.
You can use any existing RSS test with thumbnail available or add a new if there are no such tests.
Add unit test to check item thumbnail
@dstftw I added a new test. Thanks :-) |
@dstftw requested change done 😊 |
The thumbnail url of an item in RSS feed is in "href" attribute (not directly in the itunes:image tag)
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
The thumbnail url of an item in RSS feed is in "href" attribute (not directly in the itunes:image tag)