Sank6 / YouTube-Wrapped

Spotify Wrapped but for YouTube (Because Rewind sucked).
https://youtubewrapped.vercel.app/
38 stars 4 forks source link

Invalid watch-history.html. No videos found. #6

Open sameerasw opened 11 months ago

sameerasw commented 11 months ago

Invalid watch-history.html. No videos found. image

Even having the html file with video entries. image

image

Tested on Web as well as on Windows as well but same output.

Much love for this project <3 This is my second year!

Sank6 commented 11 months ago

I'm not sure what exactly is causing this. I've pushed a change to log more debug information (in the console) when there's an error. Also made the regex slightly stricter. The web version should be automatically updated to have this, so if you could try this again and the it still errors, could you share the output from the console - would be really helpful in figuring out what's causing the error

sameerasw commented 11 months ago

I'm not sure what exactly is causing this. I've pushed a change to log more debug information (in the console) when there's an error. Also made the regex slightly stricter. The web version should be automatically updated to have this, so if you could try this again and the it still errors, could you share the output from the console - would be really helpful in figuring out what's causing the error

This time I got a better console log but not sure if it still helps...

And the json format works with no issues so my guess is something with parsing.... I have watched a lot of YouTube so could it be because it's a large file to read?

image

JurekSeverin commented 11 months ago

I have the exact same problem. I get the same console output, but i can open the html file by myself and see my watched videos as described above.

Sank6 commented 11 months ago

Looks like FileReader just returns empty string if the file is too large. There's a couple suggested fixes here https://stackoverflow.com/questions/25810051/filereader-api-on-big-files

JurekSeverin commented 11 months ago

When explicitly asking for a json file instead of html when exporting from google it works fine btw.