fix issue with breaking itunes image

pull/142/head
Akhil Gupta 3 years ago
parent 3ffdf5a3ec
commit 06feb39820

@ -14,7 +14,7 @@
</a> --> </a> -->
<h1 align="center" style="margin-bottom:0px">Podgrab</h1> <h1 align="center" style="margin-bottom:0px">Podgrab</h1>
<p align="center">Current Version -2021.08.13</p> <p align="center">Current Version -2021.08.25</p>
<p align="center"> <p align="center">
A self-hosted podcast manager to download episodes as soon as they become live A self-hosted podcast manager to download episodes as soon as they become live

@ -132,7 +132,7 @@
<table> <table>
<tr> <tr>
<td>Current Version</td> <td>Current Version</td>
<td> 2021.08.13</td> <td> 2021.08.25</td>
</tr> </tr>
<tr> <tr>
<td>Website</td> <td>Website</td>

@ -185,6 +185,9 @@ func getItunesImageUrl(body []byte) string {
} }
iimage := channel.SelectElement("itunes:image") iimage := channel.SelectElement("itunes:image")
if iimage == nil {
return ""
}
for _, attr := range iimage.Attr { for _, attr := range iimage.Attr {
if attr.Name.Local == "href" { if attr.Name.Local == "href" {
return attr.Value return attr.Value

Loading…
Cancel
Save