1
0
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:
delaosa
2020-04-15 22:26:08 +02:00
committed by GitHub
parent 26e3ed40bf
commit 01b2f8daf5
5 changed files with 99 additions and 0 deletions

View File

@@ -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
}