Skip to content

Commit

Permalink
Fix owner and generator tags
Browse files Browse the repository at this point in the history
  • Loading branch information
rasa committed Jan 5, 2019
1 parent a2ca676 commit b1735a3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ const (
defaultMimeType = "image/jpeg"
defaultYAML = "default.yaml"
durationMask = "%02d:%02d:%02d"
feedsterURL = "https://github.com/rasa/feedster"
localYAML = "local.yaml"

outputFileMask = "%s%s.xml"
Expand Down Expand Up @@ -82,12 +83,13 @@ type Default struct {
}

var initDefaults = &Default{
Complete: "yes",
Complete: "no",
CopyrightMask: "Copyright (c) & (p) %d, %s", // or: Copyright © & ℗ %d, %s
DiscNumber: "1",
EncodedBy: "Encoded by feedster " + version.VERSION,
Explicit: "no",
Ffprobe: "ffprobe",
Generator: "feedster " + version.VERSION + " (" + feedsterURL + ")",
Language: "en-us",
TotalDiscs: "true",
TotalTracks: "true",
Expand Down Expand Up @@ -582,7 +584,7 @@ func setPodcast(p *podcast.Podcast, fp *fpodcast.Podcast) {
p.TTL = fp.TTL
p.WebMaster = fp.WebMaster

p.IAuthor = fp.IAuthor
p.AddAuthor(fp.IOwner.Name, fp.IOwner.Email)
p.AddSubTitle(fp.ISubtitle)
p.IBlock = fp.IBlock
p.IDuration = fp.IDuration
Expand All @@ -607,7 +609,7 @@ func setPodcast(p *podcast.Podcast, fp *fpodcast.Podcast) {
}

if fp.IOwner != nil {
p.AddAuthor(fp.IOwner.Name, fp.IOwner.Email)
p.IOwner = &podcast.Author{Name: fp.IOwner.Name, Email: fp.IOwner.Email}
}
}

Expand Down

0 comments on commit b1735a3

Please sign in to comment.