Kodi Community Forum
[RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Video Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=154)
+---- Thread: [RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC (/showthread.php?tid=87552)



- jfath - 2011-03-26

Solved: I was using backslashes in my ExternalPlayer filename paths. Changed to forward slashes and I can now use Chrome, Firefox, or IE with no problems. Sorry - my bad.

Trying to get XBMC Flicks to run on a recent Win 7 SP 1 install with XBMC 10.1.

When I select one of the NetFlix instant categories, the browser window displays as expected, and I enter my credentials. After I am linked, I return to XBMC and click on the OK button. I then get a 'script failed' error. Looking at the log, it is a BadStatusLine error from httplib (clipped below). I tried using IE, Firefox, and Chrome (making the appropriate changes in playercorefactory.xml) and all three browsers link correctly then fail with the same error.

Any ideas what might be wrong?

From the log:
NOTICE: .. getAuth called ..
NOTICE: OSX Setting is set to: False
NOTICE: .. user configured ..
NOTICE: Token did not contain any errors
NOTICE: Authorize user access here: https://api-user.netflix.com/oauth/login?application_name=xbmcflix&oauth_consumer_key=kkkk&oauth_token=tttt
NOTICE: and then put this key / secret in MY_USER.request:
'key': 'kkkk',
'secret': 'ssss'
NOTICE: and run again.
NOTICE: browser open has completed
NOTICE: The dialog was displayed, hopefully you read the text and waited until you authorized it before clicking ok.
NOTICE: user key set to: kkkk
NOTICE: user secret set to: ssss
ERROR: Error Type: httplib.BadStatusLine
ERROR: Error Contents:
ERROR: Traceback (most recent call last):
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\default.py", line 26, in ?
import resources.lib.menu as menu
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\resources\lib\menu.py", line 476, in ?
getInstantQueue(1)
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iqueue.py", line 1343, in getInstantQueue
initApp()
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iqueue.py", line 1338, in initApp
user = getAuth(netflixClient,VERBOSE_USER_LOG)
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iqueue.py", line 97, in getAuth
tok = netflix.user.getAccessToken( MY_USER['request'] )
File "C:\Users\xbmc\AppData\Roaming\XBMC\addons\plugin.video.xbmcflicks\resources\lib\Netflix.py", line 74, in getAccessToken
response = client.connection.getresponse()
File "special://xbmc/system/python/Lib\httplib.py", line 866, in getresponse
response.begin()
File "special://xbmc/system/python/Lib\httplib.py", line 336, in begin
version, status, reason = self._read_status()
File "special://xbmc/system/python/Lib\httplib.py", line 300, in _read_status
raise BadStatusLine(line)
BadStatusLine
ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.xbmcflicks/?mode=11
ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.xbmcflicks/?mode=11) failed


- nmirza - 2011-03-26

down.easter Wrote:You want to go back to January 5th in the thread on page 17 - the info you are looking for starts there - look for Fekker's posts/replies

Just went back and read a whole bunch of the suggestions. I can't see anything more specific than what is already here unless I missed something after reading 10+ pages.

I tried removing the -k settings. I tried adding a space before one of the brackets in coreplayerosx.
I also went back into queue.py and instead of "URL+" put in direct link to Netflix.com. Still nothing. Also tried instead of directly pointing to safari.app to default back to old behavior which I think was about opening the default browser. In that case browser didn't even pop up.

After changing URL to Netflix directly, the browser pops up but again just default page it won't go to sfafari app. Also tried using firefox instead no luck. In my browsers Netflix plays fine by itself though.


- fekker - 2011-03-26

nmirza Wrote:Just went back and read a whole bunch of the suggestions. I can't see anything more specific than what is already here unless I missed something after reading 10+ pages.

I tried removing the -k settings. I tried adding a space before one of the brackets in coreplayerosx.
I also went back into queue.py and instead of "URL+" put in direct link to Netflix.com. Still nothing. Also tried instead of directly pointing to safari.app to default back to old behavior which I think was about opening the default browser. In that case browser didn't even pop up.

After changing URL to Netflix directly, the browser pops up but again just default page it won't go to sfafari app. Also tried using firefox instead no luck. In my browsers Netflix plays fine by itself though.

here's how to figure out what you need in the iqueue.py file
cmd="open /Applications/Firefox.app '"+url+"'"

this is saying, run the command open /Applications/Firefox.app 'http://www.netflix.com/'

(there's alot more to the web site url, but that's not important to get it to work)

figure out how to open the browser from a command prompt/terminal session where it open's the page

cmd="open /Applications/Firefox.app '"+url+"'"
let's add some spaces so you can see what it's doing
cmd="open /Applications/Firefox.app '" + url + "'"
i.e.
open /Applications/Firefox.app 'http://www.netflix.com/'

so if you need to open a different app, like safari
and this works via the command line
open /Applications/Safari.app 'http://www.netflix.com/'
you would have
cmd="open /Applications/Safari.app '" + url + "'"

if it doesn't like the quotes it would be
cmd="open /Applications/Safari.app " + url

hopefully that makes sense, you need to figure out what command line will open your browser to a website, and then adjust the command

or

turn on debug mode and verbose user logging in the addon, and open the url and do it manually (check the xbmc.log, in debug and verbose mode it will list out what to do in the log file)


- fekker - 2011-03-26

On a side note, the new version of Silverlight added support for Windows Media Center Remotes.

Rewind and Fastforward work
The Enter key is the pause/play key (not the pause key on the remote, odd but it works)

And they work in full screen

This makes it a ton easier to control, and doesn't require any other apps running for a basic remote (like this one) to work.

Big Grin


- nssk - 2011-03-27

No idea if this is of any help to anyone, but it might be interesting nonetheless...

Lessons learnt from building Netflix iPhone app
http://blog.pinchzoom.com/post/4073075705/lessons-learnt-from-building-netflix-iphone-app

In particular at the end he tells you exactly how NOT to get a peek of some of the source code. Like I say, no idea if this is helpful XBMCwise, but I found it quite interesting.


- KennethC - 2011-03-27

fekker Wrote:On a side note, the new version of Silverlight added support for Windows Media Center Remotes.

Rewind and Fastforward work
The Enter key is the pause/play key (not the pause key on the remote, odd but it works)

And they work in full screen

This makes it a ton easier to control, and doesn't require any other apps running for a basic remote (like this one) to work.

Big Grin

fekker, I knew this was coming out in Silverlight 5, but I don't see that available for download anywhere. Do you have a download link for 5, or is this in a new version of Silverlight 4?


- nmirza - 2011-03-27

hmmm..alot of thisis french to me. i did try to open terminal and typed the open command with some variations (with/without quotes, different kind of quotes, etc) in all cases, it opens up safari/firefox, bbut only to the start page, does not go to the netflix website. Shouldnt this command be standard to all osx users?

Can someone using this on a mac please give me the correct command?

fekker Wrote:here's how to figure out what you need in the iqueue.py file
cmd="open /Applications/Firefox.app '"+url+"'"

this is saying, run the command open /Applications/Firefox.app 'http://www.netflix.com/'

(there's alot more to the web site url, but that's not important to get it to work)

figure out how to open the browser from a command prompt/terminal session where it open's the page

cmd="open /Applications/Firefox.app '"+url+"'"
let's add some spaces so you can see what it's doing
cmd="open /Applications/Firefox.app '" + url + "'"
i.e.
open /Applications/Firefox.app 'http://www.netflix.com/'

so if you need to open a different app, like safari
and this works via the command line
open /Applications/Safari.app 'http://www.netflix.com/'
you would have
cmd="open /Applications/Safari.app '" + url + "'"

if it doesn't like the quotes it would be
cmd="open /Applications/Safari.app " + url

hopefully that makes sense, you need to figure out what command line will open your browser to a website, and then adjust the command

or

turn on debug mode and verbose user logging in the addon, and open the url and do it manually (check the xbmc.log, in debug and verbose mode it will list out what to do in the log file)



- nmirza - 2011-03-27

ok did some research and this is what ultimately worked:

cmd="open '"+url+"'"


i removed reference to any browser at all it jsut sues the default.


nmirza Wrote:hmmm..alot of thisis french to me. i did try to open terminal and typed the open command with some variations (with/without quotes, different kind of quotes, etc) in all cases, it opens up safari/firefox, bbut only to the start page, does not go to the netflix website. Shouldnt this command be standard to all osx users?

Can someone using this on a mac please give me the correct command?



- risner - 2011-03-28

I'm still having trouble with XBMC Flicks not working on Mac OSX.

When you click on a video to play from Netflix, it pops up a Safari window over the XBMC interface, and the video plays in the Safari window (not full screen) and you can't get back to XBMC without using the mouse (not the apple remote) to click X on the Safari window.

I've been posting about this for a couple weeks, and only one other person has complained about this. I've also upgraded XBMC to try to evade this problem.

It didn't used to work this way, unless I'm confused. I thought it previously played the video full screen and when the video ended you automatically reverted to the XBMC interface.

Can anyone help me?


Cant Find Addon - Thermos - 2011-03-28

was wanting to give this addon a try but cant find it. i looked in the get addons -> Video Addons but dont see XBMC Flicks. I looked in the program addons and everywhere else too. I read that this was in the main xmbc repo. What could i be doing wrong?


- nmirza - 2011-03-28

Im having a somewhat similar issue but slightly different. when i click on a video, my browser flashes for a second, but xbmc still retains its focus so i dont see the browser on the screen. If i window xbmc, i see the video playing, but ofcourse its not full screen or anything its in the browser window.

risner Wrote:I'm still having trouble with XBMC Flicks not working on Mac OSX.

When you click on a video to play from Netflix, it pops up a Safari window over the XBMC interface, and the video plays in the Safari window (not full screen) and you can't get back to XBMC without using the mouse (not the apple remote) to click X on the Safari window.

I've been posting about this for a couple weeks, and only one other person has complained about this. I've also upgraded XBMC to try to evade this problem.

It didn't used to work this way, unless I'm confused. I thought it previously played the video full screen and when the video ended you automatically reverted to the XBMC interface.

Can anyone help me?



- opm881 - 2011-03-29

d1ddyp0p Wrote:It works, piece of cake. I just want to know what the args are I can use to

A. Start it in full screen mode?
B. Hide my mouse (assuming this might not be needed if it started in full screen mode)
C. Close out of the Netflix Window using my remote (which is the official one for android)


I assume I could use Gmote or something similar to use my mouse....however, I don't want a keyboard mouse hooked up to the htpc in my living room so if it IS possible to do this, any help appreciated.


EDIT: Nevermind..... pressing stop closes netflix just fine. Any idea on an arg I can use for full screen? +F? and if so, insert it where? in where the 'p' is?
Did you end up getting a wrapper to open it in full screen straight away?

Also, can any1 give me the info on what I need to edit in the skins section to add a skin for netflix?


Can't get it to work on Mac Mini 10.5.8 - Polonius19 - 2011-03-31

I go through the config process, specified the OS X option, verified the two files, advanced settings and player core, were where they were supposed to be and with the settings identified at the start of this post, but when I try to browse the instant queue, I get a window inside of XBMC asking me to "Click OK after you finished the link in your browser window", but no browser window ever opens. I have Safari installed on this system, no other browser. I can access and view Netflix inside of Safari. I've uninstalled and re-installed the addon a few times, but its the same thing every time.

What am I doing wrong? What can I do to find out where the process is failing. Is there anyway to config a file manually with my netflix account info?

Please help.

**PS, I found a thread referencing the iqueue.py file and how it may need to be modified, but I can't find the iqueue.py file. Where is it? Thanks...


- nmirza - 2011-03-31

See my post at top of this current page for the command to change in queue.py. It should be in app support/xbmc/addons/xbmc flicks search for it in spotlight in that directory.


Polonius19 Wrote:I go through the config process, specified the OS X option, verified the two files, advanced settings and player core, were where they were supposed to be and with the settings identified at the start of this post, but when I try to browse the instant queue, I get a window inside of XBMC asking me to "Click OK after you finished the link in your browser window", but no browser window ever opens. I have Safari installed on this system, no other browser. I can access and view Netflix inside of Safari. I've uninstalled and re-installed the addon a few times, but its the same thing every time.

What am I doing wrong? What can I do to find out where the process is failing. Is there anyway to config a file manually with my netflix account info?

Please help.

**PS, I found a thread referencing the iqueue.py file and how it may need to be modified, but I can't find the iqueue.py file. Where is it? Thanks...



can't see certain show in my queue - wyoak - 2011-04-01

I can't see Anthony Bourdain's No Reservations in my instant queue. Similarly, if I search for it, I can't add it to my queue. It says "Title not found or not available." The show ID is apparently 70136132. If I do add it from my browser, I can remove it from my instant queue by searching by title, but it doesn't show up in the queue in XBMC. There are a ton of episodes in the show (and it's not broken up by season) - would that have something to do with it? If I look at the logs, when I load my instant queue it doesn't mention anything about No Reservations, and trying to add the show to the queue looks the same as another show I add succesfully.