Add support for images
This commit is contained in:
parent
5016f576b9
commit
fb37a9ee88
7 changed files with 336 additions and 4 deletions
10
feeds.go
10
feeds.go
|
|
@ -36,11 +36,19 @@ func AddFeedToDB(feedURL string) error {
|
|||
}
|
||||
|
||||
// Add extensions to the database
|
||||
log.Printf("Adding extensions to the database")
|
||||
addFeedExtensionToDB(ctx, feed, newFeed)
|
||||
|
||||
// Add authors to the database
|
||||
log.Printf("Adding authors to the database")
|
||||
addFeedAuthors(ctx, feed, newFeed)
|
||||
|
||||
fmt.Println(feed.Title)
|
||||
// TODO: Add categories to the database
|
||||
|
||||
// Add images to the database
|
||||
log.Printf("Adding images to the database")
|
||||
addFeedImages(ctx, feed, newFeed)
|
||||
|
||||
log.Printf("Feed added to database")
|
||||
return nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue