Podcastindex-org / docs-api

Developer documentation for the podcastindex.org api.
https://podcastindex-org.github.io/docs-api/
MIT License
54 stars 30 forks source link

Strange issue with /search/byperson #99

Closed pluto-dev closed 1 year ago

pluto-dev commented 1 year ago

I was playing around with the API today, and tested the /search/byperson endpoint. It seems like something happen by fixing #97

A simple call to https://api.podcastindex.org/api/1.0/search/byperson?q=adamcurry&pretty gave me following response (I cropped it to one result):

{
    "status": "true",
    "items": {
        "14658795158": {
            "id": 14658795158,
            "title": "#409: Talking Value 4 Value with the Podfather Adam Curry",
            "link": "https:\/\/podcasters.spotify.com\/pod\/show\/tales-from-the-crypt\/episodes\/409-Talking-Value-4-Value-with-the-Podfather-Adam-Curry-e21ou69",
            "description": "<p>Join Marty as he sits down with Adam Curry to discuss Podcasting 2.0, Value 4 Value, Bitcoin, energy, culture, and much more.<\/p>\n<p><br><\/p>\n<p>Adam Curry on Twitter: https:\/\/twitter.com\/adamcurry<\/p>\n<p>No Agenda Show: https:\/\/www.noagendashow.net\/<\/p>\n<p><br><\/p>\n<p>\nPod<br>8:57 - Opening Riff<br>14:51 - Information Freedom<br>18:57 - Bitcoin responsibility and remembering your keys<br>24:19 - Patriot Act 2.0 and thinking local<br>28:25 - Mining and energy<br>38:30 - Trans politics and transhumanism<br>52:41 - Nostr<br>55:50 - v4v<br>1:08:43 - Joe Rogan<br>1:13:23 - Go make children<br>1:15:50...",
            "guid": "63760e0f-c8d4-45c2-9059-866d5e900b14",
            "datePublished": 1680699604,
            "dateCrawled": 1682429502,
            "enclosureUrl": "https:\/\/anchor.fm\/s\/558f520\/podcast\/play\/67974793\/https%3A%2F%2Fd3ctxlq1ktw2nl.cloudfront.net%2Fstaging%2F2023-3-5%2F322224047-44100-2-6f7eb2722c638.mp3",
            "enclosureType": "audio\/mpeg",
            "enclosureLength": 151584181,
            "duration": 9473,
            "explicit": 0,
            "episode": null,
            "episodeType": "full",
            "season": 0,
            "image": "https:\/\/d3t3ozftmdmh3i.cloudfront.net\/staging\/podcast_uploaded_episode\/797160\/797160-1680652733124-656a4d5b67a39.jpg",
            "feedItunesId": 1292381204,
            "feedImage": "https:\/\/d3t3ozftmdmh3i.cloudfront.net\/production\/podcast_uploaded_nologo\/797160\/797160-1673918964644-e9c5c2eba3449.jpg",
            "feedId": 226249,
            "feedUrl": "https:\/\/anchor.fm\/s\/558f520\/podcast\/rss",
            "feedAuthor": "Marty Bent",
            "feedTitle": "TFTC: A Bitcoin Podcast",
            "feedLanguage": "en-us",
            "chaptersUrl": null,
            "transcriptUrl": null
        }
    },
    "count": 27,
    "query": "adamcurry",
    "description": "Found matching episodes."
}

The "items" object is now a string of random id's, depending on the result. According to the schema items should hold an array of objects.

daveajones commented 1 year ago

I think I know what happened. Will check it asap.

daveajones commented 1 year ago

This should be fixed now. Thanks for reporting it.