Log in

No account? Create an account
LJSM: Livejournal backup tool - LiveJournal Client Discussions — LiveJournal [entries|archive|friends|userinfo]
LiveJournal Client Discussions

[ userinfo | livejournal userinfo ]
[ archive | journal archive ]

LJSM: Livejournal backup tool [Dec. 21st, 2003|11:33 pm]
LiveJournal Client Discussions



I've written Livejournal backup tool, LJSM.
It saves posts with comments, memories and graphics of any user. Converts relative links to absolute. Creates contents page, supports http proxy.

There are two companion tools:
ljpms -- script for batch posts manipulation
allin1 -- script for joining posts downloaded by ljsm into one file in reverse chronological order

[User Picture]From: tlhf
2003-12-23 06:10 pm (UTC)

Bug! ^__^

I found a slight bug in ljpms. If a post doesn't have a subject, it's subject is set (in livejournal) to HASH(0xwhatever) XD

Line 178 should be:
'subject' => ($mode eq 'delete') ? '' : (ref $entry->{'subject'} ? "" : $entry->{'subject'}),

It's an ugly line, I know, but it makes the patch simpler. I assume you're gonna put that logic above the TRY now it's got two ternary operators. Your coding style is sweet tho. I wish more perl coders wrote like you. (Even if you do use crazy unecessary 's :P)


(Your code also died on an entry with a ¬ in, but I reckon thats an xml library mismatch between my xml-library/encodes and the server's. XML is teh daft.)
(Reply) (Thread)
[User Picture]From: ati
2003-12-24 11:21 am (UTC)

Re: Bug! ^__^

Yes, you are right.
Thank you for the bugfix, I'll patch my code in the next version
(Reply) (Parent) (Thread)