Allow setting source URL in file: to correctly resolve paths
This commit is contained in:
parent
749ad7b9da
commit
e9054f8541
1 changed files with 3 additions and 0 deletions
|
@ -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())
|
||||||
|
|
Loading…
Reference in a new issue