Jump to content

Emby 3.5.2.0 library settings bug


Recommended Posts

Posted

Hello, been running emby 3.5.2.0 on centos7 without any problems, but i got one bug:

 

If i go on server dashboard - Library and Manage library (my movies) and try to change something in download languages it just won't save that setting. If i remove Only download subtitles it wont save. Got nothing in logs.

 

1Hdec5d.jpg

 

Posted

@@Luke this is a bug I have reported a couple of times in the last year or so

 

 

Sent from my iPhone using Tapatalk

Posted

I'm not able to reproduce this. Make sure to click the back button after changing settings to ensure they are saved.

Posted

I'll do more testing, thanks.

  • 1 month later...
Posted

I got this in the browser console when clicking back or just outside the modal:

apiclient.js?v=3.5.3.0:2 Uncaught Error: null name
    at ApiClient.updateVirtualFolderOptions (apiclient.js?v=3.5.3.0:2)
    at HTMLDivElement.onDialogClosing (medialibraryeditor.js?v=3.5.3.0:1)
    at closeDialog (dialoghelper.js?v=3.5.3.0:1)
    at onHashChange (dialoghelper.js?v=3.5.3.0:1)

It seems id is null in apiclient.js:

    ApiClient.prototype.updateVirtualFolderOptions = function(id, libraryOptions) {
        if (!id)
            throw new Error("null name");
        var url = "Library/VirtualFolders/LibraryOptions";
        return url = this.getUrl(url),
        this.ajax({
            type: "POST",
            url: url,
            data: JSON.stringify({
                Id: id,
                LibraryOptions: libraryOptions
            }),
            contentType: "application/json"
        })
    }

hm ItemId is undefined in medialibraryeditor/medialibraryeditor.js?v=3.5.3.0:formatted

    function onDialogClosing() {
        var dlg = this
          , libraryOptions = libraryoptionseditor.getLibraryOptions(dlg.querySelector(".libraryOptions"));
        libraryOptions = Object.assign(currentOptions.library.LibraryOptions || {}, libraryOptions),
        ApiClient.updateVirtualFolderOptions(currentOptions.library.ItemId, libraryOptions)
    }

JSON.stringify(currentOptions.library)
"{"Name":"Kinderserien","Locations":["/mnt/storage/Kinderserien"],"CollectionType":"tvshows"}"

hmmm ... should http://localhost:8096/emby/Library/VirtualFolders contain ItemIds? On of the subsequent requests is http://localhost:8096/emby/Libraries/AvailableOptions?LibraryContentType=tvshows&IsNewLibrary=true ... but those libraries have been there for quite a while... maybe a migration bug? ping me if I should dig deeper.

Posted

I would suggest trying this again with the next release of emby server. Thanks.

  • 5 weeks later...
Posted (edited)

Still happens with beta 3.6.0.66

apiclient.js?v=3.6.0.66:formatted:1321 Uncaught Error: null name
    at ApiClient.updateVirtualFolderOptions (apiclient.js?v=3.6.0.66:formatted:1321)
    at HTMLDivElement.onDialogClosing (medialibraryeditor.js?v=3.6.0.66:formatted:130)
    at closeDialog (dialoghelper.js?v=3.6.0.66:formatted:114)
    at onHashChange (dialoghelper.js?v=3.6.0.66:formatted:23)
Edited by jfd
Posted

Yea the problem is that this is only going to be related to old setups. If you create a new library this shouldn't happen anymore. I will have to see if i can get this to work coming from an older version. Thanks.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...