Skip to content

Commit

Permalink
Defer handling of missing feed image urls
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnisi committed Jan 1, 2022
1 parent 1441471 commit bfa4297
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 1.1.2 (planned)

Tolerate feeds without images.

## 1.1.1 (2021-12-19)

Extract podcast app core functionality from Podest into this package.
12 changes: 6 additions & 6 deletions Sources/Podcasts/Playback/Images.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ extension Entry: Imaginable {
return ImageURLs(
id: feed.hash,
title: title,
small: feedImage!,
medium: feedImage!,
large: feedImage!
small: feedImage ?? "",
medium: feedImage ?? "",
large: feedImage ?? ""
)
}

Expand All @@ -40,9 +40,9 @@ extension Feed: Imaginable {
return ImageURLs(
id: url.hash,
title: title,
small: image!,
medium: image!,
large: image!
small: image ?? "",
medium: image ?? "",
large: image ?? ""
)
}

Expand Down

0 comments on commit bfa4297

Please sign in to comment.