<feed xmlns='http://www.w3.org/2005/Atom'>
<title>draco, branch v0.3.1</title>
<subtitle>Draco is a script to convert reddit thread to Org document
</subtitle>
<id>https://git.tilde.institute/andinus/draco/atom?h=v0.3.1</id>
<link rel='self' href='https://git.tilde.institute/andinus/draco/atom?h=v0.3.1'/>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/'/>
<updated>2020-11-25T05:51:27Z</updated>
<entry>
<title>Add update News in README</title>
<updated>2020-11-25T05:51:27Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-25T05:51:27Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=674e049a6f65734c458da5fd638eb9868bd487af'/>
<id>urn:sha1:674e049a6f65734c458da5fd638eb9868bd487af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Put author name in code block if it begins &amp; ends with "_"</title>
<updated>2020-11-25T05:47:48Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-25T05:47:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=a508ea89a537666a9eaea6cb9acbe790997b10cd'/>
<id>urn:sha1:a508ea89a537666a9eaea6cb9acbe790997b10cd</id>
<content type='text'>
If the author name starts &amp; ends with "_" then Org will underline it,
so we put those names in a code block.
</content>
</entry>
<entry>
<title>Bump version to v0.3.0, add update News to README</title>
<updated>2020-11-24T12:11:45Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T12:09:48Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=88fb73aaa482c9c493d1e2998c00212ae9d80e89'/>
<id>urn:sha1:88fb73aaa482c9c493d1e2998c00212ae9d80e89</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Document new features in manual</title>
<updated>2020-11-24T12:02:52Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T12:02:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=074b18730ac4a0f5e3534f20962205ff54017759'/>
<id>urn:sha1:074b18730ac4a0f5e3534f20962205ff54017759</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Move repeated code to a subroutine, remove some debug messages</title>
<updated>2020-11-24T12:01:33Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T12:01:33Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=152fb2477ad428eb549e84c79e0e6e7ec26115ae'/>
<id>urn:sha1:152fb2477ad428eb549e84c79e0e6e7ec26115ae</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Actually handle all the comments</title>
<updated>2020-11-24T11:36:35Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T11:36:35Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=5c4725f834b6e261e0fbc3ebf8fdeee3de11e647'/>
<id>urn:sha1:5c4725f834b6e261e0fbc3ebf8fdeee3de11e647</id>
<content type='text'>
This will handle all the comments now!

I've explained the change in comments but I'll paste it here too:

        The problem here is that if the thread is too large then at
        the end reddit will include similar block in which it'll put
        all other top-level comments in children of 2nd kind.

        "kind": "more",
        "data": {
        "id": "gde31fk",
        ...
        "children": [
        "gde31fk",
        "gdbrnyd",
        ...

        If the "load more comments" only hides a single thread then
        it's the only one included in "children". Note how the "id" &amp;
        first element of "children" is same.

        So, reddit wants us to check for the length of this list
        "children", if it is greater than 1 then we need to pull those
        comments independently. If not then we just have
</content>
</entry>
<entry>
<title>Handle comments hidden under "continue this thread"</title>
<updated>2020-11-24T11:03:30Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T11:03:30Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=498eb677442140ceabe0762fd7db88ae6c6eacfb'/>
<id>urn:sha1:498eb677442140ceabe0762fd7db88ae6c6eacfb</id>
<content type='text'>
Now Draco prints all comments except top-level comments hidden under
"load more comments".

I forgot to check for those kind of comments.
</content>
</entry>
<entry>
<title>Bump version to v0.2.2</title>
<updated>2020-11-24T10:12:51Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T10:12:51Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=217afcaf15f70a9c223333356867ec70728a62de'/>
<id>urn:sha1:217afcaf15f70a9c223333356867ec70728a62de</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove wrong information, add new release information</title>
<updated>2020-11-24T10:10:18Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T10:10:18Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=ac04e42afd57ab34e29a2fb19017773c21793541'/>
<id>urn:sha1:ac04e42afd57ab34e29a2fb19017773c21793541</id>
<content type='text'>
This bug wasn't present in v0.2.1 so I've removed it.
</content>
</entry>
<entry>
<title>Handle all kinds of comments in iterate_over_comments</title>
<updated>2020-11-24T09:57:57Z</updated>
<author>
<name>Andinus</name>
<email>andinus@nand.sh</email>
</author>
<published>2020-11-24T09:57:57Z</published>
<link rel='alternate' type='text/html' href='https://git.tilde.institute/andinus/draco/commit/?id=fbbc7de1089859c02d163b20adf9279c1dc6db5a'/>
<id>urn:sha1:fbbc7de1089859c02d163b20adf9279c1dc6db5a</id>
<content type='text'>
iterate_over_comments() is a sub to handle all comments.
print_comment_chain() can only parse first kind of comments now, i.e.
top-level comments &amp; their replies.

Comments hidden under "load more comments" &amp; "continue this thread"
require other operations before print_comment_chain() can print them.
All those operations are handled by iterate_over_comments().

Currently "continue this thread" is skipped but "load more comments"
is parsed. This doesn't add anything to previous releases but just
changes the structure.

I'm just preparing to add code to parse comments hidden under
"continue this thread". After that Draco will be able to archive the
whole thread. Previously handling this would've required copying the
same code over 3 times, now it'll be handled at one place.

3 times would've been:

    1. when we start iterating over top-level comments.
    2. when comments hidden under "load more comments" are parsed &amp;
    their child is hidden under "continue this thread".
    3. when replies of normal comments are hidden under "continue this
    thread".

Case 1 &amp; 2 is fixed by switching to iterate_over_comments(). For
third, the replies are handled by iterate_over_comments() so the 3rd
case is also fixed.
</content>
</entry>
</feed>
