extruct icon indicating copy to clipboard operation
extruct copied to clipboard

Solves issue #171

Open AbhinavSE opened this issue 3 years ago • 1 comments

As @wjdp suggested in the issue #171 , an apostrophe in the channel's name causes the JSONdecode error. the json.loads() function fails when there are hex codes like "\x27" in the script. So I created a function in the jsonld extractor to replace the hex codes with their special characters before passing it into json.loads() function.

AbhinavSE avatar May 13 '22 15:05 AbhinavSE

Thanks @AbhinavSE, looks like this should work.

Unsure if there's a python lib that can handle the cleaning, do you expect characters outside the set provided? I'm thinking about special chars in other languages.

There's less chances for there to be new characters, but these are YouTube channel names, so there's a chance. But for now, this should work without affecting the runtime by too much.

AbhinavSE avatar May 16 '22 19:05 AbhinavSE