YouTube-Wrapped icon indicating copy to clipboard operation
YouTube-Wrapped copied to clipboard

Invalid watch-history.html. No videos found.

Open sameerasw opened this issue 2 years ago • 5 comments

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!

sameerasw avatar Dec 13 '23 16:12 sameerasw

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

Sank6 avatar Dec 13 '23 17:12 Sank6

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

sameerasw avatar Dec 13 '23 18:12 sameerasw

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.

JurekSeverin avatar Dec 14 '23 15:12 JurekSeverin

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

Sank6 avatar Dec 17 '23 16:12 Sank6

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

JurekSeverin avatar Dec 17 '23 16:12 JurekSeverin