•  Previous
  • 1
  • 153
  • 154
  • 155
  • 156
  • 157(current)
 
Thread Rating:
  • 16 Vote(s) - 4.75 Average
[RELEASE] Texture Cache Maintenance utility
(2017-11-12, 00:22)wallacebw Wrote:
(2017-11-10, 20:58)Milhouse Wrote: @wallacebw thanks I've added the support for https to mklocal.py, you'll need to re-download the mklocal.py script to update (it doesn't auto-update).

Thanks, working. One more thing, is is easy to add support for animatedfanart and animatedposter art types?

Possibly, at the very least it would require gif support in addition to png and jpg, so this patch: http://sprunge.us/IYjN

You will probably need to add the artwork types on the command line, ie. "--artwork animatedfanart animatedposter"

Other than that I don't know much about animated artwork, so can't really say what else might not work. I'll take a patch, though.
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
(2017-11-12, 00:52)Milhouse Wrote:
(2017-11-12, 00:22)wallacebw Wrote:
(2017-11-10, 20:58)Milhouse Wrote: @wallacebw thanks I've added the support for https to mklocal.py, you'll need to re-download the mklocal.py script to update (it doesn't auto-update).

Thanks, working. One more thing, is is easy to add support for animatedfanart and animatedposter art types? 

Possibly, at the very least it would require gif support in addition to png and jpg, so this patch: http://sprunge.us/IYjN

You will probably need to add the artwork types on the command line, ie. "--artwork animatedfanart animatedposter"

Other than that I don't know much about animated artwork, so can't really say what else might not work. I'll take a patch, though. 

Thanks... looks like there is also an extension reference on line 666, but it may not be worth merging.  I believe script.module.metadatautils identifies them and adds them to a folder belonging to the service.  e.g.:

      "animatedfanart": "image://special://profile/addon_data/script.module.metadatautils/animatedgifs/tt1253863_fanart.gif/",
      "animatedposter": "image://special://profile/addon_data/script.module.metadatautils/animatedgifs/tt1253863_poster.gif/",

ok, I may need to look for another solution or write something custom, as shifting local artwork may cause excess scope creep and be outside of the intent of this program.

Thanks again for the fast response.
Reply
Problem: Certain TV Shows are repeatedly getting merged together after both items are scanned in using texturecache.py.  The first is always joined to the second and no longer has its own database entry.

Background:  Fresh install of Kodi Krypton 17.5, Windows 10, texturecache.py 2.4.4, "Home" TV show, "Jillian Michaels" workout video.
"Home" .nfo file (named tvshow.nfo within the directory the single TV show is in) - https://pastebin.com/raw/9QHnSfWL
Jillian Michaels .nfo file (named tvshow.nfo within the directory the single TV show is in) - https://pastebin.com/raw/0NqJuR8V

Procedure:
  1. "Set Content" for the documentary TV show "Home".
  2. Scan in media using texturecache.py
    Code:
    texturecache.py vscan "<Path_to_Media>\Home [2009]"
    Quote:Rescanning directory:<Path_to_Media>\Home [2009]...
    Updating library: New tvshowid 1 [Home]
    Updating library: New episodeid 1 [Home S01E01 (Home)]
  3. Scan in artwork using texturecache.py
    Code:
    texturecache.py jd tvshows | tools\mklocal.py --singlefolders --ignorebadprefix --local "<Path_to_Media>\Home [2009]" --prefix "<Path_to_Media>\Home [2009]" --artwork poster fanart clearlogo clearart discart characterart:character banner landscape --season --episode --output | texturecache.py set
    Quote:Progress: 3 of 3
  4. Cache artwork using texturecache.py
  5. Check in Kodi, and "Home" indeed has its very own and separate entry.
  6. "Set Content" for the exercise show "Jillian Michaels - Banish Fat, Boot Metabolism".
  7. Scan in media using texturecache.py
    Code:
    texturecache.py vscan "Path_to_Media\Jillian Michaels - Banish Fat, Boost Metabolism [2009]"
    Quote:Rescanning directory: Path_to_Media\Jillian Michaels - Banish Fat, Boost Metabolism [2009]...
    Updating library: New tvshowid      1 [Jillian Michaels - Banish Fat, Boost Metabolism]
    Updating library: New episodeid     2 [Jillian Michaels - Banish Fat, Boost Metabolism S01E01 (Banish Fat, Boost Metabolism)]
  8. Scan in artwork using texturecache.py
    Code:
    texturecache.py jd tvshows | tools\mklocal.py --singlefolders --ignorebadprefix --local "<Path_to_Media>\Jillian Michaels - Banish Fat, Boost Metabolism [2009]" --prefix "<Path_to_Media>\Jillian Michaels - Banish Fat, Boost Metabolism [2009]" --artwork poster fanart clearlogo clearart discart characterart:character banner landscape --season --episode --output | texturecache.py set
    Quote:Progress: 4 of 4
  9. Cache artwork using texturecache.py
  10. Check in Kodi, and "Home" now shows as an episode in the Jillian Michaels exercise.  Furthermore, "Home" no longer has its own entry in Kodi anymore.
  11. I checked the database using texturecache.py to see what I could.  It seems as if "Home" somehow magically got merged into the Jillian Michaels workout video.
    Code:
    texturecache.py j tvshows Banish
    The output is here - https://pastebin.com/raw/KJuMEWnT

Suggestions: Any ideas what to do next? I'm not sure if this is a bug in texturecache.py or Kodi, or if I am just overlooking something.  Thanks in advance!
Reply
@radigast this is a scanning bug in Kodi.

The texturecache.py script is simply asking Kodi to perform library scans of the relevant folders - what Kodi does after that is entirely down to Kodi, and in this case it's going a little bit wrong.

I would suggest opening a ticket on trac.kodi.tv, and I would say that steps 1, 2, 5, 6, 7 and 10 are the only relevant steps for the ticket - caching has nothing to do with this.

It's clear that when you scan the second show ("Jillian Michaels ...") that Kodi is overwriting the first TV show ("Home") as both are being created with the tvshow id #1, which is why all the episodes appear to be merged together as they're both linked to tvshow id #1. Kodi should be allocating a new tvshow id #2 to the second tvshow ("Jillian Michaels ..."), and then linking the new episode #2 to tvshow id #2.
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
Hi Milhouse,

Thank you for the script, it's really cool!

A few questions:
- is there a way to locate the thumbnail of a local picture in the Thumbnails folder, by using the filename? I modified a picture and want Kodi to grab the new on as the thumbnail.
- I am accessing Kodi (LibreELEC) remotely from macOS 10.12.6. How do I correctly point to the Userdata folder on my Kodi box? I now use /Volumes/Userdata/, but that means the folder has to be mounted from within macOS. Is there a way to point directly to the folder using the IP address of the box?

Thank you!
Reply
(2017-11-14, 22:43)musicadi Wrote: - is there a way to locate the thumbnail of a local picture in the Thumbnails folder, by using the filename? I modified a picture and want Kodi to grab the new on as the thumbnail.

Use "texturecache.py s filename", eg.
Code:
texturecache.py s /storage/.kodi/addons/plugin.video.netflix/resources/fanart.jpg
will return:
Code:
042009|6/6f56e082.jpg|0720|1280|0009|2017-11-05 22:13:43|2017-11-05 22:11:48|/storage/.kodi/addons/plugin.video.netflix/resources/fanart.jpg
Matching row ids: 42009

where "6/6f56e082.jpg" is the filename within the Thumbnails folder.

You can delete the cached artwork (and matching database row) with "texturecache.py d 42009"

However if you've modified the original thumbnail, then simply re-cache it.

(2017-11-14, 22:43)musicadi Wrote: - I am accessing Kodi (LibreELEC) remotely from macOS 10.12.6. How do I correctly point to the Userdata folder on my Kodi box? I now use /Volumes/Userdata/, but that means the folder has to be mounted from within macOS.

Mounting locally on the machine running the script is one option.

The other option is to push the script to the remote machine and run it locally on the remote machine, as this is easy enough to accomplish with a combination of scp and ssh particularly when scripting a complete solution.

(2017-11-14, 22:43)musicadi Wrote: Is there a way to point directly to the folder using the IP address of the box?

No.
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
(2017-11-12, 17:40)Milhouse Wrote: @radigast this is a scanning bug in Kodi.
Thanks for the tip, Milhouse!  As it turns out, this seems to be fixed in Krypton 17.6; those same database glitches appear to have been rectified.  Sage advice, as usual!
Reply
  •  Previous
  • 1
  • 153
  • 154
  • 155
  • 156
  • 157(current)



[RELEASE] Texture Cache Maintenance utility4.7516