[RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Help and Support (/forumdisplay.php?fid=33)
+--- Forum: Add-ons Help and Support (/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC (/showthread.php?tid=87552)
Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
- fekker - 2011-07-12 04:45
Here's how it works under the hood
addon loads, grabs your auth information if it's there, if it's not it uses the open command to load the page to get the info from netflix, it's a multipart auth system that must be done in a very short time, and your computers time/date must be in sync with the NTP servers out there or it'll fail.
when you put the user info into the iqueue.py file, that's really just the first part of the auth process, the addon has to be launched again to finish the auth with the servers and complete the process.
after auth is done, the data is written to your xbmc addon's data files, it's then used from there on out. That's the end of the open command that's used for initial auth, from there on out it's using the playercorefactory.xml settings to pick what browser to launch.
for what to use to open the app, honestly I just have to guess as I have no way of testing it, firefox seemed to be a safe bet, if we can nail down what works on all the osx os's, I'll put it in there.
the setup works the same for all os's, windows, osx, linux (when chrome's html5 plugin is done, it'll work under linux with only a few code changes to the initial auth portion)
here's what will help me help you
find the command line options to open a browser to a specific url for all the main supported browsers (firefox, safari, chrome, etc.)
if you had to do anything specific to make that command line work (like app association, etc) please be specific as to what was done
when something goes wrong, put the addon into debug mode for it's output to the xbmc log file
when it's user auth related, use the option to include user specific info (it's in the addon settings) BUT .. THIS IS IMPORTANT.. do not post your unique user auth strings that are in there, those are for your account, while it would be hard (due to the time limitation), it's not impossible that someone could (if they understood netflix oauth system) mimic your account and auth something that works with your information.
you help me, i help you, the addon gets better
- echosa - 2011-07-12 14:53
For opening urls in Mac OS, just run the command
That will open the url in the default browser (typically, Safari). No need to specify a particular browser; open will handle it. Forcing Firefox is not the best solution. For Linux, I can see it. For Windows, in this case, I could probably see it because anyone savvy enough to be setting up and running XBMC on Windows is probably intelligent enough to know better than to use IE and probably uses Firefox (judging by the numbers, though Chrome is becoming increasingly popular; I know I prefer Chrome to Firefox, anyway). For Mac OS, though, you should always assume Safari is used because a) it comes with the OS and is a pain to get rid of, b) there's no need to get rid of it because its a good browser, and c) most Mac users use Safari and probably don't have any other browser installed (even if they are savvy enough to be using XBMC).
As for doing anything specific to make the command line work, I didn't do anything in my testing. I just grabbed the urls and auth strings from the logs (which I already have both logging options turned on, obviously) and manually used them.
Honestly, assuming that the rest of the add-on works (and that's a big assumption, since you don't have a Mac to test on apparently) if you just fix that one command it may fix the entire add-on for Mac. Since that is the first error that occurs, it may be causing any following errors as well.
One thing I didn't do is start debugging the code, meaning I did turn on debugging in the logs but I didn't start reading through or hacking up the code. If the add-on is just python, then does that mean the source is plain text and editable? If so, if you can tell me where the lines are that create and run the "open firefox for auth" command, I can try to change it to a proper "open url" command for Mac and see if that fixes the issue. Even if you can't or won't tell me where the code is, at least tell me if the add-on runs with python scripts or compiled objects. I can work with, hack, and debug scripts but objects, er, not so much.
Thanks for the general info on how the add-on works though. That was part of the mystery. Honestly, I've switched over to using Plex and I'm actually liking it and my wife learned it pretty fast. I'll probably continue to use Plex until I find reason not to (don't fix it if it ain't broke, and don't stop using something that works unless you have a really good reason). However, I don't mind helping you track down and fix these issues for the good of the community, and in case, in the future, I decide to switch back to XBMC.
- xboxbox451 - 2011-07-12 17:00
johnlocke Wrote:Anyone have an eventghost file for actually controlling the thing. i've seen some stuff previously in this thread but they don't seem to be very fluid.
I linked my entire EventGhost file, which can be used as a guide to help configure your specific setup. I also posted an image file explaining the various macros I created and plugins installed.
I also linked a .bat file, which is used for the "Stop" command in the Netflix folder I created. I linked the .bat file in case someone needs the file to link to their stop macro, should they want to use the same method. Please note this file was created for a Windows 7 x64 rig, if your using a different system, ensure this command is correct to kill the process for the Netflix player.
This EventGhost configuration has worked well for me in controlling XBMC and the XBMC Flicks plugin.
EDITS: 7.16.11 I re-tweaked the originally hosted EventGhost file, by adding macros to more efficiently handle Frame Mode. Also I added a python script I found on the EventGhost forum that will disable Num, Scroll, and Caps lock upon starting XBMC. I added this script into the file since I found certain macros with keyboard commands were not firing properly when the NumLock was on.
All changes are listed in the posted screenshot above.
Feel free to PM me with any questions or suggestion to improve EventGhost navigation.
Kill IE .bat file
- johnlocke - 2011-07-12 17:05
Awesome xboxbox451. Thank you very much.
XBMCFlix - Chipsta040365 - 2011-07-13 20:47
What is the correct way to close the web API?
I have been using Alt-F4, but, i would think their would be a more graceful way.
I do not see any close or x shortcuts on my screen, is it a possible Skin issue?
Thanks in advance
- WallyJ - 2011-07-14 05:43
So... I have seen a few mentions about adding the XBMCFlicks Addon and if it doesn't appear in the add-ons list, then you don't have the proper setup/requirements met for the add-on.
Is there a place that states what these requirements are?
I have an install of XBMC running quite well on Ubuntu, but do not see the XBMCFlicks add-on in the list.
Do I need to change the configuration files mentioned before it will show up?
- fekker - 2011-07-14 19:19
echosa Wrote:For opening urls in Mac OS, just run the commandVery cool, thanks for the info
iqueue.py line 34 is the open command used for the browser, it's called from line 69
There's lots of folks using the addon under OSX, 99% of the code is independent of the OS it's running under
Quote:xboxbox451 - details on event ghostGreat info, thank you!
Quote:WallyJ So... I have seen a few mentions about adding the XBMCFlicks Addon and if it doesn't appear in the add-ons list, then you don't have the proper setup/requirements met for the add-on.You are correct that if it's not valid for your OS it should not show up (it does show up on ATV2, where it shouldn't as it won't work there).
For Linux support we are waiting on Chrome's plugin for HTML5, until that's released it's not going to work as the other OS's use silverlight (whose DRM will NOT work under Linux (not even using moonlight))
- fekker - 2011-07-14 19:20
Chipsta040365 Wrote:What is the correct way to close the web API?
you won't see the x to close it unless your using the ie wrapper under windows, or remove the fullscreen flag from the playercorefactory.xml file
- WallyJ - 2011-07-14 22:23
fekker Wrote:For Linux support we are waiting on Chrome's plugin for HTML5, until that's released it's not going to work as the other OS's use silverlight (whose DRM will NOT work under Linux (not even using moonlight))
So... the "We" who are waiting is the Linux community, which will have to use Netflix.com on the Chrome browser when it supports HTML5? Or will the XBMCFlicks addon work using the Chrome Browser's ability to use HTML5?
And thanks for the reply!
Firefox window staying in the background on Mac - Undulat - 2011-07-14 23:06
I got the auth ok after installing Firefox on my Mac Mini w/ Mac OS X 10.6.7, but whenever I select a movie to play FF plays it in the background. I turned on the debugging option and this is what I see in the Console:
Seems to be the ExecuteAppLinux line that fails (even though FF opens and starts playing the movie, albeit in the background). I am not conversant enough to start digging deeper, but thought Fekker maybe could use the console output since he doesn't have a Mac.
I hope this can be fixed, but I fear once it does I'll only discover that there is no way to close the FF window and return to XBMC with the Apple remote I'm using now(?) How does people that uses this on a Mac control it?