mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-06 08:16:46 +02:00
fix(import-update): insert episodes incrementally into database
This commit is contained in:
parent
b3b7f446b1
commit
108fdf84b8
1 changed files with 5 additions and 5 deletions
|
|
@ -549,10 +549,10 @@ class PodcastImportController extends BaseController
|
|||
|
||||
$slugs = [];
|
||||
|
||||
$db = db_connect();
|
||||
$db->transStart();
|
||||
|
||||
for ($itemNumber = 1; $itemNumber <= $lastItem; ++$itemNumber) {
|
||||
$db = db_connect();
|
||||
$db->transStart();
|
||||
|
||||
$item = $feed->channel[0]->item[$lastItem - $itemNumber];
|
||||
|
||||
$nsItunes = $item->children('http://www.itunes.com/dtds/podcast-1.0.dtd');
|
||||
|
|
@ -691,9 +691,9 @@ class PodcastImportController extends BaseController
|
|||
->with('errors', $episodePersonModel->errors());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$db->transComplete();
|
||||
$db->transComplete();
|
||||
}
|
||||
|
||||
return redirect()->route('podcast-view', [$this->podcast->id])->with(
|
||||
'message',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue