Skip to content
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

Merged
merged 5 commits into from
Dec 19, 2020
Merged

[Generic] Fix RSS item thumbnail URL #27405

merged 5 commits into from
Dec 19, 2020

Conversation

renalid
Copy link
Contributor

@renalid renalid commented Dec 13, 2020

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

  • You will be asked some questions, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your pull request (like that [x])
  • Use Preview tab to see how your pull request will actually look like

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:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

  • Bug fix
  • Improvement
  • New extractor
  • New feature

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)

The thumbnail url of an item in RSS feed is in "href" attribute (not directly in the itunes:image tag)
@dstftw
Copy link
Collaborator

dstftw commented Dec 13, 2020

Add a test.

Change upload_date (compat_str previously failed) and add thumbnail
'duration': float,
'thumbnail': None,
Copy link
Collaborator

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.

Copy link
Contributor Author

@renalid renalid Dec 13, 2020

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 ?

Copy link
Collaborator

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
@renalid renalid requested a review from dstftw December 13, 2020 18:23
@renalid
Copy link
Contributor Author

renalid commented Dec 16, 2020

@dstftw I added a new test. Thanks :-)

youtube_dl/extractor/generic.py Outdated Show resolved Hide resolved
@renalid
Copy link
Contributor Author

renalid commented Dec 19, 2020

@dstftw requested change done 😊

@dstftw dstftw merged commit 71679ea into ytdl-org:master Dec 19, 2020
ThirumalaiK pushed a commit to ThirumalaiK/youtube-dl that referenced this pull request Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants