mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-17 20:00:14 +00:00
unsset audio/image if present in the content
This commit is contained in:
@@ -77,11 +77,9 @@ func ParseRSS(r io.Reader) (*Feed, error) {
|
||||
if e.Type == "audio/mpeg" || e.Type == "audio/x-m4a" {
|
||||
podcastURL = e.URL
|
||||
|
||||
origBase := path.Base(srcitem.OrigEnclosureLink)
|
||||
if origBase != "" && strings.Contains(podcastURL, origBase) {
|
||||
if srcitem.OrigEnclosureLink != "" && strings.Contains(podcastURL, path.Base(srcitem.OrigEnclosureLink)) {
|
||||
podcastURL = srcitem.OrigEnclosureLink
|
||||
}
|
||||
|
||||
break
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user