[RELEASE] Video Fanart Splitter Script - Movie and TV Show FanArt Seperation

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #31
I just downloaded the file in the first post and it seemed to come down just fine. He might of had a server issue when you tried to download the first time.
find quote
skaymakca Offline
Member
Posts: 53
Joined: Aug 2009
Reputation: 0
Post: #32
Sorry for the late response, the link does seem to work on my system as well.
find quote
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #33
I have a question. I can't seem to get this to run on a Linux install. I thought it would either go in the /home/xbmc/.xbmc/scripts or /usr/share/xbmc/scripts/

Either place I put it it doesn't run. I figured it would go in the /home/xbmc/.xbmc/scripts directory if anything due to permissions, but it doesn't. It does create a Folder called /home/xbmc/.xbmc/UserData/ folder Video Fanart Splitter, but after that it just stops.

Is there any permissions that needs to be setup prior to running?
find quote
jonzz Offline
Junior Member
Posts: 5
Joined: Oct 2009
Reputation: 0
Post: #34
What sections would you go about changing it if you dont use the application data folder and just everything is in the program files?
find quote
skaymakca Offline
Member
Posts: 53
Joined: Aug 2009
Reputation: 0
Post: #35
You can check your xbmc.log under .xbmc/temp for whatever errors are being raised.

I tried it on an ubuntu 9.10 vm with xbmc stable and it didn't work. The third party library I'm using for sqlite access, pysqlite, is now longer loading on linux. I will look into the solution and post a fix later.

kizer Wrote:I have a question. I can't seem to get this to run on a Linux install. I thought it would either go in the /home/xbmc/.xbmc/scripts or /usr/share/xbmc/scripts/

Either place I put it it doesn't run. I figured it would go in the /home/xbmc/.xbmc/scripts directory if anything due to permissions, but it doesn't. It does create a Folder called /home/xbmc/.xbmc/UserData/ folder Video Fanart Splitter, but after that it just stops.

Is there any permissions that needs to be setup prior to running?
find quote
skaymakca Offline
Member
Posts: 53
Joined: Aug 2009
Reputation: 0
Post: #36
jonzz Wrote:What sections would you go about changing it if you dont use the application data folder and just everything is in the program files?

Every file description in default.py the ones that contain:

Code:
special://home/userdata/

would have to be changed to wherever you want to store the script, where the videos34.db file is, and where you want the output files to be stored.

I'll look into fixing this and creating a way for easier to use custom folder output in the future.
find quote
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #37
skaymakca Wrote:You can check your xbmc.log under .xbmc/temp for whatever errors are being raised.

I tried it on an ubuntu 9.10 vm with xbmc stable and it didn't work. The third party library I'm using for sqlite access, pysqlite, is now longer loading on linux. I will look into the solution and post a fix later.

Thanks for the heads up on the error log. I keep forgetting it generates that. Ive been away from Linux way to long. Wink
I was trying this on a 9.04 build, but I'll take a look at the error log.
find quote
kizer Offline
Fan
Posts: 699
Joined: Jul 2008
Reputation: 0
Location: Seattle WA, US
Post: #38
I just checked the /xbmc/.xbmc/ and I don't even seem to be anything written to it. I'm running 9.11 but heck I don't know any more.
r24548
find quote
kyouhei Offline
Junior Member
Posts: 33
Joined: Jul 2009
Reputation: 0
Location: Tokyo, Japan
Post: #39
I have the same problem as kizer on my Ubuntu 9.04 box with Transparency! skin. Here are error logs. Could you please help?

Quote:10:29:02 T:2862779280 M:1663107072 DEBUG: xbp_dlopen loading python lib /home/xbmc/.xbmc/scripts/Video Fanart Splitter/platform_libraries/Linux/pysqlite2/_sqlite.so. flags: 2
10:29:02 T:2862779280 M:1663107072 DEBUG: Loading: /home/xbmc/.xbmc/scripts/Video Fanart Splitter/platform_libraries/Linux/pysqlite2/_sqlite.so
10:29:02 T:2862779280 M:1663107072 DEBUG: RegisterExtensionLib, adding _sqlite.so (0xa0aa4fe8)
10:29:02 T:2862779280 M:1663107072 DEBUG: xbp_dlsym - load symbol init_sqlite
10:29:02 T:2862779280 M:1663107072 INFO: -->Python script returned the following error<--
10:29:02 T:2862779280 M:1663107072 ERROR: Error Type: exceptions.IndexError
10:29:02 T:2862779280 M:1663107072 ERROR: Error Contents: list index out of range
10:29:02 T:2862779280 M:1663107072 ERROR: Traceback (most recent call last):
File "/home/xbmc/.xbmc/scripts/Video Fanart Splitter/default.py", line 52, in ?
if os.path.isfile(xbmc.translatePath("special://home/userdata/Thumbnails/Video/Fanart/" + getCrc(row[0] + row[1]) + ".tbn")):
File "/home/xbmc/.xbmc/scripts/Video Fanart Splitter/default.py", line 24, in getCrc
crc = hex(g(filename.lower()))
File "/home/xbmc/.xbmc/scripts/Video Fanart Splitter/crcmod.py", line 403, in crcfun
return fun(data, crc, table)
File "/home/xbmc/.xbmc/scripts/Video Fanart Splitter/_crcfunpy.py", line 67, in _crc32
crc = table[ord(x) ^ (int(crc>>24) & 0xFF)] ^ ((crc << 8) & 0xFFFFFF00L)
IndexError: list index out of range
10:29:02 T:2862779280 M:1663107072 INFO: -->End of Python script error report<--
find quote
mole Offline
Junior Member
Posts: 3
Joined: Jan 2010
Reputation: 0
Post: #40
Good work on writing this script skaymakca Big Grin but I have the same problem as kyouhei and kizer here - hopefully you will come up with a solution soon!
find quote
Post Reply