ihemingway / plugin.audio.cbcradio

Kodi plugin for streaming CBC Radio
MIT License
1 stars 0 forks source link

Querying CBC api #1

Open jbwharris opened 3 months ago

jbwharris commented 3 months ago

I was curious about this plugin. I see it's successfully pulling from the CBC api. I'm trying to use Javascript to do similar to your approach, but am getting CORS refusal. I'm kinda new to this, so was curious if this is something Python doesn't have to worry about, or is it something specific you're doing to be able to query the API while avoiding CORS refusal?

ihemingway commented 3 months ago

I don't know Javascript even slightly. This is the actual code pulling from the API: https://github.com/ihemingway/plugin.audio.cbcradio/blob/main/now_playing.py#L59-L64

Unfortunately, I'm not a web guy, I'm a backend DevOps/SRE by trade so I can't really help with CORS anything. Those errors are always a pain in my ass when they pop up at work.

On Thu, Apr 18, 2024 at 7:43 PM James Harris @.***> wrote:

I was curious about this plugin. I see it's successfully pulling from the CBC api. I'm trying to use Javascript to do similar to your approach, but am getting CORS refusal. I'm kinda new to this, so was curious if this is something Python doesn't have to worry about, or is it something specific you're doing to be able to query the API while avoiding CORS refusal?

— Reply to this email directly, view it on GitHub https://github.com/ihemingway/plugin.audio.cbcradio/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AG2PN5C3ZJAZH6ZZGYQJ4L3Y6BLBPAVCNFSM6AAAAABGOGD2B6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGI2TCNZYG4YTAOI . You are receiving this because you are subscribed to this thread.Message ID: @.***>