Skip to content
This repository was archived by the owner on Oct 27, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Board/Yotsuba.pm
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ sub new_yotsuba_post($$$$$$$$$$$$){

# Extract extra info we need from media links
if($link){
(my $number, $type)=$link=~m!/src/(\d+)\.(\w+)!;
(my $number, $type)=$link=~m!/(\d+)\.(\w+)!;
$orig_filename //= "$number.$type";
$media = ($filename or "$number.$type");
$preview = "${number}s.jpg";
Expand Down Expand Up @@ -177,7 +177,7 @@ sub parse_post($$$){

($spoilerfn, $link, $spoiler, $filesize, $width, $height, $filename, $md5, $theight, $twidth) =
($1, $2, $3, $4, $5, $6, $7, $8, $9, $10) if
$post=~m!<div \s class="fileText" \s id="[^"]*"(?: \s* title="([^"]*)")?>File: \s <a \s href="([^"]*)"[^<]*</a>-\((Spoiler \s Image,)? \s* ([\d\sGMKB\.]+),
$post=~m!<div \s class="fileText" \s id="[^"]*"(?: \s* title="([^"]*)")?>File: \s <a \s href="([^"]*)"[^<]*</a>\s\((Spoiler \s Image,)? \s* ([\d\sGMKB\.]+),
\s* (\d+)x(\d+) (?:, \s* <span>([^<]*)</span>)?.*?
<img \s src="[^"]*" .*? data-md5="([^"]*)" \s style="height: \s
([0-9]*)px; \s width: \s ([0-9]*)px;"!xs;
Expand Down