obsidian-hub
obsidian-hub copied to clipboard
Download numbers for plugins are inflated
I just noticed thanks to this: https://discord.com/channels/686053708261228577/694233507500916796/1050499532326187038 that the plugin download numbers in the hub are quite inflated.
This is because the service used to get the badges sums up downloads for all files, from all releases.
The official script only counts downloads for the manifest.json, since Obsidian downloads these files automatically:
manifest.jsonmain.jsstyles.css(if existing)
Depending on if styles.css exits your numbers are inflated by 2 or 3 times.
Wow - thank you very much indeed for logging this.
So I think you are specifically talking about plugin download numbers as opposed to theme ones, so I'll edit the title.
Yeah, theme download count's looks correct.
The theme download counts are obtained by a script which reads the theme downloads from the obsidian-releases vault.
This issue made me wonder whether we should get the plugin downloads from the same location. The script will typically run once a week, so it won't hammer GitHub.
This could use an other badge style also not perfect but matches the download count of the plugin.
