No description
Find a file
2025-03-24 19:39:41 -07:00
changelog.md changelog, file IO fixes 2025-03-24 19:39:41 -07:00
main.py changelog, file IO fixes 2025-03-24 19:39:41 -07:00
README.md changelog, file IO fixes 2025-03-24 19:39:41 -07:00

Implemented:

  • WiP

Needs Testing:

  • -h/--help
  • query modinfo of url (-nu URL)
  • save list of mods to file as text (URL or mod IDs) or JSON (modinfo)
  • load from text file of URLs or mod IDs (URL and mod IDs)
  • load from JSON (modinfo)

Mod API Properties

mod

  • modid or modidstr: used to fetch a mod via API v1
  • modidstrs[0]: presumably a list of all modidstrs within a mod's modinfo.json files (found on /api/mods)
  • assetid: used for URI to mod page e.g. /show/mod/<assetid> (prefered for consistent URL normalization)
  • side: to filter client-only mods away from server/both
releases
  • mainfile: direct link to download zip file
  • filename: the filename that should be used for the downloaded file
  • modidstr: the unique modid string identifer for the particular release (typically the same for each release)
  • fileid: optional for old download url e.g. /download?fileid=<fileid> (now redirects)

TODO

  • Implement basic logging.
  • Handle debug better.
  • Convert inappropriate print lines to debug/logging.
  • Game Version fallback options when filtering mods by game version.
  • Still needs a big of error handling (try-except).