Kodi has several web interface,
Is it possible using rainmeter's webparser plugin to display recently added movies and tvshow ?
Here's one of the interface : Chorus
My goal is something like this :
taken from :
http://kodi.wiki/view/Maraschino#
It is currently September 29th, 2024, 5:23 am
Display recently added items from Kodi web interface?
-
- Posts: 28
- Joined: March 2nd, 2015, 10:22 am
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Display recently added items from Kodi web interface?
Probably it is, it depends on the URL that you use to capture information.
Post an URL and so I (we) can look at it and give you a hand in creating your own skin if you have problems.
for example:
https://forum.rainmeter.net/viewtopic.php?p=109240#p109240
Post an URL and so I (we) can look at it and give you a hand in creating your own skin if you have problems.
for example:
https://forum.rainmeter.net/viewtopic.php?p=109240#p109240
-
- Posts: 28
- Joined: March 2nd, 2015, 10:22 am
Re: Display recently added items from Kodi web interface?
The url is \\ipserverwherekodiruns:port\webinterface
You can actually see it in the my first pic.. it runs locally.. is it possible to capture it with webparser?
You can actually see it in the my first pic.. it runs locally.. is it possible to capture it with webparser?
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Display recently added items from Kodi web interface?
Since it is a local link, I (we) can not see what's inside.
You'll need to use this tool and see what it returns.
You'll need to use this tool and see what it returns.
-
- Posts: 28
- Joined: March 2nd, 2015, 10:22 am
Re: Display recently added items from Kodi web interface?
I see...The main web interface returns thisFreeRaider wrote:Since it is a local link, I (we) can not see what's inside.
You'll need to use this tool and see what it returns.
http://192.168.0.147:8080/addons/webinterface.chorus/
Code: Select all
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Chorus.</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimal-ui">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<!-- FavIco -->
<link rel="shortcut icon" href="favicon.png" type="image/png">
<!-- Loading Bootstrap -->
<link href="lib/flatui/bootstrap/css/bootstrap.css" rel="stylesheet">
<!-- Loading jQueryUI-->
<link href="lib/jquery-ui/css/smoothness/jquery-ui-1.10.3.custom.min.css" rel="stylesheet">
<!-- Loading Flat UI -->
<link href="lib/flatui/css/flat-ui.css" rel="stylesheet">
<!-- Loading icons css -->
<link href="theme/css/font-awesome/font-awesome.css" rel="stylesheet">
<!-- Loading Chorus css -->
<link href="theme/css/styles.css" rel="stylesheet">
<!-- Sound Manager (streaming audio) -->
<script src="lib/soundmanager/script/soundmanager2-nodebug-jsmin.js"></script>
</head>
<body>
<div id="init-loading">
<div class="loading-box">Loading Application</div>
</div>
<!-- Chorus combined change to chorus.min.js for uglified version -->
<script src="chorus.min.js"></script>
</body>
</html>
Code: Select all
Connection Error!
Unable to connect to web site: (http://192.168.0.147:8080/addons/webinterface.chorus/#mymovies)
-
- Rainmeter Sage
- Posts: 5534
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Display recently added items from Kodi web interface?
Is this a Kodi addon: 'MyMovies.dk'?cemara wrote:I see...
But the page im trying to retrieve which contains recent movies wont connectAny idea why?Code: Select all
Connection Error! Unable to connect to web site: (http://192.168.0.147:8080/addons/webinterface.chorus/#mymovies)
If so, it requires you to have an account and login to it...
Sadly, the webparser cannot be used to access pages if a login is needed.
That is most likely why it will not let you see anything using the webparser.
If it is not 'MyMovies.dk' addon, then check that you have the right web address...
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 28
- Joined: March 2nd, 2015, 10:22 am
Re: Display recently added items from Kodi web interface?
Its chorus.. one of kodi's web interfaces..eclectic-tech wrote:Is this a Kodi addon: 'MyMovies.dk'?
If so, it requires you to have an account and login to it...
Sadly, the webparser cannot be used to access pages if a login is needed.
That is most likely why it will not let you see anything using the webparser.
If it is not 'MyMovies.dk' addon, then check that you have the right web address...
http://kodi.wiki/view/Add-on:Chorus
There are also other web interfaces as well.. even the default one should work same way as well..
since it retrieves data locally from http.. shouldnt it be possible to capture the data?
In my first pic im using my office comp to open kodi content through http from my Media server..
-
- Rainmeter Sage
- Posts: 5534
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Display recently added items from Kodi web interface?
Not having Kodi, it was just a suggestion to check... perhaps a Kodi user will chime in...
In general, if you cannot retrieve data from a URL using the RegExpTool that Freeraider mentioned,
then you are probably not going to be able to parse it.
Have you asked at Kodi? Just trying to cover all angles...
In general, if you cannot retrieve data from a URL using the RegExpTool that Freeraider mentioned,
then you are probably not going to be able to parse it.
Have you asked at Kodi? Just trying to cover all angles...
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 28
- Joined: March 2nd, 2015, 10:22 am
Re: Display recently added items from Kodi web interface?
Hmm i think i got some clues.. in general Kodi uses JSONRPC to query its library..eclectic-tech wrote:Not having Kodi, it was just a suggestion to check... perhaps a Kodi user will chime in...
In general, if you cannot retrieve data from a URL using the RegExpTool that Freeraider mentioned,
then you are probably not going to be able to parse it.
Have you asked at Kodi? Just trying to cover all angles...
so i tried it and i think figured out the syntax, this is the code that should be run in browser
movies :
Code: Select all
http://username:pass@ipserver:port/jsonrpc?request={ "jsonrpc": "2.0", "method": "VideoLibrary.GetRecentlyAddedMovies", "id": "mybash"}
Code: Select all
http://username:pass@ipserver:port/jsonrpc?request={ "jsonrpc": "2.0", "method": "VideoLibrary.GetRecentlyAddedEpisodes", "id": "mybash"}
Code: Select all
{"id":"mybash","jsonrpc":"2.0","result":{"limits":{"end":25,"start":0,"total":25},"movies":[{"label":"Tallulah","movieid":10921},{"label":"PTU","movieid":10920},{"label":"Secret Admirer","movieid":10919},{"label":"Imperium","movieid":10918},{"label":"Checkmate","movieid":10917},{"label":"Captain America: Civil War","movieid":10916},{"label":"Andron","movieid":10915},{"label":"Kucch To Hai","movieid":10914},{"label":"Red Road","movieid":10913},{"label":"Kids","movieid":10912},{"label":"Hidden in the Woods","movieid":10911},{"label":"Amateur Night","movieid":10910},{"label":"Sarbjit","movieid":10909},{"label":"The Conjuring 2","movieid":10908},{"label":"Hard Target 2","movieid":10907},{"label":"Edge of Winter","movieid":10906},{"label":"Blood Father","movieid":10905},{"label":"Finding Mr. Right 2","movieid":10904},{"label":"Death Bell","movieid":10903},{"label":"Genius","movieid":10902},{"label":"Sultan","movieid":10901},{"label":"Junooniyat","movieid":10900},{"label":"On Golden Pond","movieid":10899},{"label":"Ghosthunters","movieid":10898},{"label":"Equals","movieid":10897}]}}
Code: Select all
{"id":"mybash","jsonrpc":"2.0","result":{"episodes":[{"episodeid":52225,"label":"1x08. The Call of the Wild"},{"episodeid":52224,"label":"S01. Special E01-E07"},{"episodeid":52223,"label":"1x03. Episode 3"},{"episodeid":52222,"label":"1x02. Episode 2"},{"episodeid":52221,"label":"1x01. Episode 1"},{"episodeid":52220,"label":"1x04. After the Play Ends"},{"episodeid":52219,"label":"1x03. I am Behind You"},{"episodeid":52218,"label":"1x43. Episode 43"},{"episodeid":52217,"label":"1x42. Episode 42"},{"episodeid":52216,"label":"3x495. Making Of Infinite Company"},{"episodeid":52215,"label":"1x22. Final Episode"},{"episodeid":52214,"label":"1x21. Episode Twenty-one"},{"episodeid":52213,"label":"1x20. Episode Twenty"},{"episodeid":52212,"label":"1x19. Episode Nineteen"},{"episodeid":52211,"label":"1x18. Episode Eighteen"},{"episodeid":52210,"label":"1x17. Episode Seventeen"},{"episodeid":52209,"label":"1x16. Episode Sixteen"},{"episodeid":52208,"label":"1x15. Episode Fifteen"},{"episodeid":52207,"label":"1x14. Episode Fourteen"},{"episodeid":52206,"label":"1x13. Episode Thirteen"},{"episodeid":52205,"label":"1x12. Episode Twelve"},{"episodeid":52204,"label":"1x11. Episode Eleven"},{"episodeid":52203,"label":"1x10. Episode Ten"},{"episodeid":52202,"label":"1x09. Episode Nine"},{"episodeid":52201,"label":"1x08. Episode Eight"}],"limits":{"end":25,"start":0,"total":25}}}
http://kodi.wiki/view/JSON-RPC_API/v6#VideoLibrary.GetRecentlyAddedMovies
I'll try asking in Kodi forum about this..
As of JSON + Rainmeter Webparser,
i googled for JSON rainmeter and i found some examples.. but i't's still pretty vague and i'm not sure where to start..
Is there any skins that utilizes JSON? maybe i could use it to figure this out
-
- Developer
- Posts: 22783
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Display recently added items from Kodi web interface?
WebParser doesn't know or care about any particular data format, XML, JSON or anything else. It simply sees what comes back as plain text, and it is up to you to parse the information using regular expression. Any text returned by the site that follows some pattern that you can use with regular expression to extract the data you want should be fine.