Datenbank bereinigen: wieso werden Bilder nicht gelöscht?

  • Hi,

    Wenn ich nach dem Löschen von Filmen die Datenbank bereinige, bereinigt Kodi nur die Ansicht. Die ganzen gespeicherten Bilder bleiben alle erhalten in "Users\XXXX\AppData\Roaming\Kodi\userdata\Thumbnails", vorhin waren das über 1GB.

    Das ist recht uncool, warum ist das so? :huh:

    thx!

    HTPC: NEU: Pentium 4600, MSI H270M, 8GB, MS-Tech MC-1200, picoPSU, picoPSU 120W, Win10-64

    ALT: i3-540, H55M-ED55,4GB 1600, Sapph.6450-1GB, MS-Tech MC-1200, picoPSU, picoPSU 120W + 90W NT, Win7-32
    LG 55LM760S, Denon AVR-X1100W

  • Das gleiche Problem habe ich mit meinen Sender-Logos.

    Ich bastel mir zur Zeit neue Logos. Und wenn ich dann die PVR-Datenbank zurücksetze, bleiben die "alten" TV-Logos immer erhalten weil er die auch im Thumbs Ordner hat.

    Man bräuchte eine Möglichkeit, den Thumbs Ordner zu bereinigen, und die nicht mehr aktuellen zu löschen... :?:

    Nvidia Shield 2015 16GB: Stock-ROM Oreo * no root * Kodi 18 (alpha3)
    Samsung 55'' UHD TV, Yamaha HTR-2071, Logitech Harmony Elite
    NAS: Synology DiskStation DS118, Plex (alpha)
    Server: Win10 64-Bit, 2 x DD Cine S2, DVBViewerPro, Gigabit LAN

  • Man bräuchte eine Möglichkeit, den Thumbs Ordner zu bereinigen, und die nicht mehr aktuellen zu löschen...


    http://kodi.wiki/view/Texture_Cache_Maintenance_utility
    Wird wohl unter Windows nicht funktionieren. Unter Linux tut es.

    AZi (DEV): Nexus auf LibreElec | Asrock J4205 | 4 GB RAM | 128 GB Sandisk| Rii mini
    DEV: PC Ubuntu 20.04 | Matrix
    AZi: Tanix TX3 | Android/CoreElec Dualboot (EMMC), Nexus
    WoZi: Nexus auf LibreElec | Asrock J4205 | 4GB RAM | 128 GB Sandisk SSD | Atric IR | URC7960
    NAS: unRaid, 3x6TB, 2x12TB | TV-Server: Futro S550 mit Hauppauge QuadHD DVB-C
    PayPal: paypal.me/pvdbj1

  • Warum sollte es unter Windows nicht funktionieren?! Laut dem Text braucht man nur die Python Runtime der 2.x-Reihe (mit 3.x gabs einige tiefgreifende Änderungen, was 2.x-Skripte oft nicht damit laufen läßt) zu installieren, dann geht das ...

    Das Skript wurde laut Text sogar auf Windows getestet ... ;)

  • ich kann mir kaum vorstellen, dass die ganzen Bilder bei künftigen Scrapes wiederverwendet würden, sofern wieder die gleichen Filme dabei sind.

    Deshalb frage ich mich, warum das nicht von Haus auf vernünftig gelöscht wird? Diese Leichen kriegt man doch sonst nie wieder los und hat über die Jahre Gigabyte-weise Schrott herumliegen?

    HTPC: NEU: Pentium 4600, MSI H270M, 8GB, MS-Tech MC-1200, picoPSU, picoPSU 120W, Win10-64

    ALT: i3-540, H55M-ED55,4GB 1600, Sapph.6450-1GB, MS-Tech MC-1200, picoPSU, picoPSU 120W + 90W NT, Win7-32
    LG 55LM760S, Denon AVR-X1100W

  • Das Skript wurde laut Text sogar auf Windows getestet


    Das hab' ich überlesen ;). Da ich aber auch kein Windows (für den HTPC) nutze und die Installation für Linux (wget, chmod) beschrieben ist, war ich an der Stelle skeptisch... Aber wenn's funktioniert, auch gut.

    AZi (DEV): Nexus auf LibreElec | Asrock J4205 | 4 GB RAM | 128 GB Sandisk| Rii mini
    DEV: PC Ubuntu 20.04 | Matrix
    AZi: Tanix TX3 | Android/CoreElec Dualboot (EMMC), Nexus
    WoZi: Nexus auf LibreElec | Asrock J4205 | 4GB RAM | 128 GB Sandisk SSD | Atric IR | URC7960
    NAS: unRaid, 3x6TB, 2x12TB | TV-Server: Futro S550 mit Hauppauge QuadHD DVB-C
    PayPal: paypal.me/pvdbj1

  • Offensichtlich ist man der Meinung, dass Speicherplatz heute nur noch eine untergeordnete Rolle spielt. Wenn man jedoch ein System partitioniert (System, Daten), kann es u.U. richtig eng werden. Ich habe da schon 10G-Partitionen voll laufen sehen...

    AZi (DEV): Nexus auf LibreElec | Asrock J4205 | 4 GB RAM | 128 GB Sandisk| Rii mini
    DEV: PC Ubuntu 20.04 | Matrix
    AZi: Tanix TX3 | Android/CoreElec Dualboot (EMMC), Nexus
    WoZi: Nexus auf LibreElec | Asrock J4205 | 4GB RAM | 128 GB Sandisk SSD | Atric IR | URC7960
    NAS: unRaid, 3x6TB, 2x12TB | TV-Server: Futro S550 mit Hauppauge QuadHD DVB-C
    PayPal: paypal.me/pvdbj1

  • Das mit dem Speicherplatz ist natürlich ärgerlich; ich finde aber vor allem problematisch, dass sich XBMC nicht die neuen "Bilder" zieht, sondern die alten aus dem Thumbs-Ordner verwendet.

    Ich ändere halt im Moment viel: neue Fanarts für Filme, neue Interpreten-Bilder, neue Sender-Logos, etc. Da kann ich die Datenbank neu einlesen lassen wie ich möchte, er nimmt einfach immer die alten ?(
    Ob meine Kenntnisse und Fähigkeiten für das von BJ1 gepostete "Texture Cache Maintenance Utility" ausreichen... liest sich alles ziemlich kompliziert.

    Im Moment behelfe ich mir damit, die nicht mehr aktuellen Thumbs manuell (!!!) in den Thumbs-Ordnern zu suchen und zu löschen.

    Nvidia Shield 2015 16GB: Stock-ROM Oreo * no root * Kodi 18 (alpha3)
    Samsung 55'' UHD TV, Yamaha HTR-2071, Logitech Harmony Elite
    NAS: Synology DiskStation DS118, Plex (alpha)
    Server: Win10 64-Bit, 2 x DD Cine S2, DVBViewerPro, Gigabit LAN

  • Ob meine Kenntnisse und Fähigkeiten für das von BJ1 gepostete "Texture Cache Maintenance Utility" ausreichen... liest sich alles ziemlich kompliziert.

    Im Moment behelfe ich mir damit, die nicht mehr aktuellen Thumbs manuell (!!!) in den Thumbs-Ordnern zu suchen und zu löschen.

    Boaa, Sisyphus-Arbeit ;( . Unter Win sollte folgende Vorgehensweise ausreichend sein (ungetestet!):

    - Skript downloaden: https://raw.github.com/MilhouseVH/tex…texturecache.py
    - Python installieren und Skript wie folgt im DOS-Fenster aufrufen: python texturecache.py P
    - anschliessend noch ein python texturecache.py R

    und der Cache sollte sauber sein. Damit das funktioniert, muss der Webserver unter XBMC aktiviert sein.

    AZi (DEV): Nexus auf LibreElec | Asrock J4205 | 4 GB RAM | 128 GB Sandisk| Rii mini
    DEV: PC Ubuntu 20.04 | Matrix
    AZi: Tanix TX3 | Android/CoreElec Dualboot (EMMC), Nexus
    WoZi: Nexus auf LibreElec | Asrock J4205 | 4GB RAM | 128 GB Sandisk SSD | Atric IR | URC7960
    NAS: unRaid, 3x6TB, 2x12TB | TV-Server: Futro S550 mit Hauppauge QuadHD DVB-C
    PayPal: paypal.me/pvdbj1

  • Boaa, Sisyphus-Arbeit ;( .

    Du sagst es ;)
    Na dann werde ich das mal testen und gucken ob ich klar komme. Hab nur im Moment wenig Zeit deswegen muss ich die Sache wohl auf's neue Jahr verschieben.

    Wäre es eigentlich auch eine Alternative, den bzw. die kompletten Thumbs-Ordner zu löschen? Eigentlich sollte XBMC dann die benötigten Thumbs neu erstellen oder? Dann hätte man auch nur die aktuellen drin und keine Leichen mehr. (Bin gerade in der Arbeit und kann es daher nicht testen...)

    Nvidia Shield 2015 16GB: Stock-ROM Oreo * no root * Kodi 18 (alpha3)
    Samsung 55'' UHD TV, Yamaha HTR-2071, Logitech Harmony Elite
    NAS: Synology DiskStation DS118, Plex (alpha)
    Server: Win10 64-Bit, 2 x DD Cine S2, DVBViewerPro, Gigabit LAN

  • Btw: ich grab zwar ungern alte threads aus, aber es muss sein...

    Ich hab mich mal mit dem Script etwas beschäftigt und auch rausgefunden wie man es sinnvoll einsetzt. Ich konnte damit meine Thumbnails bereinigen und immerhin ein passables Ergebnis:

    Zitat


    Summary: 1,384 files; Total size: 37,316 KB


    Ich hab zu diesem Zeitpunkt nur 207 Filme, und 692 Episoden auf Lager und diese relativ sauber gescrapt.

    Bei mir läuft Kodi unter OSMC auf nem RasPi 2. Installation war simpelst, einfach das script von Github laden und x-Flag (ausführbar) setzen. Die opionale config Datei hab ich noch für mich angepasst:

    texturecache.cfg


    Eventuell müsst ihr noch den Pfad zu Kodi dort anpassen.

    Nun zur Benutzung. Unter Linux wird das Script normal mit ./texturecache.py aufgerufen. Unter Windows muss man erst Python installieren, aber darauf geh ich nicht ein.
    Nach dem Script-Aufruf kommt ein Leerzeichen gefolgt von einem der Parameter. (Groß-/Kleinschreibung wird unterschieden!)

    • [c, C] Automatically re-cache missing artwork, with option to
      force download of existing artwork (remove first, then re-cache). Can
      use multiple threads (default is 2)
    • [nc] Identify those items that require caching (and would be cached by c option)
    • [lc, lnc] Same as c and nc, but only considers
      those media (movies, tvshows/episodes) added since the modification
      timestamp of the file identified by the property lastrunfile
    • [p, P] Prune texture cache by removing accumulated cruft such
      as image previews, previously deleted movies/tv shows/music and whose
      artwork remains in the texture cache even after cleaning the database.
      Essentially, remove any cached file that is no longer associated with an
      entry in the media library, or an addon.
    • [s, S] Search texture cache for specific files and view database content, can help explain reason for incorrect artwork. S will return only those database results for items that no longer exist in the filesystem.
    • [x, X] Extract rows from texture cache database, with optional SQL filter. X will return only those database results for items that no longer exist in the filesystem.
    • [d] Delete specific database rows and corresponding files from the texture cache using database row identifier (see s/S)
    • [r, R] Reverse query cache, identifying any "orphaned" files
      no longer referenced by texture cache database, with option to
      auto-delete files
    • [j, J, jd, Jd] Query media library using JSON API, and export content as JSON (and suitable for further external processing)
    • [qa] Perform QA check on media library recently added items,
      identifying missing properties (eg. plot, mpaa certificate, artwork
      etc.). Default QA period is previous 30 days. Add property qa.file = yes to verify file exists during QA. Add additional QA fields using qa.art.*, qa.blank.* and qa.zero.* properties.
    • [qax] Like the qa option, but performs a remove and then rescan of any media found to fail the QA tests
    • [ascan, vscan] Initiate audio/video library scan, either entire library or a specific path (see sources). The exit status is the number of items added during each scan, ie. 0 or +n.
    • [watched] Backup and restore movie and tvshow watched lists to
      a text file. Watched list will be restored keeping more recent
      playcount, lastplayed and resume points unless property watched.overwrite=yes is specified, in which case the watched list will be restored exactly as per the backup.
    • [missing] Locate media files missing from the specified media library and source label, eg. missing movies "My Movies"
    • [aclean, vclean] Clean audio/video library
    • [directory] Obtain directory listing for a specific path (see sources)
    • [sources] List of sources for a specific media class (video, music, pictures, files, programs)
    • [status] Display status of client - ScreenSaver active, IsIdle
      (default period 600 seconds, or user specified) and active Player type
      (audio or video), plus title of any media currently being played.
    • [monitor] Display client event notifications as they occur
    • [power] Set power state of client - suspend, hibernate, shutdown or reboot
    • [wake] Use Wake Over LAN to wake a suspended/hibernating remote client. Specify the MAC address of the remote client in the network.mac property (ie. network.mac=xx:xx:xx:xx:xx:xx). When the client is no longer required, suspend or hibernate it with the relevant power option
    • [exec, execw] Execute the specified addon, with optional parameters. eg. exec script.artwork.downloader silent=true mediatype=tvshow. Use execw to wait, but this rarely has any effect (possibly not implemented by JSON?)

    Eine kleine Übersicht mit Befehlen, die ich bisher testen konnte:

    Thumbnail Ordner von nicht genutzen Bildern befreien

    Zitat

    ./texturecache.py P

    Fehlende Bilder neu cachen:

    Zitat

    ./texturecache.py c

    Scant die Datenbank nach fehlenden Bildern und Informationen

    Zitat

    ./texturecache.py qa

    Scant die Datenbank nach fehlenden Bildern und Informationen, scrapt diese neu

    Zitat

    ./texturecache.py qax

    Kodi-Basis: Intel® NUC7PJYH | 4GB DDR4 | 60GB Sandisk SSD | LibreElec 10 | Horizon V | Emby
    Sound: Sony HT-CT290 2.1 Soundbar
    TV: 55" Sony KD-55XE8577
    Server: Intel Core i5-4690 @ Asrock Z97 Anniversary | 8GB DDR3 | Xubuntu 18.04.4 LTS @ 256GB Samsung 840Pro | 5x 3TB WD-Red @ ZFS RAID 5 | Emby-Server | Monitorix

    3 Mal editiert, zuletzt von killercorny (27. Mai 2015 um 06:52)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!