Skip to content

Conversation

@tpikonen
Copy link
Contributor

RSS episodes which have no media and have an empty or non-existing link element cause an exception in youtube_dl.is_supported_url(). In this case None is passed as the url argument.

This patch makes is_supported_url() return False when url is None.

Return False when url is None. The url can be None for example when an
episode.link attribute is tested for supported media in
PodcastEpisode.from_podcastparser_entry().
@tpikonen
Copy link
Contributor Author

Fixed the class name in the commit message.

@auouymous
Copy link
Member

The commit says episode.link but the method only tests episode.url, is this possible in master branch, or is it to fix an unreleased change?

@tpikonen
Copy link
Contributor Author

See these lines in PodcastEpisode.from_podcastparser_entry(). The url is temporarily switched to the link when testing the link for compatible media.

@auouymous auouymous merged commit c8a9ed7 into gpodder:master Mar 30, 2022
@auouymous
Copy link
Member

Ah, thanks for the fix.

@tpikonen tpikonen deleted the link-none branch March 30, 2022 08:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants