Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
app2641 committed Feb 20, 2016
2 parents 7eb0f81 + 49979e2 commit 15a20cf
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions data/crawler/plugins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Plugins:
enable: true

HentaiAnime:
enable: true
enable: false

Ichizen:
enable: false
Expand All @@ -59,7 +59,7 @@ Plugins:
enable: true

MuryoEro:
enable: true
enable: false

Rakuen:
enable: true
Expand Down
2 changes: 1 addition & 1 deletion src/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
defined('APP') || define('APP', 'Midnight');

$is_ec2 = (is_dir('/home/ec2-user')) ? true: false;
//$is_ec2 = (is_dir('/home/ec2-user')) ? true: true;
// $is_ec2 = (is_dir('/home/ec2-user')) ? true: true;
defined('IS_EC2') || define('IS_EC2', $is_ec2);

$loader = require_once ROOT.'/vendor/autoload.php';
Expand Down
2 changes: 1 addition & 1 deletion src/Midnight/Crawler/ContentsBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ private function _uploadConents ($from_path, $to_path)

try {
$this->S3->upload($from_path, $to_path);

} catch (\Exception $e) {
Logger::addLog($from_path.' -> '.$to_path);
Logger::addLog('S3へのアップロードに失敗した'.PHP_EOL);
Expand Down
1 change: 1 addition & 0 deletions src/Midnight/Crawler/Plugin/Youskbe.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ public function getEyeCatchUrl ($html)
if (is_null($el)) throw new CrawlerException('アイキャッチを取得出来ませんでした');

$img_el = $el->nextSibling()->firstChild()->firstChild();
if (!$img_el) throw new CrawlerException('img要素が見つかりませんでした');
if (!$img_el->hasAttribute('src')) throw new CrawlerException('src属性が見つかりませんでした');

return $img_el->getAttribute('src');
Expand Down

0 comments on commit 15a20cf

Please sign in to comment.