Skip to content

Commit

Permalink
(fix): broken netflix account regex (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
TDanks2000 authored Sep 23, 2024
1 parent 68f410d commit 8943f15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/netflix/NetflixApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ class _NetflixApi extends ServiceApi {
extractSession(text: string): NetflixSession | null {
let session: NetflixSession | null = null;
const authUrlRegex = /"authURL":"(?<authUrl>.*?)"/;
const profileNameRegex = /"userInfo":\{"name":"(?<profileName>.*?)"/;
const profileNameRegex = /"userInfo":\{"data":\{"name":"(?<profileName>.*?)"/;
const { authUrl } = authUrlRegex.exec(text)?.groups ?? {};
const { profileName = null } = profileNameRegex.exec(text)?.groups ?? {};
if (authUrl) {
Expand Down

0 comments on commit 8943f15

Please sign in to comment.