Merge pull request #3908 from wallabag/epub-issue-3642

epub: fix exception when articles have the same title
This commit is contained in:
Jérémy Benoist 2019-03-18 09:26:16 +01:00 committed by GitHub
commit 8ab5dcc467
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ class EntriesExport
foreach ($entry->getTags() as $tag) {
$book->setSubject($tag->getLabel());
}
$filename = sha1($entry->getTitle());
$filename = sha1(sprintf('%s:%s', $entry->getUrl(), $entry->getTitle()));
$publishedBy = $entry->getPublishedBy();
$authors = $this->translator->trans('export.unknown');