nasa / apod-api

Astronomy Picture of the Day API service
Apache License 2.0
833 stars 162 forks source link

\nCredit: or \r\nCredit and Copyright: appearing in title data #36

Open punpunkore opened 4 years ago

punpunkore commented 4 years ago

RE: https://github.com/nasa/apod-api/pull/34 but unrelated to that pr

There are some issues with \r \n popping up with Credit or Credit and Copyright in the title fields...

e.g. https://api.nasa.gov/planetary/apod?api_key=ENTER_YOUR_DEV_API_KEY&date=1996-09-25 "title": "Bright Stars and Dark Clouds\nCredit:",

https://api.nasa.gov/planetary/apod?api_key=ENTER_YOUR_DEV_API_KEY&date=1996-09-26 "title": "Tonight: A Total Lunar Eclipse \r\nCredit and Copyright:",

StellarStoic commented 1 year ago

If my API request failed to get copyright data, I'm posting and let people know that API request failed to get copyright holder. I also atach the link to APOD, so if they want to know who took the shot.