SiteHandler.getCurseProjectVersion looks for the first occurrence of data-name in html page source, an attribute which usually (but not always) contains an addon version string.
Problem case: https://wow.curseforge.com/projects/deadly-boss-mods/files
The first data-name occurs in data-name="Deadly Boss Mods (DBM)">, and the version is recorded in the installed.txt as Deadly Boss Mods (DBM) when this mod is installed. This will cause the addon to not be updated properly.
Looking more closely at Curse Project pages, it looks like the version string we want is the one in the first row of the table of files. All these table rows have the css class project-file-list-item. It should be more accurate to search for data-name in the first table row with this class.
SiteHandler.getCurseProjectVersion
looks for the first occurrence ofdata-name
in html page source, an attribute which usually (but not always) contains an addon version string.Problem case: https://wow.curseforge.com/projects/deadly-boss-mods/files The first
data-name
occurs indata-name="Deadly Boss Mods (DBM)">
, and the version is recorded in the installed.txt asDeadly Boss Mods (DBM)
when this mod is installed. This will cause the addon to not be updated properly.Looking more closely at Curse Project pages, it looks like the version string we want is the one in the first row of the table of files. All these table rows have the css class
project-file-list-item
. It should be more accurate to search fordata-name
in the first table row with this class.