• 1
  • 72
  • 73
  • 74(current)
  • 75
  • 76
  • 109
[RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC
To moderators please don't erase this.
I am a noob at Python and Recently have tried to apply most of the fixes since page 100 of XbmcFlicks forum,The Lines of code below are referring to my modified versions.
Fixes number 1,2,3,and 4 are by Patdavid, and the 5th fix TWoods(pointed-out the problem).

FIXES APPLIED

1. Modified and added , 'latin-1' ) to 26 instances of info = simplejson.loads( ) at Lines 86,110,133,170,199,
232,265,297,327,346,367,396,400,404,425,443,467,486,498,504,516,525,552,575,598,673,691 in Netflix.py.
##Note: I changed some of the Expand Regular expression forms of info = to single lines of code (deleted the spaces).Original Netflix.py is 800 Lines of Code, my modified Netflix.py is 784 Lines of code.##


2.
2A. "Hacked" the check for the instant availability of your tv show at Lines 819 and 820 in iqueue.py.
##Note: i changed the code fix from re-write to add "#" Character if front of else and return curX##

Original Patched Code-
else:
curX.IsInstantAvailable = True
#return curX

Modified Patched Code-
#else:
#return curX
2B. Fixed a URLs 'api' portion in Regex at Line 194.


3. Added a timeout parameter to the self.connection at Line 701 in Netflix.py .
self.connection = httplib.HTTPConnection("%s:%s" % (HOST, PORT), timeout=30 )

5.
5A. Applied 6 URLs 'api' portion fixes on Lines 288, 310, 468, 707, 914, 1015 in iqueue.py
Applied 10 URLs 'api' portion fixes on Lines 219,252,282,317,333,359,391,420,434,457 in Netflix.py

5B. Applied some changes to the location of the catalogs for movies, etc. in Netflix.py
changed Line 434 from 'http://api.netflix.com/catalog/titles/movies/' to 'http://api-public.netflix.com/catalog/titles/streaming'
changed Line 457 from 'http://api.netflix.com/catalog/titles/movies/' to 'http://api-public.netflix.com/catalog/titles/dvd'

6. Added iewrap.exe to XbmcFlicks Plugin directory \plugin.video.xbmcflicks\resources\lib\

7. Changed advancedsettings.xml, added <useddsfanart>true</useddsfanart>

8. -------------Changed playercorefactories' Default Internet Browser for Windows to IE Wrapper------------
Use your playercorefactories files the one I included does not work.

FIXES NOT APPLIED

4. Refactored code of the entire section that parses data for movies only
Original Code-
matchTitle = re.search(r'[\'"]title[\'"]: {.*?[\'"]regular[\'"]: u{0,1}(\'|")(.*?)\1.*?},', curQueueItem, re.DOTALL | re.MULTILINE)

if matchTitle:
curX.Title = matchTitle.group(2).strip()

Refactored Code-
if 'title' in curQueueItem:
curX.Title = curQueueItem['title']['regular']

Download Link: https://skydrive.live.com/redir?resid=EB...561B52!118

While Streaming Instantly Browsing by Genre, and Experimental Search DOESN'T Work! Tv Shows Still AutoExpand, and Display inaccurate information!

Can u Guys tell me if it Works properly over all, I'm not too sure. I have a netflix streaming account,but not dvd by mail.
Reply
Is XbmcFlicks only available in English?
Because if it is, I'm trying to translate string.xml and Menu Gui interface into other languages.
I have already translated the string.xml into French,Spanish, and Portuguese with the help of Google Translate.
I'm not to sure if there properly translated, but I took some French and Spanish classes in High School.
And the Portuguese language is similar to Spanish.
Is there people willing to help me or interested in checking the accuracy of my translations?

Link: https://skydrive.live.com/redir?resid=EB...561B52!125

You can download the 'string.xml' you want to use and test try it in xbmc by replacing it at, %appdata%\XBMC\addons\plugin.video.xbmcflicks\resources\language\English\
, and go to plugin settings and it should be translated into that language. (remember to save a copy of the original 'string.xml')


Reply
Now that netflix has launched in Denmark - will this plugin work with this?
Reply
Jonas and anyone else asking if this addon works outside of the US and Canada, the answer is - try it and find out (and then let the rest of us know). Unfortunately the person who wrote the addon isn't actively maintaining it so the only way to know if it works somewhere else is to try it out. On top of that, it doesn't work in the US and Canada at the moment without making some changes to the code manually, so keep that in mind as well. The people here will try to help you to the best of our ability if you run into problems. Good luck!
Reply
(2012-10-30, 00:44)yabsie Wrote: Now my data looks something like this:

"type": "Netflix.Catalog.v2.BoxArt"

}, "SmallUrl": "http://cdn-1.nflximg.com/images/9673/299673.jpg", "MediumUrl": "http://cdn-1.nflximg.com/images/9458/459458.jpg", "LargeUrl": "http://cdn-1.nflximg.com/images/9188/569188.jpg", "HighDefinitionUrl": "http://cdn-1.nflximg.com/images/7954/1097954.jpg"

the cdn-1 bugs me because 1) I amusing unblockus, and 2) I told xbmcflix that I am not in canada, but whatrs more important is that it seems netflix is talking a different version that the code is . NF is proving Netflix.Catalog.v2.BoxArt and iqueue.py doesn't know how to read it and is looking for NetflixCatalog.Model.BoxArt

I dont know python well and I don't know this code at all, so any help would grand.

Looking at the Netflix API Release Notes (look at the section for Box Art), I think that "cdn" refers to content delivery network and not Canada as you suspect.
Reply
Hi guys, I have translated the Gui in Spanish(manually changed Gui labels and strings into Spanish), and now trying the form of string.xml . But I need some one with python programming (coding skills) to do some minor mod or addition to the code, that I can reproduce. I seem to not be able to get __settings__.getLocalizedString( ) to work.

Example from menu.py: SUBMENU1 = __settings__.getLocalizedString( 40007 )
from (Spanish or any Language) String.xml : <string id="40007">Fila instantánea: Todos</string>

Error __setting__ not defined ..... meny.py, 142, 15

Example from modQueue.py: dialog.ok(__settings__.getLocalizedString( 40052 , 40053 ))
from (Spanish or any Language) String.xml : <string id="40052">Configuración completa.</string>
<string id="40053">Debe reiniciar el plugin de xbmcflicks.</string>

I need this Mod to be Reproducible in menu.py, modQueue.py, and iqueue.py.

All the languages that I Think that are currently Supported by Netflix are:
English
Spanish
Portuguese
Danish
Norwegian
Swedish
Finnish

As for countries urls all we have to do is Copy and modify all Canadian Modifications to the xmbcflicks to apply to that said country.
countries that are Supported by Netflix:
US- netflix.com Default_en-US

Canada- netflix.ca Default_?

UnitedKingdom- netflix.co.uk Default_en-GB

Mexico- netflix.com.mx Default_es-Mx

Argentina- netflix.com.ar Default_es-AR

Norway- netflix.no Default_nb-NO

Denmark- netflix.dk Default_da-DK

Sweden- Netflix.se Default_sv-SE

Finland- netflix.fi Default_fi-FI

Chile- netflix.cl Default_es-CL

Colombia- netflix.com.co Default_es-CO

Brazil- netflix.com.br Default_pt-BR

Paraguay- netflix.com.py Default_es-PY

Uraguay- netflix.com.uy Default_es-UY

Bolivia- netflix.com.bo Default_es-BO

Ecuador- netflix.ec Default_es-EC

Peru- netflix.pe Default_es-PE

Venezuela- netflix.com.ve Default_es-VE

Belize- netflix.bz Default_es-BZ

Costa Rica- netflix.cr Default_es_CR

El Salvador- netflix.com.sv Default_es-SV

Guatetemala- netflix.com.gt Default_es-GT

Honduras- netflix.hn Default_es-HN

Nicaragua- netflix.co.ni netflix.com.ni Default_es-NI

Panama- netflix.com.pa Default_es-PA

But to get Browsing by Genres to work , we need to know the Genres and sub-Genres available in that country.
Currently def checkGenre(strGenreName) in iqueue.py are the all the genres available to the United States of America,
and as there is no other word Lists of gengres from other countries , the american list is used by default.
By the way, the Browse By Genre won't work in other countries because its in english, its also incomplete, and it tries to retrieve data on all the Gengres and its sub-genres.

Also is there away to get xbmcflicks to use system environment for windows( to get the to web browsers to open %USERPROFILE%\Local Settings\Application Data\Google\Chrome\Application\chrome.exe,
%AppData%\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iewrap.exe, %PROGRAMFILES%\Internet Explorer\iexplore.exe)

We need to Change 'Are You in Canada? : yes or no " in settings to 'Country: US,UK,CA,etc'.
Anyone have any input?
Reply
Anyone else having problems with instant views this morning everything was working perfectly yesterday with the patched files now nothing is showing again!
Reply
(2012-11-08, 17:21)zuditechguy Wrote: Anyone else having problems with instant views this morning everything was working perfectly yesterday with the patched files now nothing is showing again!
Same thing happened for me starting lastnight. Top videos still work, but nothing else loads for me.
Stephen Andrew Designs
http://www.stephenandrewdesigns.com
Reply
Hi all,

I stalled out in refactoring this code a little while back, but I'm likely going to get back on the horse in the next few days and try to work things out. At the moment I'm personally targeting what will get things going for me (in the US, on Eden), but I am going to try to clean things up a bit to make maintenance easier.

I haven't decided where to host any new files yet, but I'll post back in a bit with an alpha of the refactored code to see if it works (and will be looking for feedback).

Sorry for the delay, and hopefully I can hack something together that gets things running...
Reply
It looks like Netflix changed their API. To get this plugin to work again you will need to find all references to "api.netflix.com" and change it to "api-public.netflix.com". I changed 13 in Netflix.py and 5 in iqueue.py.
Reply
(2012-11-08, 21:29)jwdempsey Wrote: It looks like Netflix changed their API. To get this plugin to work again you will need to find all references to "api.netflix.com" and change it to "api-public.netflix.com". I changed 13 in Netflix.py and 5 in iqueue.py.

Thanks alot that seem to fixed everything once again.
Reply
Does this include these following line in Netflix.py?

HOST = 'api.netflix.com'
PORT = '80'
REQUEST_TOKEN_URL = 'http://api.netflix.com/oauth/request_token'
ACCESS_TOKEN_URL = 'http://api.netflix.com/oauth/access_token'
AUTHORIZATION_URL = 'https://api-user.netflix.com/oauth/login'
Reply
I have modified the code for XBMC Flicks to adjust for URL changes for the new API location and added some code to strip foreign characters (i.e. umlauts and the like) that were causing problems deserializing the results.

I would like to recomit these to the Github repository but I have no experience with Git and need some assistance or direction. Can someone assist?
Reply
(2012-11-08, 21:29)jwdempsey Wrote: It looks like Netflix changed their API. To get this plugin to work again you will need to find all references to "api.netflix.com" and change it to "api-public.netflix.com". I changed 13 in Netflix.py and 5 in iqueue.py.

This worked for me Thanks
Reply
(2012-11-09, 15:32)IamMomotaros Wrote: Does this include these following line in Netflix.py?

HOST = 'api.netflix.com'
PORT = '80'
REQUEST_TOKEN_URL = 'http://api.netflix.com/oauth/request_token'
ACCESS_TOKEN_URL = 'http://api.netflix.com/oauth/access_token'
AUTHORIZATION_URL = 'https://api-user.netflix.com/oauth/login'

Yes. Just perform a find and replace all matches.
Reply
  • 1
  • 72
  • 73
  • 74(current)
  • 75
  • 76
  • 109

Logout Mark Read Team Forum Stats Members Help
[RELEASE] XBMC Flicks - Netflix Movies / TV Shows (Video) experimental Addon for XBMC16