复制nvllsvm大神的项目,针对自己实际使用的一丢丢小修改
Emby with the premium Emby Premiere features unlocked.
Note - I'm not going to be devoting much time to into maintaining emby-unlocked from here on. The upstream project is too hostile towards the free software community.
- reliance upon proprietary blobs
- missing build scripts
- missing licenses
- missing source code
Releases including the patch are available below:
While this patch makes your local server believe Emby Premiere features are unlocked, some features may still not function. For example, both tv.emby.media and the mobile apps rely upon validation with the Emby-owned mb3admin.com server.
PluginSecurityManager.cs.patch
Before compilation, simply patch the existing file:
patch -N -p1 -r - Emby.Server.Implementations/Security/PluginSecurityManager.cs < ../PluginSecurityManager.cs.patch
Not really sure what this unlocks outside of removing the nag on the Sync screen. Sync doesn't seem to work afterwards. Regardless - your own Emby server has zero need to contact the Emby-owned validation URL: https://mb3admin.com/admin/service/registration/validateDevice.
The included version of this in the source distribution is minified. Thus, making a patch is difficult.
The only difference boils down to replacing self.getRegistrationInfo
with this:
self.getRegistrationInfo = function (feature, apiClient, options) {
var cacheKey = getCacheKey(feature, apiClient, options);
appStorage.setItem(cacheKey, JSON.stringify({
lastValidDate: new Date().getTime(),
deviceId: self.deviceId()
}));
return Promise.resolve();
};