Skip to content

Commit b1735a3

Browse files
committed
Fix owner and generator tags
1 parent a2ca676 commit b1735a3

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

main.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ const (
3838
defaultMimeType = "image/jpeg"
3939
defaultYAML = "default.yaml"
4040
durationMask = "%02d:%02d:%02d"
41+
feedsterURL = "https://github.com/rasa/feedster"
4142
localYAML = "local.yaml"
4243

4344
outputFileMask = "%s%s.xml"
@@ -82,12 +83,13 @@ type Default struct {
8283
}
8384

8485
var initDefaults = &Default{
85-
Complete: "yes",
86+
Complete: "no",
8687
CopyrightMask: "Copyright (c) & (p) %d, %s", // or: Copyright © & ℗ %d, %s
8788
DiscNumber: "1",
8889
EncodedBy: "Encoded by feedster " + version.VERSION,
8990
Explicit: "no",
9091
Ffprobe: "ffprobe",
92+
Generator: "feedster " + version.VERSION + " (" + feedsterURL + ")",
9193
Language: "en-us",
9294
TotalDiscs: "true",
9395
TotalTracks: "true",
@@ -582,7 +584,7 @@ func setPodcast(p *podcast.Podcast, fp *fpodcast.Podcast) {
582584
p.TTL = fp.TTL
583585
p.WebMaster = fp.WebMaster
584586

585-
p.IAuthor = fp.IAuthor
587+
p.AddAuthor(fp.IOwner.Name, fp.IOwner.Email)
586588
p.AddSubTitle(fp.ISubtitle)
587589
p.IBlock = fp.IBlock
588590
p.IDuration = fp.IDuration
@@ -607,7 +609,7 @@ func setPodcast(p *podcast.Podcast, fp *fpodcast.Podcast) {
607609
}
608610

609611
if fp.IOwner != nil {
610-
p.AddAuthor(fp.IOwner.Name, fp.IOwner.Email)
612+
p.IOwner = &podcast.Author{Name: fp.IOwner.Name, Email: fp.IOwner.Email}
611613
}
612614
}
613615

0 commit comments

Comments
 (0)