mirror of https://github.com/fmartingr/shiori.git
Merge pull request #246 from Midek/master
update url also when offline mode
This commit is contained in:
commit
4ff6ddd65a
|
@ -247,6 +247,11 @@ func updateHandler(cmd *cobra.Command, args []string) {
|
||||||
book.Excerpt = excerpt
|
book.Excerpt = excerpt
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If user submits url, use it
|
||||||
|
if url != "" {
|
||||||
|
book.URL = url
|
||||||
|
}
|
||||||
|
|
||||||
// Make sure title is valid and not empty
|
// Make sure title is valid and not empty
|
||||||
book.Title = validateTitle(book.Title, book.URL)
|
book.Title = validateTitle(book.Title, book.URL)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue