From 06feb398200ad1679833dfd8df8aeacd6e96f7aa Mon Sep 17 00:00:00 2001 From: Akhil Gupta Date: Wed, 25 Aug 2021 12:40:41 +0530 Subject: [PATCH] fix issue with breaking itunes image --- Readme.md | 2 +- client/settings.html | 2 +- service/podcastService.go | 3 +++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Readme.md b/Readme.md index f579087..0261ef5 100644 --- a/Readme.md +++ b/Readme.md @@ -14,7 +14,7 @@ -->

Podgrab

-

Current Version -2021.08.13

+

Current Version -2021.08.25

A self-hosted podcast manager to download episodes as soon as they become live diff --git a/client/settings.html b/client/settings.html index b4fc3ec..8dcee6f 100644 --- a/client/settings.html +++ b/client/settings.html @@ -132,7 +132,7 @@ - + diff --git a/service/podcastService.go b/service/podcastService.go index c14b099..d87b3c0 100644 --- a/service/podcastService.go +++ b/service/podcastService.go @@ -185,6 +185,9 @@ func getItunesImageUrl(body []byte) string { } iimage := channel.SelectElement("itunes:image") + if iimage == nil { + return "" + } for _, attr := range iimage.Attr { if attr.Name.Local == "href" { return attr.Value
Current Version 2021.08.13 2021.08.25
Website