Scraping update problem driving me nuts :(

Hey all! Experienced Kodi user here. Simple setup. I have a main media center machine (windows 7) working great. I have a few shares on it and other laptops and desktops connected to it that run OS10 and windows 7/10 work great! Except for this an...

Using CEC to Switch Inputs – LibreElec

So I want to use CEC to simply switch input sources to the one that Kodi is on when a button on the remote is pushed. I cant seem to do this. There is a function called CECActivateSource that I see here: list_of_built-in_functions (wiki) However, wh...

Strange buffering issue

Hi All, I am having a strange issue with my kodi setup. I have previously increased the buffer size and all has been working hunky dory. I have noticed the following happening a few times and has been getting more and more frequent: I will pause th...

Car PC using Raspberry Pi and Kodi Car Skin

Hi all I would like to install a RPi with a 7" touchscreen in my VW T4 for the following; 1 MP3 Player 2 FM Radio Tuner (or DAB) 3 Sat Nav 4 Rear View Camera (USB mounted at rear) 5 Dashcam (cam mounted on dsh) 6 Outside Temperature 7 B...

AAC 5.1 Passthrough (plays in stereo)

First of all, I am sorry if this issue has been discussed/answered before. Searching gives me hundreds of answers and it is impossible to read every single one. I am having a Zidoo x9s and use zdmc based on kodi 16.1. I have the box connected through ...

GetMovieDetails – A little help on how to get this API call to work?

Hello,

I'm almost certainly missing something basic and when someone clues me in, I'll no doubt smack myself on the forehead.

I wrote a python script many years ago which works with XBMC (prior to the rebrand to Kodi). The script used the GetMovieDetails API call and continued to work after the switch from XBMC to Kodi. At some point this stopped working (I can't recall exactly which version of Kodi) and I never really fixed it was only something I was working on and never completely finished, but figured it was time to. However I'm struggling to do so since the API has changed (again, I'm sure i'm overlooking the obvious, please be kind!).

Originally I used the following code (where movieID is the id of the movie in the SQL database i.e. 51)

Code:
xbmc_json_rpc_url = "http://username:password@localhost:8080/jsonrpc"

payload = {"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieDetails", "params": {"properties": ["mpaa","tagline"], "movieid": int(movieID)}, "id": "1"}
url_param = urllib.parse.urlencode({'request': json.dumps(payload)})

response = requests.get(xbmc_json_rpc_url + '?' + url_param, headers=headers)


Looking at http://kodi.wiki/view/JSON-RPC_API/v6#Vi...vieDetails, the JSON request body has changed since I last used it, but I can't figure out how to get it working again even in a basic form and was hoping for help.

On this page the schema is
Code:
{
  "params": [
    {
      "$ref": "Library.Id",
      "name": "movieid",
      "required": True
    },
    {
      "$ref": "Video.Fields.Movie",
      "name": "properties"
    }
  ],
  "description": "Retrieve details about a specific movie",
  "returns": {
    "properties": {
      "moviedetails": {
        "$ref": "Video.Details.Movie"
      }
    },
    "type": "object"
  }
}

It also mentioned the parameters are
Quote:
Library.Id movieid
[ Video.Fields.Movie properties ]


So for example if I wanted to obtain the details for a movie with an ID "51", I thought it would be the case that I need to create the following (where the Library.Id has been substituted for the movieID):

Code:
payload = {"jsonrpc": "2.0", "method": "VideoLibrary.GetMovieDetails", \
            "params": [\
             {\
             "$ref": 51,\
             "name": "movieid",\
             "required": True
             },\
             {\
             "$ref": "Video.Fields.Movie",\
             "name":"properties"\
             }\
            ],\
            "description":"Retrieve the details about a specific movie",\
            "returns":{\
             "properties":{\
              "moviedetails":{\
               "$ref":"Video.Details.Movie"\
              }\
             },\
            "type":"object"\
            }\
            }

Using a logger object in python, this produces the json below, which is then used as a request body to http://username:password@localhost:8080/jsonrpc (as shown in the original code).

Code:
{
    "params": [
        {
            "name": "movieid",
            "$ref": 51,
            "required": true
        },
        {
            "name": "properties",
            "$ref": "Video.Fields.Movie"
        }
    ],
    "description": "Retrieve the details about a specific movie",
    "returns": {
        "type": "object",
        "properties": {
            "moviedetails": {
                "$ref": "Video.Details.Movie"
            }
        }
    },
    "jsonrpc": "2.0",
    "method": "VideoLibrary.GetMovieDetails"
}

When I do this, I only seem to get a hang up on the python script. No data or error codes being returned from Kodi or an indication of what's happening.

Could anyone shed any light on this?
Could anyone provide me with a basic GetMovieDetails example in case that helps?

Any help would be greatly appreciated. Thanks in advance!

where is [X] KILL button ???

just tried jarvis version on Win 7. WHY does this monster have to take over my computer ?!? I eventually found some advanced settings, marked to NOT go full screen - but it still does ! and WHY does this - what is supposed to be a 'media player' have t...

Kodi 17 Beta Vnsi client crashes on Server reboot

Hi. When my server reboots or shutdown -> my rasp3 vnsi Client with kodi 17 (7.008) Libreelec crashes. Even if i dont look livetv. Creating Debug log with crash watching Series (not liveTV) Debug Log http://sprunge.us/ZIgG crash 15:04 Vnsiserve...

Redirecting

Hi!

I have a server component, what provides the m3u. I dont want to send to the user the stream urls, so the m3u is something this:

Code:
#EXTM3U
#EXTINF:-1 tvg-id="channel_1" group-title="gt" tvg-logo="logo.png",channel1
https://my_server_ip/getchannel/user_hash/channel1_hash
#EXTINF:-1 tvg-id="channel_2" group-title="gt" tvg-logo="logo.png",channel2
https://my_server_ip/getchannel/user_hash/channel2_hash
#EXTINF:-1 tvg-id="channel_3" group-title="gt" tvg-logo="logo.png",channel3
https://my_server_ip/getchannel/user_hash/channel3_hash
#EXTINF:-1 tvg-id="channel4" group-title="gt" tvg-logo="logo.png",channel4
https://my_server_ip/getchannel/user_hash/channel5_hash

My getchannel code redirects the get:

PHP Code:
header("Location: " $row["channel_url"]); 

When the channel is a http/https stream, then the redirect working, but the rtmp/rtsp redirects not. How can I redirect the rtmp streams?

UWP app won’t start in assigned access

UWP app fails to start with error 0x80270254 when assigned access is used on latest public release. Double checked, and I have the BSOD fix installed. Tested on two different computers with different MS admin accounts and got the same results. App runs...

DSF files and audible “pop” between tracks

I have several DSF files ripped from SACD iso files. These files in Kodi are downsampled to 192/24 and output as PCM over HDMI to my Oppo player There is an audible "pop" between tracks. If I rip from ISO to DFF, this does not occur, but DFF does no...