18 Nov 2019- TVDB are still in the process of fixing a number of bugs that have broken the TVDB scraper and any add-on that relies on TVDB data. TVDB are still working to rectify the problems.

  •   
  • 1
  • 138
  • 139
  • 140(current)
  • 141
  • 142
  • 179
  •   
[RELEASE] Texture Cache Maintenance utility
(2016-12-04, 01:14)Milhouse Wrote: If it's just an empty folder, why worry about it?

I ran texturecache.py nc and it still tells me that there are animated stuff that needs to be cached:


Code:
[email protected]:~$ ./texturecache.py nc
Need to cache: [  fanart  ] for addon: Confluence                                      
Need to cache: [thumbnail ] for addon: Confluence
Need to cache: [animatedposter] for movie: 10 Cloverfield Lane                            
Need to cache: [animatedfanart] for movie: 10 Things I Hate About You
Need to cache: [animatedposter] for movie: 2001: A Space Odyssey
Need to cache: [animatedfanart] for movie: 2001: A Space Odyssey
Need to cache: [animatedfanart] for movie: A Fistful of Dollars
...
...
...
Need to cache: [animatedposter] for movie: Zootopia
Need to cache: [animatedfanart] for movie: Zootopia
                                                                                                
Cache pre-load activity summary for "addons/agenres/vgenres/albums/artists/movies/sets/tvshows":

              |  animatedfanart|  animatedposter|    banner   |  clearlogo  |   discart   |    fanart   |  landscape  |    poster   | season.banner | season.fanart | season.poster |    thumb    |  thumbnail  |    TOTAL    
--------------+----------------+----------------+-------------+-------------+-------------+-------------+-------------+-------------+---------------+---------------+---------------+-------------+-------------+-------------
Cached        |        -       |        -       |      -      |      -      |      -      |      -      |      -      |      -      |       -       |       -       |       -       |      -      |      -      |      0      
Deleted       |        -       |        -       |      -      |      -      |      -      |      -      |      -      |      -      |       -       |       -       |       -       |      -      |      -      |      0      
Duplicate     |        -       |        -       |     1383    |      -      |      -      |     1329    |      -      |     1384    |      1053     |       18      |      1279     |      11     |      -      |     6457    
Error         |        -       |        -       |      -      |      -      |      -      |      -      |      -      |      -      |       -       |       -       |       -       |      -      |      -      |      0      
Ignored       |        -       |        -       |      -      |      -      |      -      |      -      |      -      |      -      |       -       |       -       |       -       |      -      |      -      |      0      
Not in Cache  |       175      |       212      |      -      |      -      |      -      |      1      |      -      |      -      |       -       |       -       |       -       |      -      |      1      |     389    
Season-all    |        -       |        -       |      -      |      -      |      -      |      -      |      -      |      -      |       -       |       -       |       -       |      -      |      -      |      0      
Skipped       |        -       |        -       |      22     |      1      |      1      |     1390    |      1      |     1586    |       54      |       -       |       55      |     1249    |     131     |     4490    
Undefined     |        -       |        -       |      -      |      -      |      -      |     139     |      -      |      -      |       -       |       -       |       -       |      -      |      49     |     188    
==============================================================================================================================================================================================================================
TOTAL         |       175      |       212      |     1405    |      1      |      1      |     2859    |      1      |     2970    |      1107     |       18      |      1334     |     1260    |     181     |    11524    

       Loading: 00:00:07.45
       Parsing: 00:00:21.02
     Comparing: 00:00:18.64
TOTAL RUNTIME: 00:00:47.21
[email protected]:~$

Should I delete Textures13.db file and run "./texturecache.py c " again?

Thank you.
Reply
(2016-12-04, 05:11)Simorgh Wrote: I ran texturecache.py nc and it still tells me that there are animated stuff that needs to be cached:

Is this using the texturecache.cfg from post #2077?

If so, can you run the following and paste the output
Code:
./texturecache.py config
./texturecache.py nc movies Zootopia @logfile=/tmp/tc.log
./texturecache.py jd movies Zootopia

Can you also upload the contents of /tmp/tc.log to a pastebin site and post the link.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
(2016-12-04, 15:39)Milhouse Wrote: Is this using the texturecache.cfg from post #2077?

If so, can you run the following and paste the output
Code:
./texturecache.py config
./texturecache.py nc movies Zootopia @logfile=/tmp/tc.log
./texturecache.py jd movies Zootopia

Can you also upload the contents of /tmp/tc.log to a pastebin site and post the link.

Thank you for your reply @Milhouse

I don't have anything in the .cfg file except:
Code:
allow.recacheall=yes

Code:
[email protected]:~$ ./texturecache.py config
Current properties (if exists, read from texturecache.cfg):

  sep = |
  userdata = /home/osmc/.kodi/userdata/
  dbfile = Database/Textures13.db
  thumbnails = Thumbnails/
  kodi.host = localhost
  webserver.port = 8080
  webserver.ctimeout = 0.5
  rpc.port = 9090
  rpc.ipversion =
  rpc.retry = 12
  rpc.ctimeout = 0.5
  chunked = yes
  modifieddate.mdy = no
  query.seasons = yes
  query.episodes = yes
  download.predelete = no
  download.payload = yes
  download.retry = 3
  download.prime = yes
  download.threads = 2
  singlethread.urls = assets\.fanart\.tv
  extrajson.addons  =
  extrajson.agenres =
  extrajson.vgenres =
  extrajson.albums  =
  extrajson.artists =
  extrajson.songs   =
  extrajson.movies  =                                                                                                                          
  extrajson.sets    =                                                                                                                          
  extrajson.tvshows.tvshow =                                                                                                                    
  extrajson.tvshows.season =                                                                                                                    
  extrajson.tvshows.episode=
  setmembers = yes
  songmembers = no
  qaperiod = 30 (added after 2016-11-04)
  qa.file = no
  qa.nfo.refresh =
  qa.useoldrefreshmethod = yes
  qa.fail.checkexists = yes
  qa.fail.missinglocalart = no
  qa.fail.urls = ^video, ^music
  qa.warn.urls =
  qa.art.addons = thumbnail
  qa.art.agenres = thumbnail
  qa.art.albums = fanart, thumbnail
  qa.art.artists = fanart, thumbnail
  qa.art.movies = fanart, poster
  qa.art.musicvideos =
  qa.art.pvr.radio =
  qa.art.pvr.radio.channel = thumbnail
  qa.art.pvr.tv =
  qa.art.pvr.tv.channel = thumbnail
  qa.art.sets = fanart, poster
  qa.art.songs = fanart, thumbnail
  qa.art.tvshows.episode = thumb
  qa.art.tvshows.season = poster
  qa.art.tvshows.tvshow = fanart, banner, poster
  qa.art.vgenres = thumbnail
  qa.blank.addons =
  qa.blank.agenres =
  qa.blank.albums =
  qa.blank.artists =
  qa.blank.movies = plot, mpaa
  qa.blank.musicvideos =
  qa.blank.pvr.radio =
  qa.blank.pvr.radio.channel =
  qa.blank.pvr.tv =
  qa.blank.pvr.tv.channel =
  qa.blank.sets =
  qa.blank.songs =
  qa.blank.tvshows.episode = plot
  qa.blank.tvshows.season =
  qa.blank.tvshows.tvshow = plot
  qa.blank.vgenres =
  qa.zero.addons =
  qa.zero.agenres =
  qa.zero.albums =
  qa.zero.artists =
  qa.zero.movies =
  qa.zero.musicvideos =
  qa.zero.pvr.radio =
  qa.zero.pvr.radio.channel =
  qa.zero.pvr.tv =
  qa.zero.pvr.tv.channel =
  qa.zero.sets =
  qa.zero.songs =
  qa.zero.tvshows.episode =
  qa.zero.tvshows.season =
  qa.zero.tvshows.tvshow =
  qa.zero.vgenres =
  cache.castthumb = no
  cache.hideallitems = no
  cache.artwork =
  cache.ignore.types = ^video, ^music
  cache.extrafanart = no
  cache.extrathumbs = no
  cache.videoextras = no
  cache.refresh =
  cache.dropfile =
  prune.retain.types =
  prune.retain.previews = yes
  prune.retain.pictures = no
  prune.retain.chapters = yes
  missing.ignore.patterns =
  logfile =
  logfile.verbose = yes
  logfile.unique = no
  logfile.dcache = no
  checkupdate = yes
  autoupdate = yes
  allow.recacheall = yes
  lastrunfile =
  orphan.limit.check = yes
  purge.minlen = 5
  picture.filetypes =
  video.filetypes =
  audio.filetypes =
  subtitle.filetypes =
  watched.overwrite = no
  network.mac =
  imdb.fields.movie = rating, votes, top250
  imdb.fields.tvshows = rating, votes
  imdb.ignore.tvtitles =
  imdb.map.tvtitles =
  imdb.translate.tvtitles =
  imdb.translate.tvyears =
  imdb.ignore.missing.episodes = no
  imdb.threads = 10
  imdb.timeout = 15.0
  imdb.retry = 3
  imdb.grouping = ,
  imdb.period =
  imdb.delete_parenthesis = yes
  bin.tvservice = /opt/vc/bin/tvservice
  bin.vcgencmd = /opt/vc/bin/vcgencmd
  bin.ceccontrol =
  hdmi.force.hotplug = no
  hdmi.ignoresuspend = no
  hdmi.ignoredisable = no
  hdmi.ignoreplayer = no
  hdmi.ignorelibrary = no
  dcache.size = 512
  dcache.agelimit = 180
  posterwidth = 5
  clean.showdialogs = no
  scan.showdialogs = no
  profile.enabled = yes
  profile.autoload = yes
  profile.retry = 60
  profile.wait = 0
  profile.name = Master user
  profile.password =
  profile.password.encrypted = no
  profile.directory =

See http://wiki.xbmc.org/index.php?title=JSON-RPC_API/v6 for details of available audio/video fields.

Code:
[email protected]:~$ ./texturecache.py nc movies Zootopia @logfile=/tmp/tc.log
Need to cache: [animatedposter] for movie: Zootopia                                
Need to cache: [animatedfanart] for movie: Zootopia

Cache pre-load activity summary for "movies", filtered by "Zootopia":

              |  animatedfanart|  animatedposter|    fanart   |    poster   |    TOTAL    
--------------+----------------+----------------+-------------+-------------+-------------
Cached        |        -       |        -       |      -      |      -      |      0      
Deleted       |        -       |        -       |      -      |      -      |      0      
Duplicate     |        -       |        -       |      -      |      -      |      0      
Error         |        -       |        -       |      -      |      -      |      0      
Ignored       |        -       |        -       |      -      |      -      |      0      
Not in Cache  |        1       |        1       |      -      |      -      |      2      
Skipped       |        -       |        -       |      1      |      1      |      2      
Undefined     |        -       |        -       |      -      |      -      |      0      
==========================================================================================
TOTAL         |        1       |        1       |      1      |      1      |      4      

       Loading: 00:00:00.10
       Parsing: 00:00:00.00
     Comparing: 00:00:04.23
TOTAL RUNTIME: 00:00:04.34

Code:
[email protected]:~$ ./texturecache.py jd movies Zootopia
[                        
  {
    "art": {
      "animatedfanart": "image://special://thumbnails/animatedgifs/tt2948356_fanart.gif/",
      "animatedposter": "image://special://thumbnails/animatedgifs/tt2948356_poster.gif/",
      "fanart": "image://smb://10.0.1.120:445/Sohrab15/Muvees 15/Zootopia (2016)/Zootopia 2016 1080p BluRay x264 DTS-JYK-fanart.jpg/",
      "poster": "image://smb://10.0.1.120:445/Sohrab15/Muvees 15/Zootopia (2016)/Zootopia 2016 1080p BluRay x264 DTS-JYK-poster.jpg/"
    },
    "file": "smb://10.0.1.120:445/Sohrab15/Muvees 15/Zootopia (2016)/Zootopia 2016 1080p BluRay x264 DTS-JYK.mkv",
    "label": "Zootopia",
    "movieid": 434,
    "title": "Zootopia"
  }
]


Uploaded /tmp/tc.log to http://paste.osmc.io/fakoletaye


Thank you in advance.
Reply
(2016-12-04, 19:20)Simorgh Wrote: I don't have anything in the .cfg file except:

Then that is your problem.

Add the following in texturecache.cfg:
Code:
cache.ignore.types=+^special://thumbnails
so that you don't cache any artwork when the original artwork is already located within the thumbnails folder - this will mean your animated GIFs are not cached.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
Thank you.

Does deleting the Textures13.db file do any good?
Reply
Only if you've deleted your entire Thumbnails folder. You can run "texturecache.py Xd" to resolve any issues if you've removed files from the Thumbnails folder.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
(2016-12-04, 21:03)Milhouse Wrote: Only if you've deleted your entire Thumbnails folder. You can run "texturecache.py Xd" to resolve any issues if you've removed files from the Thumbnails folder.
Thank you for your time.

I still STRONGLY think you should have a donation solution for people who want to buy you a beer/soda.
Reply
I'm still having trouble wrapping my mind around all this. One problem I realized is that I'm unsure what is meant by the terms "library" or "media library" in this context. Does that refer to the collection of media/movie files, perhaps with original artwork, stored locally on disk somewhere? Or is it some Kodi database (if so, what?). Or is it used loosely, sometimes referring to the media files and sometimes to a database?

So many questions . . . I was also trying to understand userdata = ~/.xbmc/userdata.
What is this .xbmc folder in my home directory, which seems to have not much in it? How is it related or linked to the real userdata folder in (my case at)
~/Library/Application Support/Kodi/userdata ??
Kodi 18.2 "Leia"  *  ViMediaManager | Mac mini late 2012, macOS 10.14 Mojave
Sharing media from NAS via NFS (optical out to receiver, HDMI to TV)
Logitech Harmony 880 / Bluetooth keyboard
Reply
"Media library" => Database (MyVideos, MyMusic etc.). Can be SQLite or MySQL.
"File system" => Your collection of media/movie files, and maybe original artwork if you have this "locally"

.xbmc is/was the old folder used by XBMC prior to the Kodi rebranding - it should now be called .kodi. You may have an .xbmc folder from an old installation, it can probably be removed assuming you have upgraded to Kodi.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
Thank you for the clarification.
(2016-12-06, 10:21)Milhouse Wrote: .xbmc is/was the old folder used by XBMC prior to the Kodi rebranding - it should now be called .kodi. You may have an .xbmc folder from an old installation, it can probably be removed assuming you have upgraded to Kodi.

But why is there a ~/.kodi/userdata, and a ~/Library/Application Support/Kodi/userdata ? Is the first one some kind of alias? It doesn't seem to have any actual databases in it. Yet that's the one texturecache.py refers to. The latter one has all the contents.
Kodi 18.2 "Leia"  *  ViMediaManager | Mac mini late 2012, macOS 10.14 Mojave
Sharing media from NAS via NFS (optical out to receiver, HDMI to TV)
Logitech Harmony 880 / Bluetooth keyboard
Reply
(2016-12-06, 17:35)Glorious1 Wrote: But why is there a ~/.kodi/userdata, and a ~/Library/Application Support/Kodi/userdata ? Is the first one some kind of alias? It doesn't seem to have any actual databases in it. Yet that's the one texturecache.py refers to. The latter one has all the contents.

I don't know why you have ~/.kodi/userdata on MacOS.

The script will (should) default the userdata property to ~/Library/Application Support/Kodi/userdata if it detects it is running on a Darwin (MacOS) platform.

If you don't set the userdata property in texturecache.cfg, what value is the script using? You can check with "texturecache.py config | grep userdata"
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
(2016-12-06, 19:49)Milhouse Wrote: If you don't set the userdata property in texturecache.cfg, what value is the script using? You can check with "texturecache.py config | grep userdata"

Indeed it is using what you expected. Sorry, I think my confusion came from the first post in this thread, where the configuration is given as
userdata = ~/.xbmc/userdata
Obviously that's very old and not applicable to all systems.
Kodi 18.2 "Leia"  *  ViMediaManager | Mac mini late 2012, macOS 10.14 Mojave
Sharing media from NAS via NFS (optical out to receiver, HDMI to TV)
Logitech Harmony 880 / Bluetooth keyboard
Reply
(2016-12-07, 02:17)Glorious1 Wrote: Obviously that's very old and not applicable to all systems.

Yes, and it's just a sample configuration, as you should only set properties that you _need_ to change. Most properties will default to sensible values for your platform.
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
I am running kodibuntu.

I am getting these errors when running texturecache and I do not know how to fix it:

[email protected]:~# /home/kodi/python/texturecache.py C
Traceback (most recent call last):
File "/home/kodi/python/texturecache.py", line 8583, in <module>
main(sys.argv[1:])
File "/home/kodi/python/texturecache.py", line 8283, in main
if not checkConfig(argv[0]): sys.exit(2)
File "/home/kodi/python/texturecache.py", line 7868, in checkConfig
gConfig.HAS_PVR = ("result" in data and data["result"].get("System.GetBool(pvrmanager.enabled)", False))
AttributeError: 'NoneType' object has no attribute 'get'

This is my config file:

[email protected]:~# cat /home/kodi/python/texturecache.cfg
#userdata = ~/.xbmc/userdata/
#userdata = /home/osmc/.kodi/userdata/
userdata = ~/.kodi/userdata/
#dbfile = Database/Textures13.db
dbfile = ~/.kodi/userdata/Database/Textures13.db
#thumbnails = Thumbnails/
thumbnails = ~/.kodi/userdata/Thumbnails/
webserver.username = user
webserver.password = pwd
xbmc.host = localhost
webserver.port = 8080
rpc.port = 9090
download.threads = 2
#extrajson.albums =
#extrajson.artists =
#extrajson.songs =
#extrajson.movies =
#extrajson.sets =
#extrajson.tvshows.tvshow =
#extrajson.tvshows.season =
#extrajson.tvshows.episode=
qaperiod = 30
#qa.file = no
cache.castthumb = yes
#logfile =
#logfile.verbose = no
#network.mac = aa:bb:cc:dd:ee:ff

Thanx alot!
Reply
Upload a link to a log file - run "/home/kodi/python/texturecache.py C @log=/tmp/tc.log" then upload /tmp/tc.log to a pastebin site and paste the link (or zip and store on dropbox if too big for pastebin).
Texture Cache Maintenance Utility: Preload your texture cache for optimal UI performance. Remotely manage media libraries. Purge unused artwork to free up space. Find missing media. Configurable QA check to highlight metadata issues. Aid in diagnosis of library and cache related problems.
Reply
  •   
  • 1
  • 138
  • 139
  • 140(current)
  • 141
  • 142
  • 179
  •   
 
Thread Rating:
  • 17 Vote(s) - 4.76 Average



Logout Mark Read Team Forum Stats Members Help
[RELEASE] Texture Cache Maintenance utility4.7617