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

: ( #35

Open
tman617 opened this issue Aug 19, 2024 · 4 comments
Open

: ( #35

tman617 opened this issue Aug 19, 2024 · 4 comments

Comments

@tman617
Copy link

tman617 commented Aug 19, 2024

SyntaxError: Unterminated string in JSON at position 372 (line 1 column 373)

@bobpour
Copy link

bobpour commented Aug 20, 2024

fix already provided.
you have to replace line 97 in: lib/Album.js
below link for detail:
https://github.com/hamada2029/gphotos_sort/pull/30/files

@tman617
Copy link
Author

tman617 commented Sep 5, 2024

thank your for the fast response! - but i tried the line before

i use latest chrome
my installation path is under apps/chrome /contents (mac os 14(same results for windows 10))

my original failure message is:
SyntaxError: Unterminated string in JSON at position 372 (line 1 column 373)
(not: SyntaxError: Unterminated string in JSON at position 371 (line 1 column 372))

when i paste line 97 from lahard:
const sww = src.split('window.WIZ_global_data = ')[1].split(';</script>')[0];
then i got :

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

when i paste additionally from [jasonrmace]:

const script_p = /nonce=[^{]+{key: *'ds:\d+'[^<]+</script>/g

then behaves photosorter like "shufflesorter" (it shuffles also old albums) :/

ps: i renames my photofiles to 1.jpg/2.jpg/3.jpg... or 001.jpg/002.jpg/003.jpeg...

does photosorter still correct working by anyone?

it would be so nice, if anybody can help - i love this tool!

@bobpour
Copy link

bobpour commented Sep 5, 2024

make sure you are following [jasonrmace] instruction correctly:
line 102 replace:
const script_p = /<script nonce=[^{]+{key: *'ds:\d+'[^<]+<\/script>/g;
to
const script_p = /nonce=[^{]+{key: *'ds:\d+'[^<]+<\/script>/g;

I am not sure if you did typo but from what you typed you are missing \ before /script

@tman617
Copy link
Author

tman617 commented Sep 5, 2024

thank you!
unfortunately it was a typo :/

i was also trying if deactivating all my addons change something, but it stays the same :/

when i click "sort by name" i got every time alternate order

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

2 participants