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:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user