Fixing typos
This commit is contained in:
parent
6deb5f2ac0
commit
bb8acd750c
@ -16,6 +16,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
- Changed serveFeedauthor parameter for author.
|
||||
- Adding host parameter.
|
||||
- Start using go modules.
|
||||
- Fixing typo in file extension gif
|
||||
- The memetype for FB2 changed to text/fb2+xml
|
||||
|
||||
### Removed
|
||||
- vendor folder.
|
||||
|
4
main.go
4
main.go
@ -56,7 +56,7 @@ type acquisitionFeed struct {
|
||||
func init() {
|
||||
mime.AddExtensionType(".mobi", "application/x-mobipocket-ebook")
|
||||
mime.AddExtensionType(".epub", "application/epub+zip")
|
||||
mime.AddExtensionType(".fb2", "txt/xml")
|
||||
mime.AddExtensionType(".fb2", "text/fb2+xml")
|
||||
}
|
||||
|
||||
func main() {
|
||||
@ -142,7 +142,7 @@ func getRel(name string, acquisition bool) (rel string) {
|
||||
return
|
||||
}
|
||||
ext := filepath.Ext(name)
|
||||
if rel = "http://opds-spec.org/acquisition"; ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gift" {
|
||||
if rel = "http://opds-spec.org/acquisition"; ext == ".png" || ext == ".jpg" || ext == ".jpeg" || ext == ".gif" {
|
||||
rel = "http://opds-spec.org/image/thumbnail"
|
||||
}
|
||||
return
|
||||
|
Loading…
Reference in New Issue
Block a user