2013-08-05, 22:12
Hi,
is there a way to get the PlayCount for plugin:// URLs?
I tried it via the JSON RPC Api, but couldnt find a solution:
returns:
Should it work this way? I also tried it with urlencoded file parameter.
It's all stored in MyVideos*.db / TABLE: "files". I could directly access it via python, but i think this is not allowed when i want the addon to be added to the official repo!?!
Or is this okay?
Any solution would be great...
is there a way to get the PlayCount for plugin:// URLs?
I tried it via the JSON RPC Api, but couldnt find a solution:
Code:
{ "jsonrpc": "2.0", "method": "Files.GetFileDetails", "params": { "file": "plugin://plugin.video.bestofyoutube_com/?url=GOI4H9Kbxxs&mode=playVideo", "media": "video", "properties": ["playcount"] } , "id": 1 }
Code:
{"error":{"code":-32602,"message":"Invalid params."},"id":1,"jsonrpc":"2.0"}
Should it work this way? I also tried it with urlencoded file parameter.
It's all stored in MyVideos*.db / TABLE: "files". I could directly access it via python, but i think this is not allowed when i want the addon to be added to the official repo!?!
Code:
c.execute('SELECT playCount FROM files WHERE strFilename=?', [pluginUrl])
Any solution would be great...