-
Notifications
You must be signed in to change notification settings - Fork 1
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
malformed JSON string #3
Comments
Solved after I found on a forum that one needs to search and replace www.sky.com/portletepg But now I bump into the next problem: |
Hm, interesting - looks like they've changed the URL, and might be using UTF-16 encoding. Does changing JSON.parse(...) to JSON.parse(..., "UTF-16") make any difference? |
Sorry, that's completely the wrong language, I'm used to thinking in Ruby :) Just looking for how to do it in Perl... |
Looks like it should be something like this instead of decode_json(): use Encode; Found at http://search.cpan.org/~makamaka/JSON-2.21/lib/JSON.pm in section 'utf8' |
It's actually UTF-8, but it works! Thanks a lot! |
Maybe I shouldn't have closed this issue as long as the downloadable code is not on. If you want I can provide it by mail. |
Great! Yes, if you have a patch, please put it in here and I will apply it to the code. Thanks! |
--- /home/jmw/tv_grab_uk_sky.orig 2010-07-16 19:37:29.000000000 +0200 my( $opt, $conf ) = ParseOptions( {
|
Hmm, this formats strangely. Hope you can extract the patch. I can't find out how to submit it properly ... |
I've finally got around to applying this patch. Sorry it took so long! I can't test it locally (no XMLTV setup any more), so let me know if you have any problems. |
when running the grabber I get:
malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "(end of string)") at ./tv_grab_uk_sky_2 line 205.
Any clue?
The text was updated successfully, but these errors were encountered: