[RELEASE] Texture Cache Maintenance utility
I'm having an issue with the mklocal.py script. It worked on my tvshows, but fails on my movies.

[email protected]computer ~/s/m/texturecache>./texturecache.py jd movies | ./tools/mklocal.py --local / --prefix / --artwork fanart poster --output ./fixup.dat

Traceback (most recent call last):
  File "./tools/mklocal.py", line 872, in <module>
  File "./tools/mklocal.py", line 855, in main
    workitem = processItem(args, mediatype, media, download_items)
  File "./tools/mklocal.py", line 417, in processItem
    newname = processArtwork(args, mediatype, media, mediatitle, artitem["type"], mediafile, oldname, artpath_m, artpath_s, is_excess=False)
  File "./tools/mklocal.py", line 498, in processArtwork
    fname = pathToXBMC(getImage(args, mediatype, media, title, atype, filename, currentname, target))
  File "./tools/mklocal.py", line 543, in getImage
    shutil.copyfile(newsource, target)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/shutil.py", line 97, in copyfile
    with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: '/Volumes/w-fanart.jpg'

There is no file at /Volumes/w-fanart.jpg. I set all the permissions to 777 on my media drives just to make sure it wasn't a permissions issue.

Running MacOS 10.13.6

edit: Ok. I was able to get passed the error by running as su. And I did end up with those two files at /Volumes. But it seems strange. The errored files are not located at that path. They are located at: 

331411 bytes - fanart - Jungle 2 Jungle -> /Volumes/w-fanart.jpg
600736 bytes - poster - Jungle 2 Jungle -> /Volumes/w-poster.jpg

I then manually moved the files to the correct place. Also fixed the permissions on the files I had to run with su. Then reimport the mixup.dat.

Messages In This Thread
Crash on Gotham on OS X - by desepticon - 2014-05-29, 17:57
Cleaning - by AleisterHH - 2018-05-28, 22:03
RE: Cleaning - by Milhouse - 2018-05-28, 22:16
qax genre not updated - by Just-Me_A-User - 2018-06-12, 22:06
RE: qax genre not updated - by Milhouse - 2018-06-12, 23:40
RE: [RELEASE] Texture Cache Maintenance utility - by desepticon - 2019-03-02, 23:11

Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility17
This forum uses Lukasz Tkacz MyBB addons.