Skip to content

Commit

Permalink
chore(debug): Adds HTML debug output
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Golasch committed Jul 2, 2017
1 parent bab3091 commit 303bb46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
11 changes: 6 additions & 5 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -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"/>
Expand Down Expand Up @@ -28,7 +28,10 @@
<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
Expand All @@ -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>
6 changes: 4 additions & 2 deletions resources/lib/NetflixSession.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,9 @@ def extract_inline_netflix_page_data (self, page_soup):
: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:
Expand Down Expand Up @@ -1360,7 +1362,7 @@ def fetch_search_results (self, search_str, list_from=0, list_to=10):
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
Expand Down

0 comments on commit 303bb46

Please sign in to comment.