GoogleBooks icon indicating copy to clipboard operation
GoogleBooks copied to clipboard

Fixed awkward title when subtitle is an empty string

Open araishikeiwai opened this issue 8 years ago • 0 comments

Sometimes, the subtitle given by the Google Books API is an empty string (e.g. https://www.googleapis.com/books/v1/volumes?q=isbn:9786029225938).

This PR tries to fix the awkward resulting title due to no empty string checking when building the title.

Before: item.title would yield "And The Mountains Echoed: " After: item.title would yield "And The Mountains Echoed"

araishikeiwai avatar Sep 22 '17 03:09 araishikeiwai