2013-12-12, 04:10
hauntvictim,
OK, I installed YOUR recommended user agent switcher. How do you set it up to work with Netflix? I always keep getting this error code:
That is without XBMC running, in other words only using Chrome.
In my opinion, all that is needed to be done is to modify the below function:
so that it returns the below string:
In other words add the --user-agent parameter to the 'return' statement.
I would modify the code, but I am busy the next two days, and my Python experience is limited. If the addons were written in 'C' that might be different..LOL
OK, I installed YOUR recommended user agent switcher. How do you set it up to work with Netflix? I always keep getting this error code:
Quote:Error Code: N8109
That is without XBMC running, in other words only using Chrome.
In my opinion, all that is needed to be done is to modify the below function:
Code:
def getFullPath(path, url, useKiosk, userAgent):
profile = ""
if useOwnProfile:
profile = '--user-data-dir="'+profileFolder+'" '
kiosk = ""
if useKiosk=="yes":
kiosk = '--kiosk '
if userAgent:
userAgent = '--user-agent="'+userAgent+'" '
return '"'+path+'" '+profile+userAgent+'--start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run '+kiosk+'"'+url+'"'
so that it returns the below string:
Code:
/usr/bin/google-chrome --start-maximized --disable-translate --disable-new-tab-first-run --no-default-browser-check --no-first-run --user-agent="Mozilla/5.0 --kiosk (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120427 Firefox/15.0a1" --kiosk "http://movies.netflix.com/WiPlayer?movieid=60031686"
In other words add the --user-agent parameter to the 'return' statement.
I would modify the code, but I am busy the next two days, and my Python experience is limited. If the addons were written in 'C' that might be different..LOL