Clean up the Thumbnails folder

  Thread Rating:
  • 4 Votes - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
ctawn Offline
Senior Member
Posts: 238
Joined: May 2009
Reputation: 0
Post: #231
(2011-11-16 22:01)bradvido88 Wrote:  
476429 Wrote:I edited the ThumbCleanConfig.xml with the appropriate settings. When I ran the jar file I got the following error:



As I'm sure you know, Macs don't have a "C:\" directory. Is there any way to fix this?

Thanks
Der, forgot about that. I've been meaning to fix it for a while. Next time i post an update i'll be sure to make the path so it's not windows only.

Right now, not much you can do, sorry.

So are you saying this is not going to work on a Mac at all now?

I figured I'd just change paths to standard UNIX format, like "/DISK/Users/blah/"...

But I haven't even got that far yet as I still need to know:

1) how to execute it at all on a Mac
2) how to configure the JSON portion on a Mac

Thanks.
find quote
bigbadrabbit Offline
Member
Posts: 98
Joined: Sep 2008
Reputation: 0
Post: #232
(2012-04-22 16:18)ctawn Wrote:  
(2011-11-16 22:01)bradvido88 Wrote:  
476429 Wrote:I edited the ThumbCleanConfig.xml with the appropriate settings. When I ran the jar file I got the following error:



As I'm sure you know, Macs don't have a "C:\" directory. Is there any way to fix this?

Thanks
Der, forgot about that. I've been meaning to fix it for a while. Next time i post an update i'll be sure to make the path so it's not windows only.

Right now, not much you can do, sorry.

So are you saying this is not going to work on a Mac at all now?

I figured I'd just change paths to standard UNIX format, like "/DISK/Users/blah/"...

But I haven't even got that far yet as I still need to know:

1) how to execute it at all on a Mac
2) how to configure the JSON portion on a Mac

Thanks.

+1

XBMC Frodo
OS X 10.8.3
Mac mini (mid 2011) | i5 | 8GB RAM | SSD
find quote
MindTooth Offline
Senior Member
Posts: 158
Joined: Feb 2010
Reputation: 0
Post: #233
Can this be easily used on a HTPC connected wirelessly and runs Linux?
find quote
bradvido88 Offline
Member+
Posts: 737
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #234
The command to use this script on all operating systems is:
Code:
[path/to/java] -jar [path/to/XBMC.MyLibrary.jar] [path/to/basedir/]
Where basedir is the directory that contains Config.xml

An example in linux:
Code:
java -jar /home/jim/XBMCThumbCleaner-v1.2/dist/XBMC.MyLibrary.jar /home/jim/XBMCThumbCleaner-v1.2/


As far as configuring json-rpc. This is done through the XBMC settings and is the same across all XBMC distros.

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
(This post was last modified: 2012-04-27 16:19 by bradvido88.)
find quote
Mordred Offline
Junior Member
Posts: 33
Joined: May 2011
Reputation: 0
Post: #235
Can anyone tell me how the hash for multi part stacks is actually calculated? I've tried every possible combination/interpretation of the first post and I don't generate the actual hash that XBMC is coming up with. I can calculate the hash of every single file combination correctly, just not stacks.

For example if I have something like:
"stack://smb://RIPLEY/Video/Movie.CD1.mkv , smb://RIPLEY/Video/Movie.CD2.mkv"
in my c22 field, what is the actual string that XBMC will be hashing?

The first post implies it would be: "stack://Movie.CD1.mkv , Movie.CD2.mkv", but it's not.
(This post was last modified: 2012-05-03 04:40 by Mordred.)
find quote
Mordred Offline
Junior Member
Posts: 33
Joined: May 2011
Reputation: 0
Post: #236
Could you just tell me how it's supposed to be formatted? I can't find fileitem.py anywhere, logodownloaderscript is deprecated, and it's replacement doesn't have fileitem.py in it either.
find quote
john.cord Online
Fan
Posts: 404
Joined: Jan 2007
Reputation: 6
Location: Vienna
Post: #237
Need Help to get the script working under ubuntu

Error is --> http://pastebin.com/390L8dpK

Config is --> http://pastebin.com/kQAAbzig
find quote
graysky Offline
Senior Member
Posts: 181
Joined: Aug 2009
Reputation: 0
Post: #238
Firstly, this is an EXCELLENT utility. Thank you kindly for the time you spent developing it.

Before: 263.3 MiB /Thumbnails
After: 56.2 MiB /Thumbnails

Two questions for you:

1) I do not have a MyVideos57.db but I do have a MyVideos58.db and MyVideos60.db files. Should run the script twice, for each one independently?

2) Can something be done to keep the script from writing backslashes to its output?
Example:
Code:
-rw-r--r-- 1 facade users   41K May 10 05:03 xbmc.ThumbCleaner.2012-05-10.log
-rw-r--r-- 1 facade users  7.9K May 10 05:03 xbmc.ThumbCleaner.log
drwxr-xr-x 7 facade users 4.0K May 10 05:03 xbmcThumbCleaner-v1.2
drwxr-xr-x 2 facade users  4.0K May 10 05:09 xbmcThumbCleaner-v1.2\logs
-rw-r--r-- 1 facade users  7.9K May 10 05:09 xbmcThumbCleaner-v1.2\logs\facade.ThumbCleaner.2012-05-10.log
-rw-r--r-- 1 facade users  7.9K May 10 05:09 xbmcThumbCleaner-v1.2\facade.ThumbCleaner.log
(This post was last modified: 2012-05-10 11:40 by graysky.)
find quote
graysky Offline
Senior Member
Posts: 181
Joined: Aug 2009
Reputation: 0
Post: #239
@john.cord - Why in the world are you running as root?!

Invoke this script like this:
Code:
$ java -jar /path/to/XBMCThumbCleaner-v1.2/dist/XBMC.MyLibrary.jar /path/to/XBMCThumbCleaner-v1.2
(This post was last modified: 2012-05-10 11:16 by graysky.)
find quote
bradvido88 Offline
Member+
Posts: 737
Joined: Nov 2008
Reputation: 7
Location: MN
Post: #240
@Mordred
Maybe something has changed in the release cycle for Eden (although I doubt it), but IIRC the hash for stack:// was generated exactly as I describe in the first post. The path is ignored and the strFilename is hashed.
You may find this utility useful for testing hash's: http://forum.xbmc.org/showthread.php?tid=116861

@graysky
You need only run it against your highest db version (assuming you have never rolled back to an earlier XBMC installation).

XBMC.MyLibrary (add anything to the library)
ForTheLibrary (Argus TV & XBMC Library PVR Integration)
SageTV & XBMC PVR Integration
Delete unused thumbs
(This post was last modified: 2012-05-10 21:45 by bradvido88.)
find quote
Post Reply