Open ericpp opened 10 months ago
That’s right. I use an alpha filter to just suck the numbers out of the input. Do you think it should be an error instead?
I think it should be rejected. What it does now is undefined behavior. I'm a fan of strong type enforcement.
It seemed a little strange that the API returned a result for value4value
. I would've expected it to either return no results or complain that id isn't an integer.
I can change it. I remember now why I did that. It’s because Apple’s api accepts feed id’s as “id123456789” and strips the “id” part off so I was mimicking that behavior. It’s not necessary.
The Podcasts By Feed ID endpoint seems to accept whatever id you throw at it as long as it has a number in it somewhere
For instance:
https://api.podcastindex.org/api/1.0/podcasts/byfeedid?id=value4value
Returns results for
id=4
: