Advertisement
Guest User

Untitled

a guest
Mar 26th, 2014
1,453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.04 KB | None | 0 0
  1. For those who can live with commercials and can install Chrome, the following are the instructions to get the hulu addon to work with chrome. It requires a one line change to the hulu addon and a modification or creation of playercorefactory.xml.
  2.  
  3. ====================================================================================================
  4.  
  5. in stream_hulu.py, find the following lines of code:
  6.  
  7.  
  8. def play( self, video_id):
  9. if (common.settings['enable_captions'] == 'true'):
  10. subtitles.Main().checkCaptions(video_id)
  11. try: smilSoup = self.getSMIL(video_id)
  12. except: smilSoup = self.getSMIL(video_id,retry=1)
  13. if smilSoup:
  14. # finalUrl = self.selectStream(smilSoup) # Comment out this line
  15. finalUrl = 'http://www.hulu.com/stand_alone/%s' % (str(video_id)) # add this line - space align to the line below
  16. displayname, infoLabels, segments = self.getMeta(smilSoup)
  17.  
  18. ======================================================================================================
  19.  
  20. In the XBMC/userdata directory you may already have a playercorefactory.xml, if so edit it and add the player and rule definition below.
  21. If you don't have playercorefactory.xml, create a new one in an editor
  22.  
  23.  
  24. <playercorefactory>
  25. <players>
  26.  
  27. .... there may be other players, if so add the player definition below the current ones
  28.  
  29.  
  30. <player name="GCP" type="ExternalPlayer" audio="false" video="true">
  31. <filename>C:\Program Files (x86)\Google\Chrome\Application\chrome.exe</filename>
  32. <args> --new-window --window-position=0,0 --kiosk --child-clean-exit "{1}"</args>
  33. <hidexbmc>true</hidexbmc>
  34. <hideconsole>true</hideconsole>
  35. <warpcursor>none</warpcursor>
  36. </player>
  37.  
  38. </players>
  39.  
  40. <rules action="prepend">
  41.  
  42. ..... there may be other rules, if so add the rule definition below the current ones
  43.  
  44. <rule filename="http://www.hulu.com*" player="GCP"/>
  45. </rules>
  46. </playercorefactory>
  47.  
  48.  
  49. =========================================================================================================
  50.  
  51.  
  52. Notes:
  53. 1 - C:\Program Files (x86)\Google\Chrome\Application\chrome.exe is where my chrome is installed. If you have it elsewhere, change to point to it.
  54. 2 - When you run XBMC, make sure that you close chrome before running XBMC.
  55. 3 - If you (like me) have a dual display and want to run on the second display, change --window-position=0,0 to --window-position=1930,100. You may need to play with the exact cooridinates, based upon the resolution of your first screen. The idea is that it needs to be beyond the end of the first monitor.
  56. 4 - exiting the popup chrome window:
  57. if you are using a keyboard, its easy ctl+shift+Q.
  58. if you use the xbmc remote for ios (like i do) when you press stop, the screen will go back to XBMC, however you will get a really irritating "restore session" bar at the top the next time you run. I don't know how to get rid of this. It goes away if you open crome as a browser and click on the small 'x' at the end of the bar, or you can use the mouse to do it.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement