projects
/
plugin.video.netflix.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6ff6b14
)
chore(perf): Remove an unecessary request when entering a profile
author
Sebastian Golasch
<public@asciidisco.com>
Thu, 9 Mar 2017 09:36:23 +0000
(10:36 +0100)
committer
Sebastian Golasch
<public@asciidisco.com>
Thu, 9 Mar 2017 09:36:23 +0000
(10:36 +0100)
resources/lib/NetflixSession.py
patch
|
blob
|
history
diff --git
a/resources/lib/NetflixSession.py
b/resources/lib/NetflixSession.py
index d3334bcfb596065d35551d996f3e9b3528335b06..6755c66694ba40a8045cb08b01bd9bfa107d152a 100644
(file)
--- a/
resources/lib/NetflixSession.py
+++ b/
resources/lib/NetflixSession.py
@@
-280,14
+280,9
@@
class NetflixSession:
if response.status_code != 200:
return False
if response.status_code != 200:
return False
- # fetch the index page again, so that we can fetch the corresponding user data
- browse_response = self._session_get(component='browse')
- only_script_tags = SoupStrainer('script')
- browse_soup = BeautifulSoup(browse_response.text, 'html.parser', parse_only=only_script_tags)
account_hash = self._generate_account_hash(account=account)
self.user_data['guid'] = profile_id;
account_hash = self._generate_account_hash(account=account)
self.user_data['guid'] = profile_id;
- self._save_data(filename=self.data_path + '_' + account_hash)
- return True
+ return self._save_data(filename=self.data_path + '_' + account_hash)
def send_adult_pin (self, pin):
"""Send the adult pin to Netflix in case an adult rated video requests it
def send_adult_pin (self, pin):
"""Send the adult pin to Netflix in case an adult rated video requests it