Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logon failes (with fix) but streaming crashes after about 30 seconds - DRM problem? #105

Open
ljakob opened this issue Sep 18, 2023 · 1 comment

Comments

@ljakob
Copy link

ljakob commented Sep 18, 2023

Hi,
I've fixed the string handling in logon.py


                sc = scripts.contents[0] 
                self.log('sc=' + sc) 
                sc = sc.replace( "window.amznMusic = " , "" ) 
                sc = sc.replace( "appConfig:" , "\"appConfig\":" ) 
                sc = sc.replace( "ssr: false" , "\"ssr\":\"\"" ) 
                sc = sc.replace( "isInContainerApp" , "\"isInContainerApp\"" ) 
                sc = sc.replace( "false" , "\"false\"" ) 
                sc = sc.replace( "true" , "\"true\"" ) 
                sc = sc.replace( os.linesep , "" ) 
                sc = sc.replace( ";" , "" ) 
                import re 
                sc = re.compile(',\s*}').sub('}', sc) 

logon passes now, but playback stops after first segment with


2023-09-18 23:43:56.386 T:53934    info <general>: AddOnLog: inputstream.adaptive: [Repr. chooser] Resolution set: 1920x1200, max allowed: 1920x1200, Adjust refresh rate: 0
2023-09-18 23:43:56.461 T:53934    info <general>: AddOnLog: inputstream.adaptive: Successfully parsed manifest file (Periods: 1, Streams in first period: 1, Type: VOD)
2023-09-18 23:43:56.728 T:53934   error <general>: CCurlFile::CReadState::FillBuffer - (0x7f4b700059b0) Failed: HTTP returned code 400
2023-09-18 23:43:56.728 T:53934   error <general>: CCurlFile::Open - <https://music.amazon.de/EU/api/dmls/> Failed with code 400:
                                                   
2023-09-18 23:43:56.728 T:53934   error <general>: AddOnLog: inputstream.adaptive: License server returned failure

should be easy to reproduce.

Thanks for your time

@spacys
Copy link
Owner

spacys commented Dec 17, 2023

I guess you are using a Linux system. Right?!?
It looks like Amazon has blocked Linux, at least I was not able to identify the root cause so far. The communication goes through Inputstream Adaptive, and this is still a black box for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants