overseerr icon indicating copy to clipboard operation
overseerr copied to clipboard

feat(plextv): add custom applicationTitle to Plex OAuth

Open marcusronnback opened this issue 2 years ago • 3 comments

Description

When using the custom application title from the settings the Plex OAuth flow still uses the old one (as seen here. This change makes it so that the applicationTitle is read from the settings.json file on disk.

I initially tried to read from server/lib/settings.ts but I did not succeed. Maybe someone else has better luck, this solution does however work.

Issues Fixed or Closed

  • Fixes additional issue in comments on #404.

marcusronnback avatar Aug 09 '22 20:08 marcusronnback

We actually used to use the application title here, but ended up just hardcoding the value because some users included special characters in their app titles that broke it. 😔

See f7146e41899a59f75b963e1cc9dac9eddf24aebe and the linked issue.

TheCatLady avatar Aug 10 '22 16:08 TheCatLady

We actually used to use the application title here, but ended up just hardcoding the value because some users included special characters in their app titles that broke it. 😔

See f7146e4 and the linked issue.

Ah I see! I missed that issue! Would it be possible to sanitize the applicationTitle instead as to remove forbidden characters? I could give the implementation a try!

marcusronnback avatar Aug 10 '22 16:08 marcusronnback

Ah I see! I missed that issue! Would it be possible to sanitize the applicationTitle instead as to remove forbidden characters? I could give the implementation a try!

Yeah, it was a long time ago. But yes, I think sanitizing or encoding the value would be fine!

TheCatLady avatar Aug 10 '22 16:08 TheCatLady

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Oct 09 '22 18:10 stale[bot]