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
1 changed files with 3 additions and 0 deletions

View File

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