2011-02-09, 02:10
Netflix implemented a change today breaks viewing of movies in Canada.
Browsing the catalog and selecting a movie is not affected. The symptom is that the browser is launched, a black background appears and no further progress. The status bar indicates 'Done'.
The solution is as follows:
1. Delete all files in the directory %APPDATA%\XBMC\userdata\addon_data\plugin.video.xbmcflicks\links\
2. Edit line 263 in %APPDATA%\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iqueue.py changing the netflix.com url to netflix.ca
A patch that uses the IN_CANADA flag is:
Browsing the catalog and selecting a movie is not affected. The symptom is that the browser is launched, a black background appears and no further progress. The status bar indicates 'Done'.
The solution is as follows:
1. Delete all files in the directory %APPDATA%\XBMC\userdata\addon_data\plugin.video.xbmcflicks\links\
2. Edit line 263 in %APPDATA%\XBMC\addons\plugin.video.xbmcflicks\resources\lib\iqueue.py changing the netflix.com url to netflix.ca
A patch that uses the IN_CANADA flag is:
Code:
--- ./resources/lib/iqueue.py.orig 2011-01-22 16:34:51.000000000 -0500
+++ ./resources/lib/iqueue.py 2011-02-08 18:15:22.877342815 -0500
def getAuth(netflix, verbose):
@@ -260,7 +260,10 @@ def writeLinkFile(id, title):
player = "WiPlayerCommunityAPI"
if(useAltPlayer):
player = "WiPlayer"
- redirect = "<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head><title>Requesting Video: " + title + "</title><meta http-equiv=\"REFRESH\" content=\"0;url=http://www.netflix.com/" + player + "?lnkctr=apiwn&nbb=y&devKey=gnexy7jajjtmspegrux7c3dj&movieid=" + id + "\"></head><body bgcolor=\"#FF0000\"> <p>Redirecting to Netflix in a moment ...</p></body></html>"
+ if(not IN_CANADA):
+ redirect = "<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head><title>Requesting Video: " + title + "</title><meta http-equiv=\"REFRESH\" content=\"0;url=http://www.netflix.com/" + player + "?lnkctr=apiwn&nbb=y&devKey=gnexy7jajjtmspegrux7c3dj&movieid=" + id + "\"></head><body bgcolor=\"#FF0000\"> <p>Redirecting to Netflix in a moment ...</p></body></html>"
+ else:
+ redirect = "<!doctype html public \"-//W3C//DTD HTML 4.0 Transitional//EN\"><html><head><title>Requesting Video: " + title + "</title><meta http-equiv=\"REFRESH\" content=\"0;url=http://www.netflix.ca/" + player + "?lnkctr=apiwn&nbb=y&devKey=gnexy7jajjtmspegrux7c3dj&movieid=" + id + "\"></head><body bgcolor=\"#FF0000\"> <p>Redirecting to Netflix in a moment ...</p></body></html>"
f = open(fileLoc,'r+')
f.write(redirect)
f.close()