NPM search behaviour changed, causing wrong type attribution (plugin vs theme)
The following code: https://framagit.org/framasoft/peertube/plugin-index/-/blob/master/server/lib/requests-scheduler.ts#L64-85 is searching plugins, then themes.
For the theme search, the query is:
https://registry.npmjs.org/-/v1/search?text=keywords:peertube+theme&size=50&from=0
Today, this returns also some plugins! Including the livechat plugin (and the hello world plugin for example).
As the type is not tested from the package name, it uses the type used to do the search...
So we have some plugins that are classified as themes, and are no longer findable from the Peertube interface.
The type should be computed from the package name (as it is in Peertube code).