Skip to content

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

@ljakob

Description

@ljakob

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions