Skip to content

Commit

Permalink
Fix requesting album artwork when the metadata is empty
Browse files Browse the repository at this point in the history
  • Loading branch information
fethica committed Dec 30, 2017
1 parent e4c7851 commit ac4b9b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/FRadioAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ internal struct FRadioAPI {

static func getArtwork(for metadata: String, size: Int, completionHandler: @escaping (_ artworkURL: URL?) -> ()) {

guard let url = getURL(with: metadata) else {
guard !metadata.isEmpty, metadata != " - ", let url = getURL(with: metadata) else {
completionHandler(nil)
return
}
Expand Down

0 comments on commit ac4b9b5

Please sign in to comment.