Giant Bomb on Media Centers
1) The Whiskey API currently does not support login for HD videos
2) I don't know / have the skills to "hack" HD videos in ( and I really don't want to because it seems kinda duchi )
3) I have been told to currently not implement HD videos, by a Whiskey staffer, because of bandwidth issues.
I picked up an Apple TV 2 today and immediately shoved XBMC onto it. :) Was surprised and happy to see a Giant Bomb video add-on and installed it, but unfortunately there seems to be an issue: I get the following issue (sent to xbmc.log):
17:57:35 T:165810176 M: 88510464 NOTICE: -->Python Interpreter Initialized<--
17:57:36 T:165810176 M: 88498176 ERROR: Error Type: <type 'exceptions.ImportError'>
17:57:36 T:165810176 M: 88498176 ERROR: Error Contents: No module named whimai.wm
17:57:36 T:165810176 M: 88498176 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/plugin.video.giantbomb/addon.py", l$
import whimai.wm as wm
ImportError: No module named whimai.wm
17:57:36 T:90595328 M: 88498176 ERROR: GetDirectory - Error getting plugin://plugin.video.giantbomb/
17:57:36 T:90595328 M: 88498176 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.giantbomb/) failed
I've written Python code in the past so I'll take a look at the issue, but I suppose it's likely that all I need to do is install the missing module - probably from http://code.google.com/p/whimais/ ? How's that sound?
I am also interested to see how to get giantbomb plugin to run on xbmc on appletv2. I did some looking and whimai.wm is already copied on to addons under /resources/lib
It looks like the Apple TV 2G's mappings of special://whatever/ are different from the Apple TV 1G, so the Python add-on looks to the wrong directory for files. I drew that conclusion after looking at this page: http://wiki.xbmc.org/?title=Special_protocol
So to fix the issue, you can simply replace the file located at /private/var/mobile/Library/Preferences/XBMC/addons/plugin.video.giantbomb/addon.py with this file, or you can manually replace these lines in addon.py:
_resdir = "special://home/addons/" + _id + "/resources"
_datadir = "special://profile/addon_data/" + _id
With:
_xbmcprefdir = "/private/var/mobile/Library/Preferences/XBMC"
_resdir = _xbmcprefdir + "/addons/" + _id + "/resources"_datadir = _xbmcprefdir + "/userdata/addon_data/" + _id
This solution does indeed hard-code the directory mappings, but until XBMC releases an update that fixes the auto-mapping using special:// it'll have to do.
@Buggex: I am seeing an error in the log that reads "NOTICE: ERROR IN DATA FILE" at startup but I'm not sure it's actually causing any problems?
I will take you addon.py and create a zip file people can use for AppleTV
"NOTICE: ERROR IN DATA FILE " should only appear the very first time you start the plugin. If this happens all the time it should be addressed. The problem with this is that the startup will take a very long time.
There may be some issue with the script writing to /private/var/mobile/Library/Preferences/XBMC/userdata/addon_data/plugin.video.giantbomb/video.dat , but even with that solved the script appears to parse through 3000+ (at the moment, 3676) video items every time it runs, with a resulting long load time. I think I'll take a crack as a mildly revised version of the script that alters how the categories and files are pulled down? Maybe we can optimize the checks for new content.
1) The very first time it parse through all 3000+ videos and stores there info ( resulting in very long load times, because it req. many calls to the api )
2) Subsequently very time you start the the plugin after that, it only adds new videos ( results in a very short load time, because it usually only req. 1-2 call to the api )
Im not sure that this can be done any faster, but if you have an idea, Im all ears.
How it works on the Boxee plugin:
1) There is no data file
2) Start of plugins is very fast
3) Every category calls a search query in the API , a search query gives 20 videos pr call ( load times depend on number of videos in categorie )
After taking a deeper look last night I think you have it as optimized as it'll go, actually - a slightly faster version might be produced using the video feeds instead of the API, but that seems questionable too. I really like what you did with the categories, by the way - having it hosted externally where it can be centrally updated is very smart.
I'll give implementing an add-on using the XML feeds a try today, mostly just to get re-acquainted with Python.
Hey BuggeX, I'm having a bit of trouble with this addon, when I run it, it creates the video.dat file (about 3 meg), but then it locks XBMC
Here's my debug log:
17:53:01 T:3176 M:2563690496 DEBUG: CApplication::OnKey: 61453 pressed, action is Select
17:53:01 T:3176 M:2563612672 DEBUG: CApplication::ExecuteXBMCAction : Translating ActivateWindow(10024,"plugin://plugin.video.giantbomb/")
17:53:01 T:3176 M:2563612672 DEBUG: CApplication::ExecuteXBMCAction : To ActivateWindow(10024,"plugin://plugin.video.giantbomb/")
17:53:01 T:3176 M:2563612672 DEBUG: Activating window ID: 10024
17:53:01 T:3176 M:2563612672 DEBUG: Checking if window ID 10024 is locked.
17:53:01 T:3176 M:2563612672 DEBUG: ------ Window Deinit (Home.xml) ------
17:53:01 T:3176 M:2563612672 DEBUG: ------ Window Deinit (DialogFavourites.xml) ------
17:53:01 T:3176 M:2563403776 DEBUG: ------ Window Init (MyVideo.xml) ------
17:53:01 T:3176 M:2563403776 INFO: Loading skin file: MyVideo.xml
17:53:04 T:3176 M:2560024576 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.giantbomb/)
17:53:04 T:3176 M:2560024576 DEBUG: ParentPath = [plugin://plugin.video.giantbomb/]
17:53:04 T:3176 M:2560008192 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Giant Bomb('plugin://plugin.video.giantbomb/','0','')
17:53:04 T:3176 M:2560008192 INFO: initializing python engine.
17:53:04 T:3176 M:2560008192 DEBUG: new python thread created. id=4
17:53:04 T:3176 M:2560008192 DEBUG: XFILE::CPluginDirectory::WaitOnScriptResult - waiting on the Giant Bomb plugin...
17:53:04 T:1680 M:2560008192 DEBUG: thread start, auto delete: 0
17:53:04 T:1680 M:2560008192 DEBUG: Python thread: start processing
17:53:04 T:1680 M:2559930368 DEBUG: msg: 'import site' failed; use -v for traceback
17:53:04 T:1680 M:2559930368 NOTICE: -->Python Interpreter Initialized<--
17:53:04 T:1680 M:2559930368 DEBUG: XBPyThread::Process - The source file to load is C:\Users\Richter\AppData\Roaming\XBMC\addons\plugin.video.giantbomb\addon.py
17:53:04 T:1680 M:2559930368 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\Richter\AppData\Roaming\XBMC\addons\plugin.video.giantbomb;C:\Users\Richter\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Users\Richter\AppData\Roaming\XBMC\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Program Files (x86)\XBMC\addons\script.module.pysqlite\lib;special://xbmc/system/python/DLLs;special://xbmc/system/python/Lib;special://xbmcbin/system/python/python24.zip;special://xbmc/system/python\DLLs;special://xbmc/system/python\lib;special://xbmc/system/python\lib\plat-win;special://xbmc/system/python\lib\lib-tk;C:\Program Files (x86)\XBMC
17:53:04 T:1680 M:2559930368 DEBUG: XBPyThread::Process - Entering source directory C:\Users\Richter\AppData\Roaming\XBMC\addons\plugin.video.giantbomb
17:53:04 T:1680 M:2559627264 INFO: Loading skin file: DialogProgress.xml
17:53:04 T:1680 M:2559619072 DEBUG: ------ Window Init (DialogProgress.xml) ------
17:53:05 T:1680 M:2559315968 NOTICE: SETTINGS UPDATE OK
17:53:05 T:1680 M:2559315968 NOTICE: ERROR IN DATA FILE
17:53:09 T:1412 M:2555846656 DEBUG: CDDSImage::Compress - using DXT1 (min error is: 18.71:0.00)
17:53:26 T:2156 M:2555613184 DEBUG: Thread 2156 terminating (autodelete)
17:53:29 T:4084 M:2556383232 DEBUG: Thread 4084 terminating (autodelete)
17:53:39 T:1412 M:2551918592 DEBUG: Thread 1412 terminating (autodelete)
@Sully got your addon to load up on Appletv2 XBMC i don't have a subscription to see the content but everything before the content loaded up. Might be worth it if the HD content didn't eat up bandwidth =D
There is also a Giant bomb Script for Playon
I managed to adapt this script so that is retrieves all videos from all other Whiskey Sites, no membership support.
http://www.playonscripts.com/?w=view&id=292 - Whiskey Media Script by Xantar
http://www.playonscripts.com/?w=view&id=79 - Giant Bomb Script by hottammale
It looks like this plugin was updated at some point today in the XBMC repository. I'm a little confused, seeing as how I'm just reading this thread for the first time and it appears you've stopped development on it. Is the new version the official version that you speak of in your last post? I ask this because I noticed it directs you to a URL on this domain to link an account, which suggests to me that it's officially endorsed on some level.
In any event, thanks for the plugin. I had never heard of Giant Bomb prior to seeing the plugin in the XBMC repo several months ago. After discovering it I went through and watched all of the Quick Looks and loved every minute of it.
Please Log In to post.
Log in to comment