2014-05-12, 20:28
So, that Reddit channel modification I was working on:
I've hit a bit of a wall and was wondering if anyone might have any ideas?
I can easily get a list of YouTube videos for the channel, but XBMC needs the duration of each video, which is a problem.
I can use Youtube's API to get the duration details, but I have to make a request for each video. After about 100 requests the API starts refusing to answer because the script hits Youtube's API's quota. It also means that any further request (even for other youtube channels) will get refused as well.
There's a way to do batch requests, but that requires a developer key.. which means that all of PseudoTV's users will be on the same quota. That can't be good?
I could restrict the video limit... but, even then, if you were to refresh the channel list twice in quick succession everything would stop working since the quote would get hit -- which would end up confusing a lot of people.
Of course, the modification works great for me since I'm the only person using it and know what's up. But, I'd rather be able to get the modification added .
Anyone have any ideas?
I've hit a bit of a wall and was wondering if anyone might have any ideas?
I can easily get a list of YouTube videos for the channel, but XBMC needs the duration of each video, which is a problem.
I can use Youtube's API to get the duration details, but I have to make a request for each video. After about 100 requests the API starts refusing to answer because the script hits Youtube's API's quota. It also means that any further request (even for other youtube channels) will get refused as well.
There's a way to do batch requests, but that requires a developer key.. which means that all of PseudoTV's users will be on the same quota. That can't be good?
I could restrict the video limit... but, even then, if you were to refresh the channel list twice in quick succession everything would stop working since the quote would get hit -- which would end up confusing a lot of people.
Of course, the modification works great for me since I'm the only person using it and know what's up. But, I'd rather be able to get the modification added .
Anyone have any ideas?