Clean up the Thumbnails folder

  Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
tboooe Offline
Fan
Posts: 463
Joined: Dec 2010
Reputation: 0
Post: #41
nfusion2011 Wrote:They're not straight forward and very unclear.

Half the stuff there might as well be in Chineese to me, i can't make heads or tails of it.

The only thing I changed was the path where the thumbnail folder is, by adding my USERNAME in the USERNAME spot.... But nothing works.

I doubt the purpose of this script/program was to help people with good knowledge, as they could have done it themselves, its for the people who don't know any programming, and so its very unclear as to what to do .

At least give all the line numbers that MUST be edited... :/

Here is the list of all variables that need to be changed with some comments:
<LoggingLevel expiredays="14">3</LoggingLevel> ===== no need to change this

<ThumbnailDir>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir> =====if you are using Win7 this should be the directory of where your thumbnails are. Just change the USERNAME to match yours. If you are using a different version of windows then you will need to put the correct path. Use Windows explorer to navigate to the path and copy it here

<Simulation>false</Simulation> ====I suggest you put TRUE here the first time you run this script so nothing gets deleted. Once you are satisfied it works, change to FALSE
<SpotCheck max="500">C:\ThumbCleanerSpotCheck</SpotCheck> ====put any number you want here. The higher the number the more images are displayed for you to review. This is not really important.

<SQLite enabled="false"> ====are you using MYSQL? If not, change this to TRUE
<VideoDBPath>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath> ====again, find where these files exist and put the correct path here.
<MusicDBPath>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Database\MyMusic7.db</MusicDBPath> ====again, find where these files exist and put the correct path here.
</SQLite>

<XBMCMySQLServer enabled="true"> ====if you are not using MYSQL change this to FALSE and dont worry about the stuff below.
<XBMCServerName>192.168.2.124</XBMCServerName><!--Name or IP address-->
<XBMCVideoSchema>xbmc_video</XBMCVideoSchema>
<XBMCMusicSchema>xbmc_music</XBMCMusicSchema>
<MySQLUsername>xbmc</MySQLUsername>
<MySQLPassword>xbmc</MySQLPassword>
<MySQLPort>3306</MySQLPort>
<CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=5...post576974 -->
</XBMCMySQLServer>

<JSONRPC>
<XBMCName>192.168.2.124</XBMCName> ====put the IP address of your computer that is running XBMC or if this script is running on the same computer that XBMC is running you can put LOCALHOST
<method>Raw</method> <!--Either Raw or Curl -->====if you cant get this script to work try CURL

<!--These options are only used if Curl is specified as the method-->
<port>80</port> ====go into XBMC settings>system to see what port XBMC is accessing. I believe default is 8080
<username>xbmc</username> ====in the same settings section look for or add the appropriate user name and password.
<password>xbmc</password>
</JSONRPC>
</root>


Let me know if you have any questions.
find quote
stolek5 Offline
Junior Member
Posts: 39
Joined: Feb 2011
Reputation: 0
Post: #42
Hi,

I have little issue Sad

Code:
03/22/2011 11:39:36 PM INFO    MySQL:Music      Done with MySQL Queries
03/22/2011 11:39:36 PM INFO    JSON-RPC:Video   Adding JSON-RPC videos/audio to catch any hash's that weren't generated from MySQL data. This may take a while...
03/22/2011 11:39:36 PM INFO    JSON-RPC:Video   Adding hashs from JSON-RPC video library items
03/22/2011 11:39:46 PM WARNING JSON-RPC:Video   No data was received from XBMC after waiting for 10 seconds. Cancelling the request.
03/22/2011 11:39:46 PM WARNING JSON-RPC:Video   The response from XBMC is not a valid JSON string:
                                                    
03/22/2011 11:39:46 PM WARNING JSON-RPC:Video   JSON Returned was not valid (attempt 1 of 3), will try again...

how to properly install and configure JSON-RPC plugin ?

many thanks for any tips
find quote
bradvido88 Offline
Donor
Posts: 736
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #43
See info here: http://wiki.xbmc.org/index.php?title=JSO...g_JSON_RPC

TCP: "Allow External Control of XBMC" for localhost control and "Allow Control from other computers" for access from outside localhost.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
find quote
nfusion2011 Offline
Member
Posts: 95
Joined: Mar 2011
Reputation: 0
Post: #44
tboooe Wrote:Here is the list of all variables that need to be changed with some comments:
<LoggingLevel expiredays="14">3</LoggingLevel> ===== no need to change this

<ThumbnailDir>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir> =====if you are using Win7 this should be the directory of where your thumbnails are. Just change the USERNAME to match yours. If you are using a different version of windows then you will need to put the correct path. Use Windows explorer to navigate to the path and copy it here

<Simulation>false</Simulation> ====I suggest you put TRUE here the first time you run this script so nothing gets deleted. Once you are satisfied it works, change to FALSE
<SpotCheck max="500">C:\ThumbCleanerSpotCheck</SpotCheck> ====put any number you want here. The higher the number the more images are displayed for you to review. This is not really important.

<SQLite enabled="false"> ====are you using MYSQL? If not, change this to TRUE
<VideoDBPath>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath> ====again, find where these files exist and put the correct path here.
<MusicDBPath>C:\Users\USERNAME\AppData\Roaming\XBMC\userdata\Database\MyMusic7.db</MusicDBPath> ====again, find where these files exist and put the correct path here.
</SQLite>

<XBMCMySQLServer enabled="true"> ====if you are not using MYSQL change this to FALSE and dont worry about the stuff below.
<XBMCServerName>192.168.2.124</XBMCServerName><!--Name or IP address-->
<XBMCVideoSchema>xbmc_video</XBMCVideoSchema>
<XBMCMusicSchema>xbmc_music</XBMCMusicSchema>
<MySQLUsername>xbmc</MySQLUsername>
<MySQLPassword>xbmc</MySQLPassword>
<MySQLPort>3306</MySQLPort>
<CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=5...post576974 -->
</XBMCMySQLServer>

<JSONRPC>
<XBMCName>192.168.2.124</XBMCName> ====put the IP address of your computer that is running XBMC or if this script is running on the same computer that XBMC is running you can put LOCALHOST
<method>Raw</method> <!--Either Raw or Curl -->====if you cant get this script to work try CURL

<!--These options are only used if Curl is specified as the method-->
<port>80</port> ====go into XBMC settings>system to see what port XBMC is accessing. I believe default is 8080
<username>xbmc</username> ====in the same settings section look for or add the appropriate user name and password.
<password>xbmc</password>
</JSONRPC>
</root>


Let me know if you have any questions.

Ok, so let me get this straight.

#1) My script is going to be run on the same win7 machine that XBMC is on.

#2) I changed all the paths which had USERNAME in them to my userID.

#3) You mentioned: "<XBMCMySQLServer enabled="true"> ====if you are not using MYSQL change this to FALSE and dont worry about the stuff below."; I'm not using whatever that is, I'm using Notepad to edit the XML, so I left that as FALSE, and as you mentioned "dont worry about the stuff below".

So really, there was nothing to change except the USERNAME for my scenario, which I had already done prior to you writing your post.

Yet I get the same garbage errors which dont help the average user troubleshoot the problem.

P.S.: I also tried to change the mode to CURL< and go in settings as you suggested, and add a name/pass (default port was 80 by the way, not 8080 in XBMC)., and I still get garbage errors that are impossible to decode.

Note I executed both the x64 and x86 releases, in admin mode and non admin mode, in curl and raw, failed every time in every combo.
find quote
bradvido88 Offline
Donor
Posts: 736
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #45
nfusion2011 Wrote:...
Yet I get the same garbage errors which dont help the average user troubleshoot the problem...

bradvido88 Wrote:If you have problems, please paste your log and ThumbCleanerConfig.xml to pastebin.com and reply here with a link to them.
Here is what a normal log would look like for reference: http://pastebin.com/raw.php?i=5cd6WEYf

Why don't you do what I ask, post the contents of the .log file, and I'm sure we can fix it? Telling us that you don't understand errors or know the difference between xml, mysql, and notepad doesn't help anyone.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
(This post was last modified: 2011-03-24 02:56 by bradvido88.)
find quote
nfusion2011 Offline
Member
Posts: 95
Joined: Mar 2011
Reputation: 0
Post: #46
bradvido88 Wrote:Why don't you do what I ask, post the contents of the .log file, and I'm sure we can fix it? Telling us that you don't understand errors or know the difference between xml, mysql, and notepad doesn't help anyone.


Ok.

my XML file:

Quote: <!--For support, see here: http://forum.xbmc.org/showthread.php?tid=96097 -->

<root>
<!--Logging Levels: This controls how verbose the logs will be.
1 = ERROR, 2 = WARNING, 3 = INFO, 4 = DEBUG
expiredays - optional attribute, default=30, Logs older than this many days will be deleted. -->
<LoggingLevel expiredays="14">3</LoggingLevel>

<!--ThumbnailDir - This is the directory where XBMC store its thumbs. Unless you are running XBMC in portable mode, it will be in your appdata folder-->
<ThumbnailDir>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir>

<Simulation>true</Simulation><!--If true, no thumbnails/fanart will be deleted, so the program can be tested in a "read only" mode-->
<SpotCheck max="150">C:\ThumbCleanerSpotCheck</SpotCheck><!--If simulation is true, images that are believed to be no longer needed will be copied here (randomly, up to the max), so you can check and make sure they really should be deleted -->

<!--
Database config. Either MySQL or SQLLite can be used. One of these must be enabled for this program to work. Only 1 should be enabled at a time.
Set enabled = true for the one you would like to use. If you don't know which to use, then use SQLLite as that is the XBMC default.
-->
<SQLite enabled="true">
<VideoDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath><!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
<MusicDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyMusic7.db</MusicDBPath> <!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
</SQLite>

<XBMCMySQLServer enabled="false">
<XBMCServerName>localhost</XBMCServerName><!--Name or IP address-->
<XBMCVideoSchema>xbmc_video</XBMCVideoSchema>
<XBMCMusicSchema>xbmc_music</XBMCMusicSchema>
<MySQLUsername>xbmc</MySQLUsername>
<MySQLPassword>xbmc</MySQLPassword>
<MySQLPort>3306</MySQLPort>
<CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=5...post576974 -->
</XBMCMySQLServer>


<!--
JSONRPC - JSON-RPC API connectivity is required for this program to work. It is built into XBMC's Dharma release.
XBMCName - The Name or IP Address of the XBMC instance to connect to. XBMC must be running in order for the JSON-RPC API to work.
method - The method used to connect to JSON-RPC, either Raw or Curl
Raw -Uses Raw TCP/IP "telnet" type of an interface.
-Recommended method.
-Uses TCP port 9090 (not configurable).
-Faster than Curl.
-Requires going to XBMC's Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"
Curl -Uses Curl to communicate with XBMC's Webserver (currenlty only Windows is supported for Curl)
-Much slower than Raw method, but is available if you experience trouble with the Raw method.
-Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.
<port> - The XBMC Webserver port, default 8080
<username> - The XBMC Webserver username, default none
<password> - The XBMC Webserver password, default none
-->
<JSONRPC>
<XBMCName>localhost</XBMCName><!--Either name or ip, address of the XBMC instance that is having it's thumbs cleaned up. (XBMC must be running here). -->
<method>Curl</method> <!--Either Raw or Curl -->

<!--These options are only used if Curl is specified as the method-->
<port>80</port>
<username>xbmc</username>
<password>xxxxxxxxxxxxxxxxxx</password>
</JSONRPC>
</root>

my log using CURL

Quote:03/23/2011 09:37:17 PM INFO Init... JSON-RPC config: XBMCName=localhost, method=Curl, port=80, username=xbmc, password=xxxxxxxxxxxxxxxxxx
03/23/2011 09:37:17 PM INFO Init... Testing connectivity to JSON-RPC interface...
03/23/2011 09:37:20 PM WARNING Init... The response from XBMC is not a valid JSON string:

03/23/2011 09:37:20 PM WARNING Init... JSON Returned was not valid (attempt 1 of 3), will try again...
03/23/2011 09:37:23 PM WARNING Init... The response from XBMC is not a valid JSON string:

03/23/2011 09:37:23 PM WARNING Init... JSON Returned was not valid (attempt 2 of 3), will try again...

my log using RAW

Quote:03/23/2011 09:39:06 PM INFO Init... JSON-RPC config: XBMCName=localhost, method=Raw, port=9090
03/23/2011 09:39:06 PM INFO Init... Testing connectivity to JSON-RPC interface...
03/23/2011 09:39:07 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)

03/23/2011 09:39:07 PM WARNING Init... JSON Returned was not valid (attempt 1 of 3), will try again...
03/23/2011 09:39:08 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)

03/23/2011 09:39:08 PM WARNING Init... JSON Returned was not valid (attempt 2 of 3), will try again...

Thanks
(This post was last modified: 2011-03-24 03:47 by nfusion2011.)
find quote
tboooe Offline
Fan
Posts: 463
Joined: Dec 2010
Reputation: 0
Post: #47
nfusion2011 Wrote:Ok, so let me get this straight.

#1) My script is going to be run on the same win7 machine that XBMC is on.

#2) I changed all the paths which had USERNAME in them to my userID.

#3) You mentioned: "<XBMCMySQLServer enabled="true"> ====if you are not using MYSQL change this to FALSE and dont worry about the stuff below."; I'm not using whatever that is, I'm using Notepad to edit the XML, so I left that as FALSE, and as you mentioned "dont worry about the stuff below".

So really, there was nothing to change except the USERNAME for my scenario, which I had already done prior to you writing your post.

Yet I get the same garbage errors which dont help the average user troubleshoot the problem.

P.S.: I also tried to change the mode to CURL< and go in settings as you suggested, and add a name/pass (default port was 80 by the way, not 8080 in XBMC)., and I still get garbage errors that are impossible to decode.

Note I executed both the x64 and x86 releases, in admin mode and non admin mode, in curl and raw, failed every time in every combo.

Sorry about that...I misled you a bit. You need to change the information in the JSONRPC section. Are you sure the port, username, and password matches what is in the XBMC settings? Also, instead of localhost you may want to try the actual ip address of your computer.
find quote
bradvido88 Offline
Donor
Posts: 736
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #48
Looks like you haven't set up XBMC to accept JSON-RPC requests as detailed in the comments:
Code:
Requires going to XBMC's Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"
In XBMC, go to Settings-->Network and check both the options for
"Allow programs on this system to control XBMC"
"Allow programs on other systems to control XBMC"

If you are worried about security, you can uncheck them when you're done with the script.

After that, use the "Raw" method and you should be good to go.

I'm not sure why Curl isn't working, but shouldn't be needed

If you have still having trouble, change the <LoggingLevel> from 3 to 4 and re-post the log.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (ForTheRecord & XBMC Library Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
find quote
nfusion2011 Offline
Member
Posts: 95
Joined: Mar 2011
Reputation: 0
Post: #49
Same problems...

Here is my XML file again with the setting changed to RAW and debug to 4.

Quote: <!--For support, see here: http://forum.xbmc.org/showthread.php?tid=96097 -->

<root>
<!--Logging Levels: This controls how verbose the logs will be.
1 = ERROR, 2 = WARNING, 3 = INFO, 4 = DEBUG
expiredays - optional attribute, default=30, Logs older than this many days will be deleted. -->
<LoggingLevel expiredays="14">4</LoggingLevel>

<!--ThumbnailDir - This is the directory where XBMC store its thumbs. Unless you are running XBMC in portable mode, it will be in your appdata folder-->
<ThumbnailDir>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Thumbnails</ThumbnailDir>

<Simulation>true</Simulation><!--If true, no thumbnails/fanart will be deleted, so the program can be tested in a "read only" mode-->
<SpotCheck max="150">C:\ThumbCleanerSpotCheck</SpotCheck><!--If simulation is true, images that are believed to be no longer needed will be copied here (randomly, up to the max), so you can check and make sure they really should be deleted -->

<!--
Database config. Either MySQL or SQLLite can be used. One of these must be enabled for this program to work. Only 1 should be enabled at a time.
Set enabled = true for the one you would like to use. If you don't know which to use, then use SQLLite as that is the XBMC default.
-->
<SQLite enabled="true">
<VideoDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyVideos34.db</VideoDBPath><!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
<MusicDBPath>C:\Users\ADMIN\AppData\Roaming\XBMC\userdata\Database\MyMusic7.db</MusicDBPath> <!--Cannot be a UNC path. If the .db file is not local, map a drive to it-->
</SQLite>

<XBMCMySQLServer enabled="false">
<XBMCServerName>localhost</XBMCServerName><!--Name or IP address-->
<XBMCVideoSchema>xbmc_video</XBMCVideoSchema>
<XBMCMusicSchema>xbmc_music</XBMCMusicSchema>
<MySQLUsername>xbmc</MySQLUsername>
<MySQLPassword>xbmc</MySQLPassword>
<MySQLPort>3306</MySQLPort>
<CharacterSet>latin1</CharacterSet><!--latin1 is default, and recommended. See here for details: http://forum.xbmc.org/showthread.php?p=5...post576974 -->
</XBMCMySQLServer>


<!--
JSONRPC - JSON-RPC API connectivity is required for this program to work. It is built into XBMC's Dharma release.
XBMCName - The Name or IP Address of the XBMC instance to connect to. XBMC must be running in order for the JSON-RPC API to work.
method - The method used to connect to JSON-RPC, either Raw or Curl
Raw -Uses Raw TCP/IP "telnet" type of an interface.
-Recommended method.
-Uses TCP port 9090 (not configurable).
-Faster than Curl.
-Requires going to XBMC's Settings, Network, Services, and checking "Allow Programs on this/others systems to control XBMC"
Curl -Uses Curl to communicate with XBMC's Webserver (currenlty only Windows is supported for Curl)
-Much slower than Raw method, but is available if you experience trouble with the Raw method.
-Requires going to Settings, Network, Services, and checking "Allow control of XBMC via HTTP" and setting the Port/Username/Password you desire.
<port> - The XBMC Webserver port, default 8080
<username> - The XBMC Webserver username, default none
<password> - The XBMC Webserver password, default none
-->
<JSONRPC>
<XBMCName>192.18.10.50</XBMCName><!--Either name or ip, address of the XBMC instance that is having it's thumbs cleaned up. (XBMC must be running here). -->
<method>RAW</method> <!--Either Raw or Curl -->

<!--These options are only used if Curl is specified as the method-->
<port>80</port>
<username>xbmc</username>
<password>xxxxxxx</password>
</JSONRPC>
</root>

Here is the log, the IP address shown is my local IP, not my internet IP (ie: the one assigned by my router)

Quote:03/23/2011 10:03:56 PM DEBUG Init... Logging level set to: 4
03/23/2011 10:03:56 PM DEBUG Init... Logs will be deleted after 14 days.
03/23/2011 10:03:56 PM INFO Init... JSON-RPC config: XBMCName=192.18.10.50, method=Raw, port=9090
03/23/2011 10:03:56 PM INFO Init... Testing connectivity to JSON-RPC interface...
03/23/2011 10:03:56 PM DEBUG Init... JSON-RPC Command = {"jsonrpc": "2.0", "method": "JSONRPC.Ping", "id": "1"}
03/23/2011 10:03:56 PM DEBUG Init... Connecting to JSON-RPC at 192.18.10.50:9090
03/23/2011 10:03:57 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)

03/23/2011 10:03:57 PM WARNING Init... JSON Returned was not valid (attempt 1 of 3), will try again...
03/23/2011 10:03:57 PM DEBUG Init... JSON-RPC Command = {"jsonrpc": "2.0", "method": "JSONRPC.Ping", "id": "1"}
03/23/2011 10:03:57 PM DEBUG Init... Connecting to JSON-RPC at 192.18.10.50:9090
03/23/2011 10:03:58 PM ERROR Init... Failed to call JSONRPC.Ping using XBMC's JSON-RPC interface: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at java.net.Socket.<init>(Unknown Source)
at utilities.XbmcJsonRpc.callMethodWithRetry(XbmcJsonRpc.java:724)
at utilities.XbmcJsonRpc.callMethod(XbmcJsonRpc.java:673)
at utilities.XbmcJsonRpc.ping(XbmcJsonRpc.java:581)
at utilities.Config.loadConfig(Config.java:248)
at mylibrary.ThumbCleaner.<init>(ThumbCleaner.java:42)
at mylibrary.ThumbCleaner.main(ThumbCleaner.java:15)

03/23/2011 10:03:58 PM WARNING Init... JSON Returned was not valid (attempt 2 of 3), will try again...
03/23/2011 10:03:58 PM DEBUG Init... JSON-RPC Command = {"jsonrpc": "2.0", "method": "JSONRPC.Ping", "id": "1"}
03/23/2011 10:03:58 PM DEBUG Init... Connecting to JSON-RPC at 192.18.10.50:9090

Heres my XBMC screen

[Image: setqt.jpg]
find quote
nfusion2011 Offline
Member
Posts: 95
Joined: Mar 2011
Reputation: 0
Post: #50
K works now... i needed to have XBMX running while I ran the script, thats definitly a first, cause usually windows requires u shut down the program that the script is modifying/updating prior to running it.

Brought my thumbnail folder down 100mb out of a GB.

I did a quick test, i right clicked 1 of my movies, went to movie info, and clicked get fanart. It was my understanding, that if this worked fully it would have removed all these cached thumbnails/afan arts so it'd re download the previews, but I see all the fan arts for the movie already previewed, it didnt need to fetch them again, so there's still a whole bunch of garbage images left in my cache.... is this intentional?

it definitely cleaned something, cause I'm down 100mb, but not as much as I expected.
find quote
Post Reply