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

fix JSON quote escaping #70

Open
Patty-OFurniture opened this issue Jul 7, 2024 · 2 comments
Open

fix JSON quote escaping #70

Patty-OFurniture opened this issue Jul 7, 2024 · 2 comments

Comments

@Patty-OFurniture
Copy link

Example, I would assume from an episode of Two and a half men:

{"etm":"Charlie becomes obsessed with the newly "married" Rose and begins to stalk her; Alan is concerned when Jake and Eldridge videotape their dangerous stunts.","etmId":114714,"tableId":204,"tableName":"ETT","version":3}

I can work around #34 but quotes in the middle of etm text would be quite nearly impossible.

And as long as I'm here, I'm just removing the token and wrapping it correctly, with a known value, which does not have a pound or hash symbol because that also causes problems:

        json = "{\"TSID0001\"" + json + "}";

And separating the json into 2 objects apart from the leading and trailing text is a minor, but unnecessary matter as well.

@mkrufky
Copy link
Owner

mkrufky commented Jul 7, 2024

Thank you for your efforts - Patches welcome. Please send a pull request.

@Patty-OFurniture
Copy link
Author

Nah, mate, build environment is not something I can get done right now. I mostly just left this as a note in case others are having issues, piggy-backing on issue 34.

I was trying to extract descriptions. The filename has the program name, the create/modify dates can match up to the actual episode, and then I though GraceNote/Neilson could help. Rarely it would. I could not find exact matches otherwise, and partial matches were either negative or inconclusive.

For now, VLC with subtitles on gives me enough information to search a srt/sub archive to find the episode number/name, and if I record duplicates, Cinegy.TsAnalyzer (C#) gives me statistics to tell which .ts file is better quality.

So, trying to extract subtitles and do a "best match" on sub/srt/whatever else I can find.

Again, mostly just a note for others.

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