Carpet Bomb
Member
- Oct 29, 2019
- 176
- 25
Not sure where I'm supposed to post this but is there a program that will look through your library for lower version scenes/looks/plugins and delete just those? I apologize if this is in the wrong spot
from pathlib import Path
import re
import sys
var_regex = re.compile(r"([^.]+).([^.]+).(\d+).var")
def parse_var_filename(filename):
matches = var_regex.fullmatch(var_file_path.name)
creator, package, version = matches.groups()
return (creator.lower(), package.lower(), int(version))
try:
addondir_path = Path(sys.argv[1])
except Exception:
print("USAGE: python3 outdated.py <path_to_AddonPackages>")
exit(1)
latest_version = {}
var_files = list(addondir_path.rglob(r"*.var"))
for var_file_path in var_files:
try:
creator, package, version = parse_var_filename(var_file_path.name)
except Exception as e:
print(f"Could not parse var file name: {var_file_path}: {e}")
continue
latest_known_version = latest_version.get((creator, package))
if (latest_known_version is None) or (version > latest_known_version):
latest_version[(creator, package)] = version
for var_file_path in var_files:
try:
creator, package, version = parse_var_filename(var_file_path.name)
except Exception as e:
print(f"Could not parse var file name: {var_file_path}: {e}")
continue
latest_known_version = latest_version.get((creator, package))
if version < latest_known_version:
print(f"{var_file_path}")
Hm this script seemed not to work. wish i knew how to help you but ya im no coder bro. I really appreciate the helpmaybe Boss963 's sharp vam tools does this. Either way it is very simple to script this. An example python script:
This can probably be done in powershell too so you don't need to have python installed. But powershell destroys whatever remaining braincells I have.Python:from pathlib import Path import re import sys var_regex = re.compile(r"([^.]+).([^.]+).(\d+).var") def parse_var_filename(filename): matches = var_regex.fullmatch(var_file_path.name) creator, package, version = matches.groups() return (creator.lower(), package.lower(), int(version)) try: addondir_path = Path(sys.argv[1]) except Exception: print("USAGE: python3 outdated.py <path_to_AddonPackages>") exit(1) latest_version = {} var_files = list(addondir_path.rglob(r"*.var")) for var_file_path in var_files: try: creator, package, version = parse_var_filename(var_file_path.name) except Exception as e: print(f"Could not parse var file name: {var_file_path}: {e}") continue latest_known_version = latest_version.get((creator, package)) if (latest_known_version is None) or (version > latest_known_version): latest_version[(creator, package)] = version for var_file_path in var_files: try: creator, package, version = parse_var_filename(var_file_path.name) except Exception as e: print(f"Could not parse var file name: {var_file_path}: {e}") continue latest_known_version = latest_version.get((creator, package)) if version < latest_known_version: print(f"{var_file_path}")
If its just loading time and not disk space you can use https://f95zone.to/threads/browserassist-2024-12-28-jayjaywon.149761/ with the new var manager. 30k+ vars no problem orI just used it. Unfortunately it really doesn't like how many var's i have. So its pretty sketchy. Looks more and more like I might just have to do it manuallyIts hard to figure out what i need and don't need which makes it hard to figure out what to trim. Some scenes are just monstrous so i need a smaller library to be able to load it. But I really appreciate yall trying to help me out. and thank you ergo for the heads up.
just tried using jays and it wont findIf its just loading time and not disk space you can use https://f95zone.to/threads/browserassist-2024-12-28-jayjaywon.149761/ with the new var manager. 30k+ vars no problem orYou must be registered to see the links
eep ya thats incredibly stupid slow lol. Thanks for the inputtheres one in here called "Delete Obsolete Plugins". i've used that forever, but it is incredibly slow and outdated. When i say slow i mean it does like max 20 at a time, then you have to wait for it to load up the next 20. some other useful plug-ins in there too.
i hope this helps
https://f95zone.to/threads/vam-buy-plugins-2023-06-27-vam-plugins.165054/