JSON transcripts off by two

Need the mods or admins to do something for you? Post here. Read the "About" post first.

Moderators: Moderators General, Prelates, Magistrates

ct16k
Posts: 0
Joined: Sun Feb 07, 2016 9:31 pm UTC

JSON transcripts off by two

Postby ct16k » Sun Feb 07, 2016 9:44 pm UTC

Hello,

Just wanted to say that the transcript in the info.0.json is from two comics ago (i.e. 1639/info.0.json describes #1637).

myf
Posts: 1
Joined: Sat Feb 13, 2016 12:19 pm UTC

Re: JSON transcripts off by two

Postby myf » Sat Feb 13, 2016 1:16 pm UTC

Confirming for webpages as well: Looking at them with userstyle revealing transcripts [1], last comic with proper transcript was Hoverboard #1608, next two have their empty but in fact they appears shifted as described by OP. I.e. transcript for Food Combinations #1609 appears below Baking Soda and Vinegar #1611.

[1] userstyles.org/styles/84466/xkcd-show-transcript

Ajedi32
Posts: 0
Joined: Wed Jan 13, 2016 4:13 am UTC

Re: JSON transcripts off by two

Postby Ajedi32 » Wed Feb 17, 2016 5:14 pm UTC

Confirmed. This problem is totally messing with the XKCD transcriber bot on Reddit.

Hummin
Posts: 0
Joined: Tue Feb 16, 2016 6:16 am UTC

Re: JSON transcripts off by two

Postby Hummin » Wed Feb 17, 2016 5:25 pm UTC

Confirmed again, if it helps. The bug seems to skip some transcripts, haven't worked out the algorithm yet.

T-Rex
Posts: 0
Joined: Fri Feb 19, 2016 1:44 pm UTC

Re: JSON transcripts off by two

Postby T-Rex » Fri Feb 19, 2016 1:50 pm UTC

It's also really annoying for xkcd apps like Easy xkcd. It has a search function that also checks the transcripts, but now gives wrong search results for the newer comics.

myf
Posts: 1
Joined: Sat Feb 13, 2016 12:19 pm UTC

Re: JSON transcripts off by two

Postby myf » Fri Jul 01, 2016 5:58 pm UTC

Offset increased to three: e.g. transcript for 1674 is displayed under 1677.
I hope it is not the second kind of bug from 1700.

OneTimeTranscriptCorrector
Posts: 1
Joined: Sun Aug 14, 2016 10:37 pm UTC

Re: JSON transcripts off by two

Postby OneTimeTranscriptCorrector » Sun Aug 14, 2016 10:47 pm UTC

Just to clarify if people read this later:

Code: Select all

if 1662 >= comicNumber AND comicNumber >= 1608 {
    transcriptComic = comicNumber + 2
} else if comicNumber >= 1663 {
    transcriptComic = comicNumber + 3
} else {
    transcriptComic = comicNumber
}
transcriptComic will be the comic with the correct transcript. Also note that comics after 1678 (inclusive) do not have transcripts (yet) and transcriptComic could be a comic that doesn't exist.

This means that (until this is fixed) comics 1608 (Hoverboard) and 1663 (Garden) do not have transcripts and are messing up all the other transcripts. These are the two interactive comics that are wierd, which is probably why it is broken.


Return to “Site/Forum issues”

Who is online

Users browsing this forum: gmalivuk and 4 guests