chore(debug): Adds HTML debug output
authorSebastian Golasch <sebastian.golasch@telekom.de>
Sun, 2 Jul 2017 19:46:30 +0000 (21:46 +0200)
committerSebastian Golasch <sebastian.golasch@telekom.de>
Sun, 2 Jul 2017 19:46:30 +0000 (21:46 +0200)
addon.xml
resources/lib/NetflixSession.py

index 8f3b40af619a7ad70601cad0e5c4b6c9def13bc6..626f89888a0dbaf0e0d6f6d0e10945995340fe9f 100644 (file)
--- a/addon.xml
+++ b/addon.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
-<addon id="plugin.video.netflix" name="Netflix" version="0.11.12" provider-name="libdev + jojo + asciidisco">
+<addon id="plugin.video.netflix" name="Netflix" version="0.11.13" provider-name="libdev + jojo + asciidisco">
   <requires>
     <import addon="xbmc.python" version="2.24.0"/>
     <import addon="script.module.beautifulsoup4" version="4.3.2"/>
     <license>MIT</license>
     <forum>http://www.kodinerds.net/index.php/Thread/55607-Inputstream-Agile-Betatest-Netflix/</forum>
     <source>https://github.com/asciidisco/plugin.video.netflix</source>
-    <news>v0.11.12 (2017-07-02)
+    <news>v0.11.13 (2017-07-02)
+    - Update number of requested list items (see https://github.com/asciidisco/plugin.video.netflix/issues/42 for details)
+    
+    v0.11.12 (2017-07-02)
     - Fix missing isFirstUse inline setting
     - Fix dynamic ESN loading for widevine
     - Fix unicode decoding problems
@@ -43,8 +46,6 @@
 
     v0.11.9 (2017-4-5)
     - Fix issues with persisted msl manifests
-
-    v0.11.8 (2017-3-17)
-    - Fix 1 sec delay per request on windows (see https://github.com/asciidisco/plugin.video.netflix/issues/21 for details)</news>
+    </news>
   </extension>
 </addon>
index e5d32191bcb993adcf599f64d26897f14153fd02..eed11b3aff82e0697fd83a62a498671e1403c6f7 100644 (file)
@@ -149,7 +149,9 @@ class NetflixSession:
             :obj:`list` of :obj:`dict`
                 List of all the serialized data pulled out of the pagws <script/> tags
         """
-        scripts = page_soup.find_all('script', attrs={'src': None});
+        scripts = page_soup.find_all('script', attrs={'src': None})
+        self.log(msg='Debug output for HTML contents:')
+        self.log(msg=page_soup)
         self.log(msg='Trying sloppy inline data parser')
         inline_data = self._sloppy_parse_inline_data(scripts=scripts)
         if self._verfify_auth_and_profiles_data(data=inline_data) != False:
@@ -1360,7 +1362,7 @@ class NetflixSession:
         response = self._path_request(paths=paths)
         return self._process_response(response=response, component='Search results')
 
-    def fetch_video_list (self, list_id, list_from=0, list_to=20):
+    def fetch_video_list (self, list_id, list_from=0, list_to=26):
         """Fetches the JSON which contains the contents of a given video list
 
         Parameters