store podcast url
This commit is contained in:
parent
2e4082df77
commit
91deb41d5b
1 changed files with 5 additions and 1 deletions
|
|
@ -134,6 +134,10 @@ func ConvertItems(items []parser.Item, feed storage.Feed) []storage.Item {
|
|||
result := make([]storage.Item, len(items))
|
||||
for i, item := range items {
|
||||
item := item
|
||||
var podcastURL *string = nil
|
||||
if item.AudioURL != "" {
|
||||
podcastURL = &item.AudioURL
|
||||
}
|
||||
result[i] = storage.Item{
|
||||
GUID: item.GUID,
|
||||
FeedId: feed.Id,
|
||||
|
|
@ -145,7 +149,7 @@ func ConvertItems(items []parser.Item, feed storage.Feed) []storage.Item {
|
|||
Date: &item.Date,
|
||||
Status: storage.UNREAD,
|
||||
Image: item.ImageURL,
|
||||
PodcastURL: nil,
|
||||
PodcastURL: podcastURL,
|
||||
}
|
||||
}
|
||||
return result
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue