[OLD/CLOSED] PseudoTV Live - Set-Top box solution
(2014-05-12, 21:36)Lunatixz Wrote: Yeah sounds like your hammering the api... what kind of list are you trying to parse? Can I see an example reddit list?

Yup, it's exactly that. The API won't let me dump 100 requests at it. Which isn't a problem for one or two channels. But, put 4-5 Reddit channels and suddenly it stops working.

There's nothing special about the Reddit list. I use feedparser and some regex to create a list of youtube videos. So, something like: ["a6I2izxeabY","UbvZt3CjNOg", etc]

Then I loop through them and grab the duration information from Youtube using their API URL:

http://gdata.youtube.com/feeds/api/video...3CjNOg?v=2

Which gets me the duration, but only for a single video per request. And it all works beautifully.. unless you really like Reddit channels. Then it silently fails when the API quota is hit. And not just for that one Reddit channel, but for all other Youtube channels as well.

Unlike playlists or user's sites, there's no way (that I can determine) to request data on a bunch of randomly chosen videos.

So... I'm stuck with a solution that works 90% of the time. And I'm pretty sure that having 10% of all users going "Why doesn't this work?" isn't a reasonable solution.

What's frustrating is that it's just missing the duration information. I can get all the other information I need (title, summary, etc) from Reddit. But, without the duration of the video I can't build the playlist.


Messages In This Thread
RE: [FORK] - by jcaa6479 - 2013-07-16, 23:25
Re: RE: - by bry - 2013-07-19, 08:42
Audio Muting Consistently ? - by gjwAudio - 2013-08-18, 08:25
PTVL Anomalies... - by gjwAudio - 2013-08-25, 01:15
Help Find The BAD Channel... - by gjwAudio - 2013-08-27, 02:12
RE: - by DLWhittet - 2013-10-13, 02:48
Problems with Pseudo TV Live - by media-mogul - 2013-11-07, 22:45
Setup wifi cam stream - by rebelmaveric19 - 2013-12-12, 00:54
Black Screen - by Antisthenes - 2014-03-03, 02:06
RE: [FORK] - by Lunatixz - 2014-03-25, 18:21
Re: RE: - by Lunatixz - 2014-04-26, 17:10
RE: [FORK] "PseudoTV Live" w/ LiveTV, InternetTV and added Strm Support - by for-the - 2014-05-12, 22:13
Update breaks autostart? - by grumpygamer - 2014-07-12, 11:48
Re: RE: Update breaks autostart? - by bry - 2014-07-12, 13:44
PseudoTV Live + HDHomerun Tutorial - by bry - 2014-07-25, 23:17
RE: [FORK] - by tromy - 2014-09-22, 19:14
Custom Live Channel - by GavinCampbell - 2014-11-01, 18:20
Options menu? - by Pendragon445 - 2014-11-02, 20:23
Prevent Stop Button - by GavinCampbell - 2014-11-13, 22:45
RE: [FORK] - by herpkektop - 2015-02-11, 11:22
RE: [FORK] - by herpkektop - 2015-02-11, 17:55
PseudoTv issue - by adamp237 - 2015-03-02, 03:41
No Guide - Android Arm - by MoRbIdBoY - 2015-03-14, 20:26
Chanel Issues - by BlueKalel - 2015-05-03, 07:23
RE: donation - by gkithes - 2015-06-11, 02:27
RE: donation - by bornagainpenguin - 2015-06-11, 03:55
Channel Sharing Feature Freezing - by RORO-RR - 2015-07-11, 18:48
Logout Mark Read Team Forum Stats Members Help
[OLD/CLOSED] PseudoTV Live - Set-Top box solution45