mirror of
https://github.com/mxpv/podsync.git
synced 2024-05-11 05:55:04 +00:00
Optional inclusion of feeds into an opml file (#114)
This commit is contained in:
@@ -80,6 +80,10 @@ func (l *Local) URL(ctx context.Context, ns string, fileName string) (string, er
|
||||
return "", errors.Wrap(err, "failed to check whether file exists")
|
||||
}
|
||||
|
||||
if ns == "" {
|
||||
return fmt.Sprintf("%s/%s", l.hostname, fileName), nil
|
||||
}
|
||||
|
||||
return fmt.Sprintf("%s/%s/%s", l.hostname, ns, fileName), nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user