1
0
mirror of https://github.com/mxpv/podsync.git synced 2024-05-11 05:55:04 +00:00

Support language tag customization

This commit is contained in:
Maksym Pavlenko
2019-02-24 13:30:53 -08:00
parent 07a1d1c353
commit f5764e3fe4
2 changed files with 5 additions and 0 deletions

View File

@@ -230,6 +230,10 @@ func (yt *YouTubeBuilder) queryFeed(feed *model.Feed) (*itunes.Podcast, string,
podcast.IExplicit = "no"
}
if feed.Language != "" {
podcast.Language = feed.Language
}
return &podcast, itemID, nil
}

View File

@@ -35,4 +35,5 @@ type Feed struct {
ExpirationTime time.Time `sql:"-" dynamodbav:",unixtime"`
CoverArt string `dynamodbav:",omitempty"`
Explicit bool
Language string `dynamodbav:",omitempty"` // ISO 639
}