Skip to content

Commit c05fbdd

Browse files
authored
Merge pull request ppy#11094 from nanaya/archive-redirect-ignore
Skip beatmap cover regenerate on missing archive
2 parents c846644 + ec59a7e commit c05fbdd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

app/Models/Beatmapset.php

+4
Original file line numberDiff line numberDiff line change
@@ -501,6 +501,10 @@ public function fetchBeatmapsetArchive()
501501
}
502502

503503
$statusCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
504+
// archive file is gone, nothing to do for now
505+
if ($statusCode === 302) {
506+
return false;
507+
}
504508
if ($statusCode !== 200) {
505509
throw new BeatmapProcessorException('Failed downloading osz: HTTP Error '.$statusCode);
506510
}

0 commit comments

Comments
 (0)