janw/podcast-archiver

View on GitHub
podcast_archiver/models/episode.py

Summary

Maintainability
A
25 mins
Test Coverage

Showing 1 of 1 total issue

Function populate_enclosure has a Cognitive Complexity of 9 (exceeds 8 allowed). Consider refactoring.
Open

def populate_enclosure(self) -> BaseEpisode:
for link in self.links:
if link.rel != "enclosure":
continue
parsed_url = urlparse(link.href)
Severity: Minor
Found in podcast_archiver/models/episode.py - About 25 mins to fix
Category
Status