mr.b: I am generally against shifting any load from a client to an intermediate server. I don't like the server dependance. I would just rather do it all in the python is possible.
I am working on a module that will cache plug-in queries itself rather then the web request. I am still coding it right now. I am doing an md5 of the parameters that the plug-in is started with. It uses this to look up to see if the request has been made before and if the cache for it has expired.
If the cache is expired then I want load the expired items and then update the cache in the background. I am trying to handle changes to the sites by executing a directory refresh when the new cache is saved so then the new information will be refreshed once processed.
I might fall back to just requesting and store the data before loading the directory but the user will have a bit of a wait while the directory loads.
That is what I am trying to work out right now. It will hopefully speed up things quite a bit for some things.
Hulu Plugin Development Thread - Developers only!
BlueCop
bipedal omnivore Joined: May 2004 Reputation: 70 |
2011-07-27 04:05
Post: #271
|
| find quote |
jmarshall
Team-XBMC Developer Posts: 24,564 Joined: Oct 2003 Reputation: 138 |
2011-07-27 04:34
Post: #272
@BlueCop: It may be useful, once you come up with a good scheme, that XBMC does that for addons on your behalf? That way each addon author doesn't have to reinvent the wheel and gets it for free. Trick would be determining when the cache expires...
Always read the XBMC online-manual, FAQ and search the forum before posting. Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules. For troubleshooting and bug reporting please make sure you read this first. ![]() |
| find quote |
BlueCop
bipedal omnivore Joined: May 2004 Reputation: 70 |
2011-07-27 11:58
Post: #273
hulu has the advantage of alot of information. we have expiration dates on videos so I wanted to use those for some video list expirations. Show and networks listings could be cached for a longer period because they rarely change. I want a relative short expiration on popular,recent, and featured lists because they are updated daily.
I think it would be useful for plugin developers to specify the expiration.. Some plugins it might be useful to have cobtrol over the cache process in the plugin. I have been looking for a python web cache module that properly uses cache headers. one that is able to check the site for change quickly for web scraping plugins. You could then tell xbmc to return the cache from the previous run is you get a 304 not modified. if it were to integrate it into xbmc I would imagine it as part of endOfDirectory(). It could also include an option to return cache for the not modified situation. |
| find quote |
Googler
Junior Member Posts: 28 Joined: Oct 2009 Reputation: 0 |
2011-07-30 21:37
Post: #274
Hi BlueCop
Thanks 4 ur hard work. I am trying to import your Hulu plugin to other programs. I have read your source code here: Code: http://code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/plugin.video.hulu/resources/lib/stream_hulu.pyBut I have trouble finding the 'video_id' on line 313: Code: video_id=common.args.urlI have read the source code of common.py here: Code: http://code.google.com/p/bluecop-xbmc-repo/source/browse/trunk/plugin.video.hulu/resources/lib/common.pyBut I still dont know how to get the very important 'video_id' Could you please outline the process for me? Which functions are involved? Thanks a lot! |
| find quote |
BlueCop
bipedal omnivore Joined: May 2004 Reputation: 70 |
2011-08-10 04:19
Post: #275
visame: what other programs are you trying to integrate with?
It is the video id. it is clearly labled in the data sources. I am not sure what you're attempting so I can't really help much. |
| find quote |
kmvguy83
Junior Member Posts: 2 Joined: Oct 2007 Reputation: 0 |
2012-01-01 23:31
Post: #276
im using this plug-in via xbmc installed on my apple tv, and i was wondering if there are ways to activate closed captioning on the videos
thanks in advance |
| find quote |
lordofportals
Junior Member Posts: 1 Joined: Jan 2012 Reputation: 0 Location: U.S |
2012-01-25 08:17
Post: #277
I just used your Hulu addon with the latest version of XBMC on a Sony Viao laptop running the Ubuntu 11.04. The plugin loaded without errors. An index of TV episodes loaded. When an episode is selected the advertisement plays. However, the episode file cannot be found.
|
| find quote |
BlueCop
bipedal omnivore Joined: May 2004 Reputation: 70 |
2012-01-25 08:21
Post: #278
kmvguy83: yes in the settings
lordofportals: what do you mean by latest? what librtmp version do you have? It will not work without a newer git version. Please post to the support thread below and not use the Developer thread for support. http://forum.xbmc.org/showthread.php?tid=45889 |
| find quote |

![[Image: badge.gif]](http://www.ohloh.net/projects/9132/badge.gif)
Search
Help