jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.42k stars 1.28k forks source link

MaxParentalRating does not retrieve current state #6350

Open solidsnake1298 opened 19 hours ago

solidsnake1298 commented 19 hours ago

Describe The Bug After setting a parental rating, I can confirm that it is actually set based on the contents displayed in the library. But when I return to the Parental Control panel it does not display the current value.

Steps To Reproduce

  1. Go to Dashboard > Users > Select User > Parental Control tab
  2. Set a value for the user
  3. Save and close or click on another tab for the user profile
  4. Return to the Parental Control tab.

Expected Behavior The expected behavior is that the current value was be displayed after saving a setting

Logs There are no server logs, but here is what is return for the user when clicking on the Parental Control tab.

{
    "Name": "Test",
    "ServerId": "bfcc7726262845b39bf7fd006bd56f20",
    "Id": "b9a5d83f14c5489baf93f063862e5b8a",
    "HasPassword": true,
    "HasConfiguredPassword": true,
    "HasConfiguredEasyPassword": false,
    "EnableAutoLogin": false,
    "LastLoginDate": "2024-11-26T16:12:42.4064669Z",
    "LastActivityDate": "2024-11-26T16:12:42.4064669Z",
    "Configuration": {
        "AudioLanguagePreference": "",
        "PlayDefaultAudioTrack": true,
        "SubtitleLanguagePreference": "",
        "DisplayMissingEpisodes": false,
        "GroupedFolders": [],
        "SubtitleMode": "Default",
        "DisplayCollectionsView": false,
        "EnableLocalPassword": false,
        "OrderedViews": [],
        "LatestItemsExcludes": [],
        "MyMediaExcludes": [],
        "HidePlayedInLatest": true,
        "RememberAudioSelections": true,
        "RememberSubtitleSelections": true,
        "EnableNextEpisodeAutoPlay": true,
        "CastReceiverId": "F007D354"
    },
    "Policy": {
        "IsAdministrator": false,
        "IsHidden": true,
        "EnableCollectionManagement": false,
        "EnableSubtitleManagement": false,
        "EnableLyricManagement": false,
        "IsDisabled": false,
        "MaxParentalRating": 0,
        "BlockedTags": [],
        "AllowedTags": [],
        "EnableUserPreferenceAccess": true,
        "AccessSchedules": [],
        "BlockUnratedItems": [],
        "EnableRemoteControlOfOtherUsers": false,
        "EnableSharedDeviceControl": true,
        "EnableRemoteAccess": true,
        "EnableLiveTvManagement": true,
        "EnableLiveTvAccess": true,
        "EnableMediaPlayback": true,
        "EnableAudioPlaybackTranscoding": true,
        "EnableVideoPlaybackTranscoding": true,
        "EnablePlaybackRemuxing": true,
        "ForceRemoteSourceTranscoding": false,
        "EnableContentDeletion": false,
        "EnableContentDeletionFromFolders": [],
        "EnableContentDownloading": true,
        "EnableSyncTranscoding": true,
        "EnableMediaConversion": true,
        "EnabledDevices": [],
        "EnableAllDevices": true,
        "EnabledChannels": [],
        "EnableAllChannels": false,
        "EnabledFolders": [
            "0c41907140d802bb58430fed7e2cd79e",
            "abebc196cc1b8bbf6f8bb5ca7b5ad6f1",
            "91c081fe9d342c5e6850d018b77fc7e8",
            "f137a2dd21bbc1b99aa5c0f6bf02a805",
            "40dfe781fa77c620442a7c5d61335535",
            "7d10bd0f3b4e487acfc58e4ab5fddf43",
            "916b6c1d62f6dc94fd35d9d13d028d2a",
            "79a2726d3c50e769a8af1e4184e4fccf",
            "7a183111901dbbf2f6e58776295859dd",
            "d919a1f0473ac0ae4cf5854ee1499838",
            "e731b068135a6ee6cd6bd5738f9b62a2",
            "eb9fa1219493a3163ee77feaad00d404",
            "625fec85ee01951f5d3a9cd7566127bb",
            "767bffe4f11c93ef34b805451a696a4e"
        ],
        "EnableAllFolders": false,
        "InvalidLoginAttemptCount": 0,
        "LoginAttemptsBeforeLockout": -1,
        "MaxActiveSessions": 0,
        "EnablePublicSharing": true,
        "BlockedMediaFolders": [],
        "BlockedChannels": [],
        "RemoteClientBitrateLimit": 0,
        "AuthenticationProviderId": "Jellyfin.Server.Implementations.Users.DefaultAuthenticationProvider",
        "PasswordResetProviderId": "Jellyfin.Server.Implementations.Users.DefaultPasswordResetProvider",
        "SyncPlayAccess": "None"
    }
}

System (please complete the following information):

thornbill commented 17 hours ago

If the rating is not being returned by the api shouldn't this be a server bug?

theguymadmax commented 12 hours ago

https://github.com/jellyfin/jellyfin/issues/12418#issuecomment-2487071671

solidsnake1298 commented 4 hours ago

If the rating is not being returned by the api shouldn't this be a server bug?

Definitely a valid point since the server is returning a value (zero).

viown commented 3 hours ago

Definitely a valid point since the server is returning a value (zero).

0 is for Approved/G/TV-G/TV-Y. Can you try setting it to something else?

solidsnake1298 commented 2 hours ago

In my testing I had set it to PG. Any rating I set it to does save, and does appear to properly filter content. But does not matter which I choose, coming back to the Parental Control tab the drop down is blank.

viown commented 2 hours ago

Can you test this https://github.com/jellyfin/jellyfin-web/pull/6352#issuecomment-2503961539

solidsnake1298 commented 2 hours ago

Can you test this #6352 (comment)

This appears to have resolved the issue.