X-Git-Url: http://git.code-monkey.de/?p=plugin.video.netflix.git;a=blobdiff_plain;f=resources%2Flib%2FNetflixSession.py;h=2798de05fd20eb5528da29342b194b0a1ffddde9;hp=3f9173be29adac83336bf0ab289bfad350f16f29;hb=c83841672d0834fd26d54d87e5a4430c47a3e15f;hpb=b6a1c1cd2250104b139115ef16475c539626a9a7 diff --git a/resources/lib/NetflixSession.py b/resources/lib/NetflixSession.py index 3f9173b..2798de0 100644 --- a/resources/lib/NetflixSession.py +++ b/resources/lib/NetflixSession.py @@ -24,10 +24,10 @@ class NetflixSession: urls = { 'login': '/login', - 'browse': '/browse', - 'video_list_ids': '/warmer', + 'browse': '/profiles/manage', + 'video_list_ids': '/preflight', 'shakti': '/pathEvaluator', - 'profiles': '/browse', + 'profiles': '/profiles/manage', 'switch_profiles': '/profiles/switch', 'adult_pin': '/pin/service', 'metadata': '/metadata', @@ -280,14 +280,9 @@ class NetflixSession: 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; - 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 @@ -1568,8 +1563,6 @@ class NetflixSession: }) params = { - 'withSize': True, - 'materialize': True, 'model': self.user_data['gpsModel'] }