thundercomb / poetrydb

The Internet's first Poetry API
http://poetrydb.org
GNU General Public License v2.0
523 stars 35 forks source link

Correct linecount causes 404 #9

Closed ogand-anton closed 4 years ago

ogand-anton commented 7 years ago

The following request returns a poem that is 200 lines long (as indicated by its return linecount): http://poetrydb.org/author,title/Algernon%20Charles%20Swinburne;Hymn%20Of%20Man/all.json

However, when I make the request below including the linecount as a search term, a 404 is returned: http://poetrydb.org/author,title,linecount/Algernon%20Charles%20Swinburne;Hymn%20Of%20Man;200/all.json

Any ideas?

thundercomb commented 7 years ago

Hi Anton, thanks for reporting - I agree that doesn't look right. There are some quirks related to linecount, but I'll have to dig into it when I have a bit of time to clarify the problem.

ogand-anton commented 7 years ago

That's OK. I can work around it. I wonder if it has anything to do with titles with spaces.

Really appreciate this API, btw.

thundercomb commented 7 years ago

Glad it's useful to you!

Thanks for the feedback, when I get a chance I'll dig into it a bit.

thundercomb commented 4 years ago

There have been updates to the way linecount works, and this now works as expected. Let me know if you have any further queries about this.