mirror of
https://github.com/go-shiori/shiori.git
synced 2024-11-10 17:36:02 +08:00
Merge pull request #246 from Midek/master
update url also when offline mode
This commit is contained in:
commit
4ff6ddd65a
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue