Posts by frafall

    When changing audio output device by the JSONRPC API while playing a music file (mp3), Kodi crashes and restarts.

    Hardware: Raspberry PI3

    LIbreelec: 8.2.1 official

    Architecture: RPI2.arm

    I am changing audio output device by posting to port 8080 (Kodi):

    Code
    DEVICE="PI:HDMI"
    #DEVICE="PULSE:Default"
    #DEVICE="ALSA:iec958:CARD=sndrpihifiberry,DEV=0"
    
    JSON='{"jsonrpc":"2.0","method":"Settings.SetSettingValue", "params":{"setting":"audiooutput.audiodevice","value":"'$DEVICE'"},"id":1}'
    
    curl -v -H "Content-type: application/json" -X POST -d "$JSON" http://$HOST:8080/jsonrpc

    Crashlog is attached.

    Best regards

    frafall

    Thanks, seems to me the best path is option 1; to pack an archive of the original source including submodules and publish in my own github together with the addon (or persuade the author to do it), the cloning during build is annoying me....

    Hi, I'm building an addon which contains another package which uses submodules, ie not under my control. Submodule versions might be updated and new dependencies added.

    So, since github does not support getting an archive which includes submodules I'm wondering if anyone has any elegant solutions.

    My initial thought was to hook the script/get functionality in libreelec to build a complete archive but there are no possible pre/post or other exits in the script.

    So, for now I have a post_unpack in package.mk which clones the necessary source, ie I hardcoded tags for the submodule which is not very elegant and wastes time at unpacking.

    I saw this was answered earlier but it was kinda low on details.