fixed None type error on xplexproduct

This commit is contained in:
Mathieu Broillet 2025-08-25 18:27:32 +02:00
parent bf4cd556d1
commit 66ebe05908
Signed by: mathieub
GPG Key ID: 4428608CDA3A98D3

View File

@ -138,8 +138,7 @@ async def fake_user_json_or_signin(request: Request, _=host_required([Hosts.CLIE
"plan": "monthly", "plan": "monthly",
"paymentNotificationId": "1234567", "paymentNotificationId": "1234567",
"canUpgrade": True, "canUpgrade": True,
"features": PLEXAMP_FEATURES if "plexamp" in request.headers.get( "features": PLEXAMP_FEATURES if "plexamp" in request.headers.get("X-Plex-Product", "").lower() else FEATURES_DICT
"X-Plex-Product").lower() else FEATURES_DICT
}, },
"subscriptions": [ "subscriptions": [
{ {