Allow setting source URL in file: to correctly resolve paths

This commit is contained in:
Cat /dev/Nulo 2022-12-20 17:35:36 -03:00
parent 749ad7b9da
commit e9054f8541

View file

@ -121,6 +121,9 @@ func main() {
bytes, err = ioutil.ReadFile(source.Opaque) bytes, err = ioutil.ReadFile(source.Opaque)
if err == nil { if err == nil {
feed, err = rss.Parse(bytes) feed, err = rss.Parse(bytes)
if err == nil {
feed.UpdateURL = source.Query().Get("url")
}
} }
} else { } else {
feed, err = rss.Fetch(source.String()) feed, err = rss.Fetch(source.String())