projects
/
plugin.video.netflix.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(perf): Remove an unecessary request when entering a profile
[plugin.video.netflix.git]
/
resources
/
lib
/
MSL.py
diff --git
a/resources/lib/MSL.py
b/resources/lib/MSL.py
index e2e7248f2da085dece0ff614d79f4358515f70c9..db9d68b4b94d5dfab0ab35a446f10303d07a04ce 100644
(file)
--- a/
resources/lib/MSL.py
+++ b/
resources/lib/MSL.py
@@
-147,8
+147,6
@@
class MSL:
# Audio
'heaac-2-dash',
# Audio
'heaac-2-dash',
- 'ddplus-2.0-dash',
- 'ddplus-5.1-dash',
'dfxp-ls-sdh',
'simplesdh',
'nflx-cmisc',
'dfxp-ls-sdh',
'simplesdh',
'nflx-cmisc',
@@
-171,6
+169,12
@@
class MSL:
'clientVersion': '4.0004.899.011',
'uiVersion': 'akira'
}
'clientVersion': '4.0004.899.011',
'uiVersion': 'akira'
}
+
+ # Check if dolby sound is enabled and add to profles
+ if self.kodi_helper.get_dolby_setting():
+ manifest_request_data['profiles'].append('ddplus-2.0-dash')
+ manifest_request_data['profiles'].append('ddplus-5.1-dash')
+
request_data = self.__generate_msl_request_data(manifest_request_data)
resp = self.session.post(self.endpoints['manifest'], request_data)
request_data = self.__generate_msl_request_data(manifest_request_data)
resp = self.session.post(self.endpoints['manifest'], request_data)