Permalink
Browse files

pixiv, new document structure

  • Loading branch information...
motemen committed Apr 3, 2012
1 parent d22d141 commit 7700af9d83e0410a8564df864d80ccb9b84df523
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Kindlenap/Document/PixivNovel.pm
@@ -42,7 +42,7 @@ sub scrape {
my ($content_elem) = $tree->findnodes(q#//textarea[@name='novel_text']#);
my $content = $content_elem->as_text;
- my $title = $tree->findnodes(q#//h1/text()#).q();
+ my $title = $tree->findnodes(q#//div[@class='novel-front-mainHeader']//h1/text()#).q();
$title =~ s/^\s*|\s*$//g;
my $author = $tree->findnodes(q#//a[starts-with(@href, '/novel/member.php')][not(img)]/text()#).q();
my $user_id = $tree->findnodes(q#id('rpc_u_id')/text()#).q();

0 comments on commit 7700af9

Please sign in to comment.