Skip to content

Commit

Permalink
Correct noimage to nophoto
Browse files Browse the repository at this point in the history
  • Loading branch information
ahobsonsayers committed Apr 19, 2024
1 parent 0193dac commit f8e71b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goodreads/book.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (e *Edition) Sanitise() {
// https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216l/5907._SX98_.jpg"
// Should be:
// "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1546071216l/5907.jpg"
if strings.Contains(e.ImageURL, "noimage") {
if strings.Contains(e.ImageURL, "nophoto") {
e.ImageURL = ""
} else {
e.ImageURL = imageUrlRegex.ReplaceAllString(e.ImageURL, "$1.$2")
Expand Down

0 comments on commit f8e71b6

Please sign in to comment.