Skip to content

Commit

Permalink
Merge pull request go-shiori#246 from Midek/master
Browse files Browse the repository at this point in the history
update url also when offline mode
  • Loading branch information
deanishe authored Aug 6, 2020
2 parents 3d74038 + 3fe593d commit 4ff6ddd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/cmd/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,11 @@ func updateHandler(cmd *cobra.Command, args []string) {
book.Excerpt = excerpt
}

// If user submits url, use it
if url != "" {
book.URL = url
}

// Make sure title is valid and not empty
book.Title = validateTitle(book.Title, book.URL)

Expand Down

0 comments on commit 4ff6ddd

Please sign in to comment.