Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: Cannot read properties of null (reading '0') #34

Open
matthewgiv opened this issue Jul 31, 2024 · 8 comments
Open

TypeError: Cannot read properties of null (reading '0') #34

matthewgiv opened this issue Jul 31, 2024 · 8 comments

Comments

@matthewgiv
Copy link

Love this plugin, but it suddenly stopped working.

Getting error: TypeError: Cannot read properties of null (reading '0') for albums large and small.
Reinstalled, restarted, etc. and still happening.

Any ideas? Thanks in advance!

@bobpour
Copy link

bobpour commented Aug 2, 2024

I'm having the same issue.
Iget below in console:
TypeError: Cannot read properties of null (reading '0')
at Album.parseAlbum (Album.js:105:41)
at async Sorter.run (Sorter.js:163:23)

@sarathsanthan
Copy link

Facing the same issue.

Found any solution ?

Thanks in advance!

@ant-rax
Copy link

ant-rax commented Aug 3, 2024

Me too...

@jasonrmace
Copy link

The culprit seems to be in regex in const script_p on line 105 of Albums.js for me.

Either Google's API or something else has added an id to the script tags and the regex was seeing this and skipping. I changed the const from:
const script_p = /<script nonce=[^{]+{key: *'ds:\d+'[^<]+<\/script>/g;
to
const script_p = /nonce=[^{]+{key: *'ds:\d+'[^<]+<\/script>/g

and it worked for me. Someone who understands REGEX better than me can probably suggest a better solution.

Once I made the changes in the downloaded files, I then removed and re-installed this extension and it worked.

Hope this helps others!

@ant-rax
Copy link

ant-rax commented Aug 19, 2024

Thanks a lot jasonrmace. It works!

@matthewgiv
Copy link
Author

matthewgiv commented Aug 19, 2024 via email

@sarathsanthan
Copy link

Cant thank you enough for this @jasonrmace !
Highly appreciate it !

@bobpour
Copy link

bobpour commented Aug 20, 2024

same here... thanks @jasonrmace !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants