2012-11-03, 01:28
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.
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.