Posts by vpeter

    Well, I'm not sure what you are doing but works perfectly fine for me. It is probably wrong approach but it works. Also sleep works as you can see:

    You can retrieve the channel list with command

    Code
    curl -H 'Content-Type: application/json' -d '{"jsonrpc": "2.0", "method": "PVR.GetChannels", "params": {"channelgroupid": "alltv", "properties" :["uniqueid"]},"id": 1}' http://127.0.0.1:8080/jsonrpc

    look for channel id and then use autoexec.py something like

    Code
    import xbmc
    import xbmcgui
    import xbmcaddon
    import json
    import time
    # sleep few seconds
    time.sleep(5)
    # play a channel 149
    jsonCmd = '{"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"channelid":149}}}'
    jsonRv = xbmc.executeJSONRPC(jsonCmd)


    I think last channel can be played automatically (set somewhere in pvr settings).

    Sorry but vpeter doesn't care much - he is now doing only things for personal interest. If I'm ignored then I'm ignoring back other things. Like this one.

    Also I see no reason why 16GB stick would work and 128GB not. Above change just enables writing in general.

    I think this is easier solution to your problem:

    Code
    ln -s /storage/.kodi/media/Fonts ~/.fonts

    libass can read from system folder or from user home one. But obviously not from .kodi.

    Before

    Code
    11:02:53.015 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: Using default font family: (Favorit, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans
    11:02:53.015 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Favorit, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans
    11:02:53.019 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: Using default font family: (Artist-Modern, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans
    11:02:53.019 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Artist-Modern, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans
    11:02:53.024 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: Using default font family: (Purisa, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans
    11:02:53.024 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Purisa, 400, 0) -> /usr/share/fonts/liberation/LiberationSans-Regular.ttf, 0, LiberationSans

    after

    Code
    11:17:28.151 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Favorit, 400, 0) -> /storage/.local/share/fonts/Favorit.ttf, 0, Favorit
    11:17:28.162 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Artist-Modern, 400, 0) -> /storage/.local/share/fonts/Artist-Modern.ttf, 0, Artist-Modern
    11:17:28.164 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: Using default font family: (Purisa, 400, 0) -> /storage/.local/share/fonts/arial.ttf, 0, ArialMT
    11:17:28.164 T:140242383945024   DEBUG: CDVDSubtitlesLibass: [ass] fontselect: (Purisa, 400, 0) -> /storage/.local/share/fonts/arial.ttf, 0, ArialMT

    Final fix: fontconfig: add kodi font folder to a list by vpeter4 · Pull Request #2301 · LibreELEC/LibreELEC.tv · GitHub