diff --git a/app/config/config.yml b/app/config/config.yml
index 2155a2017..064df3623 100644
--- a/app/config/config.yml
+++ b/app/config/config.yml
@@ -267,6 +267,11 @@ old_sound_rabbit_mq:
exchange_options:
name: 'wallabag.import.elcurator'
type: topic
+ import_omnivore:
+ connection: default
+ exchange_options:
+ name: 'wallabag.import.omnivore'
+ type: topic
import_firefox:
connection: default
exchange_options:
@@ -350,6 +355,15 @@ old_sound_rabbit_mq:
name: 'wallabag.import.elcurator'
callback: wallabag_import.consumer.amqp.elcurator
qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
+ import_omnivore:
+ connection: default
+ exchange_options:
+ name: 'wallabag.import.omnivore'
+ type: topic
+ queue_options:
+ name: 'wallabag.import.omnivore'
+ callback: wallabag_import.consumer.amqp.omnivore
+ qos_options: {prefetch_count: "%rabbitmq_prefetch_count%"}
import_firefox:
connection: default
exchange_options:
diff --git a/app/config/services.yml b/app/config/services.yml
index 270e79d9d..47f9b3aef 100644
--- a/app/config/services.yml
+++ b/app/config/services.yml
@@ -81,6 +81,11 @@ services:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_elcurator_producer'
$redisProducer: '@wallabag_import.producer.redis.elcurator'
+ Wallabag\ImportBundle\Controller\OmnivoreController:
+ arguments:
+ $rabbitMqProducer: '@old_sound_rabbit_mq.import_omnivore_producer'
+ $redisProducer: '@wallabag_import.producer.redis.omnivore'
+
Wallabag\ImportBundle\Controller\FirefoxController:
arguments:
$rabbitMqProducer: '@old_sound_rabbit_mq.import_firefox_producer'
@@ -377,6 +382,10 @@ services:
tags:
- { name: wallabag_import.import, alias: delicious }
+ Wallabag\ImportBundle\Import\OmnivoreImport:
+ tags:
+ - { name: wallabag_import.import, alias: omnivore }
+
Wallabag\ImportBundle\Import\FirefoxImport:
tags:
- { name: wallabag_import.import, alias: firefox }
diff --git a/app/config/services_rabbit.yml b/app/config/services_rabbit.yml
index 26e02a784..b6f9f1d52 100644
--- a/app/config/services_rabbit.yml
+++ b/app/config/services_rabbit.yml
@@ -18,6 +18,7 @@ services:
$pinboardConsumer: '@old_sound_rabbit_mq.import_pinboard_consumer'
$deliciousConsumer: '@old_sound_rabbit_mq.import_delicious_consumer'
$elcuratorConsumer: '@old_sound_rabbit_mq.import_elcurator_consumer'
+ $omnivoreConsumer: '@old_sound_rabbit_mq.import_omnivore_consumer'
wallabag_import.consumer.amqp.pocket:
class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
@@ -44,6 +45,11 @@ services:
arguments:
$import: '@Wallabag\ImportBundle\Import\DeliciousImport'
+ wallabag_import.consumer.amqp.omnivore:
+ class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
+ arguments:
+ $import: '@Wallabag\ImportBundle\Import\OmnivoreImport'
+
wallabag_import.consumer.amqp.wallabag_v1:
class: Wallabag\ImportBundle\Consumer\AMQPEntryConsumer
arguments:
diff --git a/app/config/services_redis.yml b/app/config/services_redis.yml
index 02c7eba95..2f0f1ac48 100644
--- a/app/config/services_redis.yml
+++ b/app/config/services_redis.yml
@@ -69,6 +69,22 @@ services:
arguments:
$import: '@Wallabag\ImportBundle\Import\DeliciousImport'
+ # Omnivore
+ wallabag_import.queue.redis.omnivore:
+ class: Simpleue\Queue\RedisQueue
+ arguments:
+ $queueName: "wallabag.import.omnivore"
+
+ wallabag_import.producer.redis.omnivore:
+ class: Wallabag\ImportBundle\Redis\Producer
+ arguments:
+ - "@wallabag_import.queue.redis.omnivore"
+
+ wallabag_import.consumer.redis.omnivore:
+ class: Wallabag\ImportBundle\Consumer\RedisEntryConsumer
+ arguments:
+ $import: '@Wallabag\ImportBundle\Import\OmnivoreImport'
+
# pocket
wallabag_import.queue.redis.pocket:
class: Simpleue\Queue\RedisQueue
diff --git a/src/Wallabag/ImportBundle/Command/ImportCommand.php b/src/Wallabag/ImportBundle/Command/ImportCommand.php
index 1031e5675..edc85c01d 100644
--- a/src/Wallabag/ImportBundle/Command/ImportCommand.php
+++ b/src/Wallabag/ImportBundle/Command/ImportCommand.php
@@ -15,6 +15,7 @@ use Wallabag\ImportBundle\Import\ChromeImport;
use Wallabag\ImportBundle\Import\DeliciousImport;
use Wallabag\ImportBundle\Import\FirefoxImport;
use Wallabag\ImportBundle\Import\InstapaperImport;
+use Wallabag\ImportBundle\Import\OmnivoreImport;
use Wallabag\ImportBundle\Import\PinboardImport;
use Wallabag\ImportBundle\Import\ReadabilityImport;
use Wallabag\ImportBundle\Import\WallabagV1Import;
@@ -34,9 +35,10 @@ class ImportCommand extends Command
private InstapaperImport $instapaperImport;
private PinboardImport $pinboardImport;
private DeliciousImport $deliciousImport;
+ private OmnivoreImport $omnivoreImport;
private WallabagV1Import $wallabagV1Import;
- public function __construct(EntityManagerInterface $entityManager, TokenStorageInterface $tokenStorage, UserRepository $userRepository, WallabagV2Import $wallabagV2Import, FirefoxImport $firefoxImport, ChromeImport $chromeImport, ReadabilityImport $readabilityImport, InstapaperImport $instapaperImport, PinboardImport $pinboardImport, DeliciousImport $deliciousImport, WallabagV1Import $wallabagV1Import)
+ public function __construct(EntityManagerInterface $entityManager, TokenStorageInterface $tokenStorage, UserRepository $userRepository, WallabagV2Import $wallabagV2Import, FirefoxImport $firefoxImport, ChromeImport $chromeImport, ReadabilityImport $readabilityImport, InstapaperImport $instapaperImport, PinboardImport $pinboardImport, DeliciousImport $deliciousImport, OmnivoreImport $omnivoreImport, WallabagV1Import $wallabagV1Import)
{
$this->entityManager = $entityManager;
$this->tokenStorage = $tokenStorage;
@@ -48,6 +50,7 @@ class ImportCommand extends Command
$this->instapaperImport = $instapaperImport;
$this->pinboardImport = $pinboardImport;
$this->deliciousImport = $deliciousImport;
+ $this->omnivoreImport = $omnivoreImport;
$this->wallabagV1Import = $wallabagV1Import;
parent::__construct();
@@ -120,6 +123,9 @@ class ImportCommand extends Command
case 'delicious':
$import = $this->deliciousImport;
break;
+ case 'omnivore':
+ $import = $this->omnivoreImport;
+ break;
default:
$import = $this->wallabagV1Import;
}
diff --git a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php
index 5c19d30b3..179e213de 100644
--- a/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php
+++ b/src/Wallabag/ImportBundle/Command/RedisWorkerCommand.php
@@ -27,7 +27,7 @@ class RedisWorkerCommand extends Command
$this
->setName('wallabag:import:redis-worker')
->setDescription('Launch Redis worker')
- ->addArgument('serviceName', InputArgument::REQUIRED, 'Service to use: wallabag_v1, wallabag_v2, pocket, readability, pinboard, delicious, firefox, chrome or instapaper')
+ ->addArgument('serviceName', InputArgument::REQUIRED, 'Service to use: wallabag_v1, wallabag_v2, pocket, readability, pinboard, delicious, omnivore, firefox, chrome or instapaper')
->addOption('maxIterations', '', InputOption::VALUE_OPTIONAL, 'Number of iterations before stopping', false)
;
}
diff --git a/src/Wallabag/ImportBundle/Consumer/RabbitMQConsumerTotalProxy.php b/src/Wallabag/ImportBundle/Consumer/RabbitMQConsumerTotalProxy.php
index 443d167cd..096d2b9a6 100644
--- a/src/Wallabag/ImportBundle/Consumer/RabbitMQConsumerTotalProxy.php
+++ b/src/Wallabag/ImportBundle/Consumer/RabbitMQConsumerTotalProxy.php
@@ -20,8 +20,9 @@ class RabbitMQConsumerTotalProxy
private Consumer $pinboardConsumer;
private Consumer $deliciousConsumer;
private Consumer $elcuratorConsumer;
+ private Consumer $omnivoreConsumer;
- public function __construct(Consumer $pocketConsumer, Consumer $readabilityConsumer, Consumer $wallabagV1Consumer, Consumer $wallabagV2Consumer, Consumer $firefoxConsumer, Consumer $chromeConsumer, Consumer $instapaperConsumer, Consumer $pinboardConsumer, Consumer $deliciousConsumer, Consumer $elcuratorConsumer)
+ public function __construct(Consumer $pocketConsumer, Consumer $readabilityConsumer, Consumer $wallabagV1Consumer, Consumer $wallabagV2Consumer, Consumer $firefoxConsumer, Consumer $chromeConsumer, Consumer $instapaperConsumer, Consumer $pinboardConsumer, Consumer $deliciousConsumer, Consumer $elcuratorConsumer, Consumer $omnivoreConsumer)
{
$this->pocketConsumer = $pocketConsumer;
$this->readabilityConsumer = $readabilityConsumer;
@@ -33,6 +34,7 @@ class RabbitMQConsumerTotalProxy
$this->pinboardConsumer = $pinboardConsumer;
$this->deliciousConsumer = $deliciousConsumer;
$this->elcuratorConsumer = $elcuratorConsumer;
+ $this->omnivoreConsumer = $omnivoreConsumer;
}
/**
@@ -77,6 +79,9 @@ class RabbitMQConsumerTotalProxy
case 'elcurator':
$consumer = $this->elcuratorConsumer;
break;
+ case 'omnivore':
+ $consumer = $this->omnivoreConsumer;
+ break;
default:
return 0;
}
diff --git a/src/Wallabag/ImportBundle/Controller/ImportController.php b/src/Wallabag/ImportBundle/Controller/ImportController.php
index 9309d7d4e..16414d885 100644
--- a/src/Wallabag/ImportBundle/Controller/ImportController.php
+++ b/src/Wallabag/ImportBundle/Controller/ImportController.php
@@ -57,6 +57,7 @@ class ImportController extends AbstractController
+ $this->rabbitMQConsumerTotalProxy->getTotalMessage('pinboard')
+ $this->rabbitMQConsumerTotalProxy->getTotalMessage('delicious')
+ $this->rabbitMQConsumerTotalProxy->getTotalMessage('elcurator')
+ + $this->rabbitMQConsumerTotalProxy->getTotalMessage('omnivore')
;
} catch (\Exception $e) {
$rabbitNotInstalled = true;
@@ -75,6 +76,7 @@ class ImportController extends AbstractController
+ $redis->llen('wallabag.import.pinboard')
+ $redis->llen('wallabag.import.delicious')
+ $redis->llen('wallabag.import.elcurator')
+ + $redis->llen('wallabag.import.omnivore')
;
} catch (\Exception $e) {
$redisNotInstalled = true;
diff --git a/src/Wallabag/ImportBundle/Controller/OmnivoreController.php b/src/Wallabag/ImportBundle/Controller/OmnivoreController.php
new file mode 100644
index 000000000..13bc12922
--- /dev/null
+++ b/src/Wallabag/ImportBundle/Controller/OmnivoreController.php
@@ -0,0 +1,84 @@
+rabbitMqProducer = $rabbitMqProducer;
+ $this->redisProducer = $redisProducer;
+ }
+
+ /**
+ * @Route("/omnivore", name="import_omnivore")
+ */
+ public function indexAction(Request $request, OmnivoreImport $omnivore, Config $craueConfig, TranslatorInterface $translator)
+ {
+ $form = $this->createForm(UploadImportType::class);
+ $form->handleRequest($request);
+
+ $omnivore->setUser($this->getUser());
+
+ if ($craueConfig->get('import_with_rabbitmq')) {
+ $omnivore->setProducer($this->rabbitMqProducer);
+ } elseif ($craueConfig->get('import_with_redis')) {
+ $omnivore->setProducer($this->redisProducer);
+ }
+
+ if ($form->isSubmitted() && $form->isValid()) {
+ $file = $form->get('file')->getData();
+ $markAsRead = $form->get('mark_as_read')->getData();
+ $name = 'omnivore_' . $this->getUser()->getId() . '.json';
+
+ if (null !== $file && \in_array($file->getClientMimeType(), $this->getParameter('wallabag_import.allow_mimetypes'), true) && $file->move($this->getParameter('wallabag_import.resource_dir'), $name)) {
+ $res = $omnivore
+ ->setFilepath($this->getParameter('wallabag_import.resource_dir') . '/' . $name)
+ ->setMarkAsRead($markAsRead)
+ ->import();
+
+ $message = 'flashes.import.notice.failed';
+
+ if (true === $res) {
+ $summary = $omnivore->getSummary();
+ $message = $translator->trans('flashes.import.notice.summary', [
+ '%imported%' => $summary['imported'],
+ '%skipped%' => $summary['skipped'],
+ ]);
+
+ if (0 < $summary['queued']) {
+ $message = $translator->trans('flashes.import.notice.summary_with_queue', [
+ '%queued%' => $summary['queued'],
+ ]);
+ }
+
+ unlink($this->getParameter('wallabag_import.resource_dir') . '/' . $name);
+ }
+
+ $this->addFlash('notice', $message);
+
+ return $this->redirect($this->generateUrl('homepage'));
+ }
+
+ $this->addFlash('notice', 'flashes.import.notice.failed_on_file');
+ }
+
+ return $this->render('@WallabagImport/Omnivore/index.html.twig', [
+ 'form' => $form->createView(),
+ 'import' => $omnivore,
+ ]);
+ }
+}
diff --git a/src/Wallabag/ImportBundle/Import/OmnivoreImport.php b/src/Wallabag/ImportBundle/Import/OmnivoreImport.php
new file mode 100644
index 000000000..d4b9e8110
--- /dev/null
+++ b/src/Wallabag/ImportBundle/Import/OmnivoreImport.php
@@ -0,0 +1,158 @@
+filepath = $filepath;
+
+ return $this;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function import()
+ {
+ if (!$this->user) {
+ $this->logger->error('OmnivoreImport: user is not defined');
+
+ return false;
+ }
+
+ if (!file_exists($this->filepath) || !is_readable($this->filepath)) {
+ $this->logger->error('OmnivoreImport: unable to read file', ['filepath' => $this->filepath]);
+
+ return false;
+ }
+
+ $data = json_decode(file_get_contents($this->filepath), true);
+
+ if (empty($data)) {
+ $this->logger->error('OmnivoreImport: no entries in imported file');
+
+ return false;
+ }
+
+ if ($this->producer) {
+ $this->parseEntriesForProducer($data);
+
+ return true;
+ }
+
+ $this->parseEntries($data);
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function validateEntry(array $importedEntry)
+ {
+ if (empty($importedEntry['url'])) {
+ return false;
+ }
+
+ return true;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function parseEntry(array $importedEntry)
+ {
+ $existingEntry = $this->em
+ ->getRepository(Entry::class)
+ ->findByUrlAndUserId($importedEntry['url'], $this->user->getId());
+
+ if (false !== $existingEntry) {
+ ++$this->skippedEntries;
+
+ return;
+ }
+
+ $data = [
+ 'title' => $importedEntry['title'],
+ 'url' => $importedEntry['url'],
+ 'is_archived' => ('Archived' === $importedEntry['state']) || $this->markAsRead,
+ 'is_starred' => false,
+ 'created_at' => $importedEntry['savedAt'],
+ 'tags' => $importedEntry['labels'],
+ 'published_by' => [$importedEntry['author']],
+ 'published_at' => $importedEntry['publishedAt'],
+ 'preview_picture' => $importedEntry['thumbnail'],
+ ];
+
+ $entry = new Entry($this->user);
+ $entry->setUrl($data['url']);
+ $entry->setTitle($data['title']);
+
+ // update entry with content (in case fetching failed, the given entry will be return)
+ $this->fetchContent($entry, $data['url'], $data);
+
+ if (!empty($data['tags'])) {
+ $this->tagsAssigner->assignTagsToEntry(
+ $entry,
+ $data['tags'],
+ $this->em->getUnitOfWork()->getScheduledEntityInsertions()
+ );
+ }
+
+ $entry->updateArchived($data['is_archived']);
+ $entry->setCreatedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $data['created_at']));
+ if (null !== $data['published_at']) {
+ $entry->setPublishedAt(\DateTime::createFromFormat('Y-m-d\TH:i:s.u\Z', $data['published_at']));
+ }
+ $entry->setPublishedBy($data['published_by']);
+ $entry->setPreviewPicture($data['preview_picture']);
+
+ $this->em->persist($entry);
+ ++$this->importedEntries;
+
+ return $entry;
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ protected function setEntryAsRead(array $importedEntry)
+ {
+ return $importedEntry;
+ }
+}
diff --git a/src/Wallabag/ImportBundle/Resources/views/Omnivore/index.html.twig b/src/Wallabag/ImportBundle/Resources/views/Omnivore/index.html.twig
new file mode 100644
index 000000000..4ce940d47
--- /dev/null
+++ b/src/Wallabag/ImportBundle/Resources/views/Omnivore/index.html.twig
@@ -0,0 +1,45 @@
+{% extends "@WallabagCore/layout.html.twig" %}
+
+{% block title %}{{ 'import.omnivore.page_title'|trans }}{% endblock %}
+
+{% block content %}
+
+
+
+ {% include '@WallabagImport/Import/_information.html.twig' %}
+
+
+
{{ import.description|trans }}
+
{{ 'import.omnivore.how_to'|trans }}
+
+
+ {{ form_start(form, {'method': 'POST'}) }}
+ {{ form_errors(form) }}
+
+
+
+
{{ 'import.form.mark_as_read_title'|trans }}
+ {{ form_widget(form.mark_as_read) }}
+ {{ form_label(form.mark_as_read) }}
+
+
+
+ {{ form_widget(form.save, {'attr': {'class': 'btn waves-effect waves-light'}}) }}
+
+ {{ form_rest(form) }}
+
+
+
+
+
+
+{% endblock %}
diff --git a/tests/Wallabag/ImportBundle/Controller/ImportControllerTest.php b/tests/Wallabag/ImportBundle/Controller/ImportControllerTest.php
index 06a2a2e21..cf1739841 100644
--- a/tests/Wallabag/ImportBundle/Controller/ImportControllerTest.php
+++ b/tests/Wallabag/ImportBundle/Controller/ImportControllerTest.php
@@ -24,6 +24,6 @@ class ImportControllerTest extends WallabagCoreTestCase
$crawler = $client->request('GET', '/import/');
$this->assertSame(200, $client->getResponse()->getStatusCode());
- $this->assertSame(10, $crawler->filter('blockquote')->count());
+ $this->assertSame(11, $crawler->filter('blockquote')->count());
}
}
diff --git a/tests/Wallabag/ImportBundle/Controller/OmnivoreControllerTest.php b/tests/Wallabag/ImportBundle/Controller/OmnivoreControllerTest.php
new file mode 100644
index 000000000..9d10048bf
--- /dev/null
+++ b/tests/Wallabag/ImportBundle/Controller/OmnivoreControllerTest.php
@@ -0,0 +1,203 @@
+logInAs('admin');
+ $client = $this->getTestClient();
+
+ $crawler = $client->request('GET', '/import/omnivore');
+
+ $this->assertSame(200, $client->getResponse()->getStatusCode());
+ $this->assertSame(1, $crawler->filter('form[name=upload_import_file] > button[type=submit]')->count());
+ $this->assertSame(1, $crawler->filter('input[type=file]')->count());
+ }
+
+ public function testImportOmnivoreWithRabbitEnabled()
+ {
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+
+ $client->getContainer()->get(Config::class)->set('import_with_rabbitmq', 1);
+
+ $crawler = $client->request('GET', '/import/omnivore');
+
+ $this->assertSame(200, $client->getResponse()->getStatusCode());
+ $this->assertSame(1, $crawler->filter('form[name=upload_import_file] > button[type=submit]')->count());
+ $this->assertSame(1, $crawler->filter('input[type=file]')->count());
+
+ $client->getContainer()->get(Config::class)->set('import_with_rabbitmq', 0);
+ }
+
+ public function testImportOmnivoreBadFile()
+ {
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+
+ $crawler = $client->request('GET', '/import/omnivore');
+ $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form();
+
+ $data = [
+ 'upload_import_file[file]' => '',
+ ];
+
+ $client->submit($form, $data);
+
+ $this->assertSame(200, $client->getResponse()->getStatusCode());
+ }
+
+ public function testImportOmnivoreWithRedisEnabled()
+ {
+ $this->checkRedis();
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+ $client->getContainer()->get(Config::class)->set('import_with_redis', 1);
+
+ $crawler = $client->request('GET', '/import/omnivore');
+
+ $this->assertSame(200, $client->getResponse()->getStatusCode());
+ $this->assertSame(1, $crawler->filter('form[name=upload_import_file] > button[type=submit]')->count());
+ $this->assertSame(1, $crawler->filter('input[type=file]')->count());
+
+ $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form();
+
+ $file = new UploadedFile(__DIR__ . '/../fixtures/omnivore.json', 'omnivore.json');
+
+ $data = [
+ 'upload_import_file[file]' => $file,
+ ];
+
+ $client->submit($form, $data);
+
+ $this->assertSame(302, $client->getResponse()->getStatusCode());
+
+ $crawler = $client->followRedirect();
+
+ $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
+ $this->assertStringContainsString('flashes.import.notice.summary', $body[0]);
+
+ $this->assertNotEmpty($client->getContainer()->get(Client::class)->lpop('wallabag.import.omnivore'));
+
+ $client->getContainer()->get(Config::class)->set('import_with_redis', 0);
+ }
+
+ public function testImportOmnivoreWithFile()
+ {
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+
+ $crawler = $client->request('GET', '/import/omnivore');
+ $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form();
+
+ $file = new UploadedFile(__DIR__ . '/../fixtures/omnivore.json', 'omnivore.json');
+
+ $data = [
+ 'upload_import_file[file]' => $file,
+ ];
+
+ $client->submit($form, $data);
+
+ $this->assertSame(302, $client->getResponse()->getStatusCode());
+
+ $crawler = $client->followRedirect();
+
+ $content = $client->getContainer()
+ ->get(EntityManagerInterface::class)
+ ->getRepository(Entry::class)
+ ->findByUrlAndUserId(
+ 'https://www.lemonde.fr/economie/article/2024/10/29/malgre-la-crise-du-marche-des-montres-breitling-etend-son-reseau-commercial-et-devoile-ses-ambitions_6365425_3234.html',
+ $this->getLoggedInUserId()
+ );
+
+ $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
+ $this->assertStringContainsString('flashes.import.notice.summary', $body[0]);
+
+ $this->assertInstanceOf(Entry::class, $content);
+
+ $tags = $content->getTagsLabel();
+ $this->assertContains('rss', $tags, 'It includes the "rss" tag');
+ $this->assertGreaterThanOrEqual(2, \count($tags));
+
+ $this->assertInstanceOf(\DateTime::class, $content->getCreatedAt());
+ $this->assertSame('2024-10-29', $content->getCreatedAt()->format('Y-m-d'));
+ }
+
+ public function testImportOmnivoreWithFileAndMarkAllAsRead()
+ {
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+
+ $crawler = $client->request('GET', '/import/omnivore');
+ $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form();
+
+ $file = new UploadedFile(__DIR__ . '/../fixtures/omnivore.json', 'omnivore-read.json');
+
+ $data = [
+ 'upload_import_file[file]' => $file,
+ 'upload_import_file[mark_as_read]' => 1,
+ ];
+
+ $client->submit($form, $data);
+
+ $this->assertSame(302, $client->getResponse()->getStatusCode());
+
+ $crawler = $client->followRedirect();
+
+ $content1 = $client->getContainer()
+ ->get(EntityManagerInterface::class)
+ ->getRepository(Entry::class)
+ ->findByUrlAndUserId(
+ 'https://www.lemonde.fr/economie/article/2024/10/29/l-union-europeenne-adopte-jusqu-a-35-de-surtaxes-sur-les-voitures-electriques-importees-de-chine_6365258_3234.html',
+ $this->getLoggedInUserId()
+ );
+
+ $this->assertInstanceOf(Entry::class, $content1);
+
+ $content2 = $client->getContainer()
+ ->get(EntityManagerInterface::class)
+ ->getRepository(Entry::class)
+ ->findByUrlAndUserId(
+ 'https://www.lemonde.fr/les-decodeurs/article/2024/10/29/presidentielle-americaine-2024-comment-le-calendrier-de-l-election-et-des-affaires-judiciaires-de-trump-s-entremelent_6210916_3211.html',
+ $this->getLoggedInUserId()
+ );
+
+ $this->assertInstanceOf(Entry::class, $content2);
+
+ $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
+ $this->assertStringContainsString('flashes.import.notice.summary', $body[0]);
+ }
+
+ public function testImportOmnivoreWithEmptyFile()
+ {
+ $this->logInAs('admin');
+ $client = $this->getTestClient();
+
+ $crawler = $client->request('GET', '/import/omnivore');
+ $form = $crawler->filter('form[name=upload_import_file] > button[type=submit]')->form();
+
+ $file = new UploadedFile(__DIR__ . '/../fixtures/test.txt', 'test.txt');
+
+ $data = [
+ 'upload_import_file[file]' => $file,
+ ];
+
+ $client->submit($form, $data);
+
+ $this->assertSame(302, $client->getResponse()->getStatusCode());
+
+ $crawler = $client->followRedirect();
+
+ $this->assertGreaterThan(1, $body = $crawler->filter('body')->extract(['_text']));
+ $this->assertStringContainsString('flashes.import.notice.failed', $body[0]);
+ }
+}
diff --git a/tests/Wallabag/ImportBundle/fixtures/omnivore.json b/tests/Wallabag/ImportBundle/fixtures/omnivore.json
new file mode 100644
index 000000000..6e36e7150
--- /dev/null
+++ b/tests/Wallabag/ImportBundle/fixtures/omnivore.json
@@ -0,0 +1,343 @@
+[
+ {
+ "id": "20db074a-34e1-4f55-b0e9-161e367946f6",
+ "slug": "malgre-la-crise-du-marche-des-montres-breitling-etend-son-reseau-192daf3a84e",
+ "title": "Malgré la crise du marché des montres, Breitling étend son réseau commercial et dévoile ses ambitions",
+ "description": "La marque suisse – peu présente en Chine – veut s’étendre ailleurs en Asie et n’exclut pas des acquisitions. En France, après s’être installée sur les Champs-Elysées, elle ouvre boutique à Lille et à Monaco.",
+ "author": "Juliette Garnier",
+ "url": "https://www.lemonde.fr/economie/article/2024/10/29/malgre-la-crise-du-marche-des-montres-breitling-etend-son-reseau-commercial-et-devoile-ses-ambitions_6365425_3234.html",
+ "state": "Archived",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/234/0/6192/3096/1440/720/60/0/5ee3f32_1730201062245-063-1432929408.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T16:30:11.000Z",
+ "updatedAt": "2024-10-31T13:01:28.320Z",
+ "publishedAt": "2024-10-29T16:30:11.000Z"
+ },
+ {
+ "id": "5ace624c-ba30-48cc-82ba-5a4d585e0cd4",
+ "slug": "espagne-l-enquete-visant-l-epouse-de-pedro-sanchez-elargie-ce-de-192d9fe5ee4",
+ "title": "Espagne : l’enquête visant l’épouse de Pedro Sanchez élargie, ce dernier fait part de sa « tranquillité absolue »",
+ "description": "Begoña Gomez fait l’objet d’une enquête pour corruption et trafic d’influence, ouverte après des plaintes déposées par deux associations réputées proches de l’extrême droite.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/international/article/2024/10/29/espagne-l-enquete-visant-l-epouse-de-pedro-sanchez-elargie-ce-dernier-fait-part-de-sa-tranquillite-absolue_6365392_3210.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/385/0/3266/1633/1440/720/60/0/54ca5e3_2024-10-29t141242z-866115530-rc2g8aaxq4l9-rtrmadp-3-spain-argentina.JPG",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T16:21:32.000Z",
+ "updatedAt": "2024-10-29T20:36:19.400Z",
+ "publishedAt": "2024-10-29T16:21:32.000Z"
+ },
+ {
+ "id": "1d72bb2e-2b3d-4d2d-8f17-90f441024358",
+ "slug": "montpellier-enquete-ouverte-apres-la-mort-d-une-jeune-femme-des--192d9fe4e61",
+ "title": "Montpellier : enquête ouverte après la mort d’une jeune femme des suites d’une méningite, malgré des appels au SAMU et aux pompiers",
+ "description": "Malgré deux appels aux secours, l’un au 15 et l’autre au 18, ce sont deux amis qui ont conduit la femme de 25 ans à une clinique montpelliéraine, avant qu’elle ne soit transférée au CHU et ne meure.",
+ "author": "Le Monde",
+ "url": "https://www.lemonde.fr/societe/article/2024/10/29/montpellier-enquete-ouverte-apres-la-mort-d-une-jeune-femme-des-suites-d-une-meningite-malgre-des-appels-au-samu-et-aux-pompiers_6365359_3224.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/24/187/0/2250/1125/1440/720/60/0/4e171be_1729786778722-frame-159.jpg",
+ "labels": [
+ "RSS",
+ "TEST"
+ ],
+ "savedAt": "2024-10-29T16:09:19.000Z",
+ "updatedAt": "2024-10-31T13:03:21.779Z",
+ "publishedAt": "2024-10-29T16:09:19.000Z"
+ },
+ {
+ "id": "5ac06f9c-52e8-47df-984c-038c501819cb",
+ "slug": "tuberculose-le-nombre-de-cas-dans-le-monde-se-stabilise-apres-le-192daa35669",
+ "title": "Tuberculose : le nombre de cas dans le monde se stabilise après le regain des années Covid",
+ "description": "L’incidence de la maladie est en baisse de 8,3 % par rapport aux chiffres de 2015, mais reste loin de l’objectif initialement fixé de diviser par deux le nombre de malades d’ici à 2025.",
+ "author": "Delphine Roucaute",
+ "url": "https://www.lemonde.fr/planete/article/2024/10/29/tuberculose-le-nombre-de-cas-dans-le-monde-se-stabilise-apres-le-regain-des-annees-covid_6365326_3244.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/501/0/6009/3004/1440/720/60/0/01bc1cc_1730215288364-000-34ne6t2.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T16:02:03.000Z",
+ "updatedAt": "2024-10-29T23:36:30.655Z",
+ "publishedAt": "2024-10-29T16:02:03.000Z"
+ },
+ {
+ "id": "2f870f6d-79a9-45a4-8a64-e4cd3e7c4488",
+ "slug": "l-union-europeenne-adopte-jusqu-a-35-de-surtaxes-sur-les-voiture-192d9fe4fa0",
+ "title": "L’Union européenne adopte jusqu’à 35 % de surtaxes sur les voitures électriques importées de Chine",
+ "description": "L’objectif affiché est de rétablir des conditions de concurrence équitables avec des constructeurs accusés de profiter de subventions publiques massives.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/economie/article/2024/10/29/l-union-europeenne-adopte-jusqu-a-35-de-surtaxes-sur-les-voitures-electriques-importees-de-chine_6365258_3234.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/03/131/0/2405/1202/1440/720/60/0/9f89e19_5860742-01-06.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T15:36:53.000Z",
+ "updatedAt": "2024-10-29T20:36:15.460Z",
+ "publishedAt": "2024-10-29T15:36:53.000Z"
+ },
+ {
+ "id": "fe9efcb1-1782-46c3-805d-c9b8074bee3b",
+ "slug": "l-ex-patron-de-la-dgse-bernard-bajolet-sera-juge-pour-complicite-192da0f4619",
+ "title": "L’ex-patron de la DGSE Bernard Bajolet sera jugé pour complicité de tentative d’extorsion",
+ "description": "L’homme d’affaires Alain Duménil accuse le service de renseignement d’avoir fait usage de la contrainte pour lui réclamer de l’argent en 2016.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/societe/article/2024/10/29/l-ex-patron-de-la-dgse-bernard-bajolet-sera-juge-pour-complicite-de-tentative-d-extorsion_6365225_3224.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/99/0/4804/2402/1440/720/60/0/e26408c_1730213831930-000-32hg2qa.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T15:32:35.000Z",
+ "updatedAt": "2024-10-29T20:54:47.245Z",
+ "publishedAt": "2024-10-29T15:32:35.000Z"
+ },
+ {
+ "id": "885df5b1-b564-4535-8ad7-f65bb934375d",
+ "slug": "la-cour-d-appel-de-paris-confirme-le-proces-pour-viol-du-rappeur-192da4a24d7",
+ "title": "La cour d’appel de Paris confirme le procès pour viol du rappeur Naps",
+ "description": "L’artiste est soupçonné d’avoir violé une jeune femme pendant son sommeil à l’automne 2021.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/societe/article/2024/10/29/la-cour-d-appel-de-paris-confirme-le-proces-pour-viol-du-rappeur-naps_6365192_3224.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/369/0/4430/2215/1440/720/60/0/78d02d3_1730214584579-000-9t294r.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T15:26:15.000Z",
+ "updatedAt": "2024-10-29T21:59:05.276Z",
+ "publishedAt": "2024-10-29T15:26:15.000Z"
+ },
+ {
+ "id": "647e36c0-2782-42b0-8694-8599b61e912a",
+ "slug": "les-serbes-apres-leur-medaille-de-bronze-aux-jo-on-a-bu-pendant--192d9ed5eef",
+ "title": "Les Serbes après leur médaille de bronze aux JO : \"On a bu pendant huit heures !\"",
+ "description": "Lors de la cérémonie de remise de médailles des Jeux Olympiques de Paris, les Serbes se sont fait remarquer en titubant sur le podium. La raison est simple...",
+ "author": "La rédaction",
+ "url": "https://www.basketeurope.com/les-serbes-apres-leur-medaille-de-bronze-aux-j0-on-a-bu-pendant-huit-heures/",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://www.basketeurope.com/content/images/2024/10/Marinkovic.webp",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T13:59:23.000Z",
+ "updatedAt": "2024-10-29T20:17:45.252Z",
+ "publishedAt": "2024-10-29T13:59:23.000Z"
+ },
+ {
+ "id": "40c17460-d4bc-4408-aafb-3f6ffbe8d413",
+ "slug": "a-quoi-ressemble-le-parcours-du-tour-de-france-2025-192d9fe6f1d",
+ "title": "A quoi ressemble le parcours du Tour de France 2025 ?",
+ "description": "Le parcours de la prochaine Grande Boucle cycliste a été dévoilé mardi. Le peloton s’élancera de Lille pour retrouver, trois semaines plus tard, la traditionnelle arrivée sur les Champs-Elysées, à Paris. Entre-temps, il lui faudra enchaîner les cols mythiques.",
+ "author": "Valentin Moinard",
+ "url": "https://www.lemonde.fr/sport/article/2024/10/29/cyclisme-le-tour-de-france-2025-fera-la-part-belle-aux-grimpeurs_6364955_3242.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/07/07/410/0/5994/2997/1440/720/60/0/1df95b2_5013615-01-06.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T13:12:05.000Z",
+ "updatedAt": "2024-10-29T20:36:23.653Z",
+ "publishedAt": "2024-10-29T13:12:05.000Z"
+ },
+ {
+ "id": "d4eb58ef-1cab-4aef-aee1-89dca60b8a80",
+ "slug": "arrets-maladie-des-fonctionnaires-les-arguments-discutables-du-g-192d9fe680a",
+ "title": "Arrêts maladie des fonctionnaires : les arguments discutables du gouvernement pour justifier sa réforme",
+ "description": "Alors que l’exécutif souhaite ne plus payer les trois premiers jours d’absence des agents publics, le fait qu’il prenne peu en compte l’amélioration de la qualité de vie au travail lui vaut de vives critiques, de la part des syndicats, mais aussi de personnalités ayant l’expérience du terrain.",
+ "author": "Bertrand Bissuel",
+ "url": "https://www.lemonde.fr/politique/article/2024/10/29/arrets-maladie-des-fonctionnaires-les-arguments-discutables-du-gouvernement-pour-justifier-sa-reforme_6364919_823448.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/265/0/6720/3360/1440/720/60/0/2f2f937_1730191618529-cbi1223010.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T13:00:08.000Z",
+ "updatedAt": "2024-10-29T20:36:21.703Z",
+ "publishedAt": "2024-10-29T13:00:08.000Z"
+ },
+ {
+ "id": "ff9c411a-e91f-424b-a570-f92b311026a5",
+ "slug": "premium-jean-denys-choulet-selectionneur-du-kosovo-ma-nationalit-192db836507",
+ "title": "[Premium] Jean-Denys Choulet, sélectionneur du Kosovo : \"Ma nationalité, c'est le basket\"",
+ "description": "Huit mois après son licenciement de la Chorale de Roanne, Jean-Denys Choulet a retrouvé un poste en tant que sélectionneur du Kosovo. À 66 ans, il ne se voyait pas quitter le milieu du basket et reste ouvert à l'idée de diriger un club.",
+ "author": "Morgan Parmentier",
+ "url": "https://www.basketeurope.com/premium-jean-denys-choulet-ma-nationalite-cest-le-basket/",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://www.basketeurope.com/content/images/size/w1200/2024/10/choulet-jd-chorale-roanne-tuan-nguyen.webp",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T12:31:47.000Z",
+ "updatedAt": "2024-10-30T03:41:14.412Z",
+ "publishedAt": "2024-10-29T12:31:47.000Z"
+ },
+ {
+ "id": "54ae4346-03c0-407e-b204-b09351174365",
+ "slug": "pedocriminalite-l-eglise-doit-mieux-sanctionner-les-auteurs-et-a-192da2d8b8f",
+ "title": "Pédocriminalité : l’Eglise doit mieux sanctionner les auteurs et aider les victimes, selon un rapport du Vatican",
+ "description": "En avril 2022, le pape François avait demandé à une commission pontificale un rapport sur la protection des mineurs dans l’Eglise. Très attendu, il vient d’être publié par le Saint-Siège.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/international/article/2024/10/29/pedocriminalite-l-eglise-doit-mieux-sanctionner-les-auteurs-et-aider-les-victimes-selon-un-rapport-du-vatican_6364916_3210.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/27/688/0/8256/4128/1440/720/60/0/a7b4e07_5084272-01-06.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T12:26:36.000Z",
+ "updatedAt": "2024-10-29T21:27:50.999Z",
+ "publishedAt": "2024-10-29T12:26:36.000Z"
+ },
+ {
+ "id": "b2d30e8c-c344-4460-a583-4a2955fdc197",
+ "slug": "cybercriminalite-les-stealers-redline-et-meta-vises-par-une-oper-192d90d1624",
+ "title": "Cybercriminalité : les « stealers » Redline et META visés par une opération policière internationale",
+ "description": "Le marché des identifiants dérobés est devenu un secteur central de la cybercriminalité. Les deux virus visés par cette opération policière, baptisée « Magnus », ont permis le vol de plus de 227 millions de mots de passe en 2024.",
+ "author": "Florian Reynaud",
+ "url": "https://www.lemonde.fr/pixels/article/2024/10/29/cybercriminalite-les-stealers-redline-et-meta-vises-par-une-operation-policiere-internationale_6364915_4408996.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/10/252/0/3008/1504/1440/720/60/0/b3dbd8e_1728546840972-papier-271-16.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T12:21:06.000Z",
+ "updatedAt": "2024-10-29T16:12:46.658Z",
+ "publishedAt": "2024-10-29T12:21:06.000Z"
+ },
+ {
+ "id": "a4a6e509-beab-4577-99db-2f1db819d669",
+ "slug": "au-maroc-emmanuel-macron-appelle-a-plus-de-resultats-contre-l-im-192d90d159a",
+ "title": "Au Maroc, Emmanuel Macron appelle à plus de « résultats » contre l’immigration illégale et réaffirme son soutien à la « souveraineté marocaine » au Sahara occidental",
+ "description": "Le chef de l’Etat français a également proposé au roi du Maroc, Mohammed VI, de signer un nouveau « cadre stratégique » bilatéral en 2025 à Paris, soixante-dix ans après la déclaration de la Celle-Saint-Cloud qui scella l’indépendance du Maroc de la France.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/international/article/2024/10/29/au-maroc-emmanuel-macron-appelle-a-plus-de-resultats-contre-l-immigration-illegale-et-reaffirme-son-soutien-a-la-souverainete-marocaine-au-sahara-occidental_6364914_3210.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/350/0/4201/2100/1440/720/60/0/c37301c_5103313-01-06.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T12:14:53.000Z",
+ "updatedAt": "2024-10-29T16:12:46.456Z",
+ "publishedAt": "2024-10-29T12:14:53.000Z"
+ },
+ {
+ "id": "0ab9e8c7-c88b-4a31-af3e-62ec4766b99d",
+ "slug": "prison-de-noumea-l-etat-condamne-car-trop-lent-a-ameliorer-les-c-192d90d0722",
+ "title": "Prison de Nouméa : l’Etat condamné car trop lent à améliorer les conditions de détention",
+ "description": "En 2020, le Conseil d’Etat avait exigé des mesures urgentes pour les droits des détenus au Camp-Est, mais l’administration a pris du retard et les travaux n’auront pas lieu avant 2028, selon l’Observatoire international des prisons.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/societe/article/2024/10/29/prison-de-noumea-l-etat-condamne-car-trop-lent-a-ameliorer-les-conditions-de-detention_6364912_3224.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/520/0/4160/2080/1440/720/60/0/9ec59fb_1730203377797-cdo-cellule-case-g-cp-nouma-a-2.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T12:08:18.000Z",
+ "updatedAt": "2024-10-29T16:12:42.744Z",
+ "publishedAt": "2024-10-29T12:08:18.000Z"
+ },
+ {
+ "id": "fe79a70e-d1e1-43fe-8555-094209d1b48d",
+ "slug": "tour-de-france-femmes-2025-la-course-traversera-l-hexagone-d-oue-192da131a9a",
+ "title": "Tour de France Femmes 2025 : la course traversera l’Hexagone d’Ouest en Est, de la Bretagne aux Alpes",
+ "description": "Le parcours de la quatrième édition de la course cycliste a été présenté mardi. Du 26 juillet au 3 août, il fera la part belle aux grimpeuses, qui auront trois étapes finales dans le massif alpin pour s’illustrer.",
+ "author": "Valentin Moinard",
+ "url": "https://www.lemonde.fr/sport/article/2024/10/29/tour-de-france-femmes-2025-de-la-bretagne-aux-alpes-la-course-traversera-la-france-d-ouest-en-est_6364908_3242.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/08/17/1194/0/7268/3634/1440/720/60/0/8bafa27_5442255-01-06.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T11:52:45.000Z",
+ "updatedAt": "2024-10-29T20:58:58.164Z",
+ "publishedAt": "2024-10-29T11:52:45.000Z"
+ },
+ {
+ "id": "54687e28-21e1-42b4-bb92-cc5f39716464",
+ "slug": "en-direct-guerre-au-proche-orient-le-bombardement-israelien-sur--192da214287",
+ "title": "En direct, guerre au Proche-Orient : le bombardement israélien sur le nord de la bande de Gaza a fait 93 morts, selon un nouveau bilan de la défense civile",
+ "description": "Un précédent bilan, établi par la même source, faisait état de 55 morts. L’attaque aérienne, qui a eu lieu dans la nuit de lundi à mardi, a visé la ville de Beit Lahya, dans le nord de la bande de Gaza.",
+ "author": "Seb2000",
+ "url": "https://www.lemonde.fr/international/live/2024/10/29/en-direct-guerre-au-proche-orient-le-bombardement-israelien-sur-le-nord-de-la-bande-de-gaza-a-fait-93-morts-selon-un-nouveau-bilan-de-la-defense-civile_6362390_3210.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/303/0/3644/1822/1440/720/60/0/6b6faba_1730210101426-468617.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T11:52:34.000Z",
+ "updatedAt": "2024-10-29T21:14:26.095Z",
+ "publishedAt": "2024-10-29T11:52:34.000Z"
+ },
+ {
+ "id": "a2b54509-62ad-4ab7-a68a-2a970ac25952",
+ "slug": "au-chili-le-gouvernement-de-gauche-malmene-aux-elections-locales-192da0e7d74",
+ "title": "Au Chili, le gouvernement de gauche malmené aux élections locales",
+ "description": "La droite de la coalition Chile Vamos sort renforcée des élections municipales et régionales, tandis que l’extrême droite progresse, sans enregistrer la percée qu’elle espérait.",
+ "author": "Flora Genoux",
+ "url": "https://www.lemonde.fr/international/article/2024/10/29/au-chili-le-gouvernement-de-gauche-malmene-aux-elections-locales_6364875_3210.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/720/0/8640/4320/1440/720/60/0/3632d71_1730193220296-852876.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T11:31:53.000Z",
+ "updatedAt": "2024-10-29T20:53:55.779Z",
+ "publishedAt": "2024-10-29T11:31:53.000Z"
+ },
+ {
+ "id": "9c68ff83-1927-4377-a3b0-a048516a725d",
+ "slug": "en-isere-lyes-louffok-est-le-candidat-insoumis-investi-a-l-elect-192d90d319e",
+ "title": "En Isère, Lyes Louffok est le candidat « insoumis » investi à l’élection législative partielle",
+ "description": "Le siège est vacant depuis la démission d’Hugo Prevost (LFI), accusé de violences sexistes et sexuelles.",
+ "author": "Le Monde avec AFP",
+ "url": "https://www.lemonde.fr/politique/article/2024/10/29/en-isere-lyes-louffok-est-le-candidat-insoumis-investi-a-l-election-legislative-partielle_6364842_823448.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/10/29/552/0/6628/3314/1440/720/60/0/607f0f6_1730199775062-000-34r33w7.jpg",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T11:24:36.000Z",
+ "updatedAt": "2024-10-29T16:12:53.630Z",
+ "publishedAt": "2024-10-29T11:24:36.000Z"
+ },
+ {
+ "id": "1015c224-bd79-4ed9-9268-8fa9803a52cd",
+ "slug": "presidentielle-americaine-2024-comment-le-calendrier-de-l-electi-192d90d3440",
+ "title": "Présidentielle américaine 2024 : comment le calendrier de l’élection et des affaires judiciaires de Trump s’entremêlent",
+ "description": "Le verdict du procès visant l’ancien président ne devrait être connu qu’après l’élection, et le reste des poursuites pénales reste incertain. « Le Monde » vous propose de suivre le déroulé, mis à jour continuellement, de cette année décisive pour les Etats-Unis.",
+ "author": "Gary Dagorn, Jean-Philippe Lefief",
+ "url": "https://www.lemonde.fr/les-decodeurs/article/2024/10/29/presidentielle-americaine-2024-comment-le-calendrier-de-l-election-et-des-affaires-judiciaires-de-trump-s-entremelent_6210916_3211.html",
+ "state": "Active",
+ "readingProgress": 0,
+ "thumbnail": "https://img.lemde.fr/2024/01/12/0/0/1500/750/1440/720/60/0/e9367e3_1705065713486-chrono-media-appel.png",
+ "labels": [
+ "RSS"
+ ],
+ "savedAt": "2024-10-29T11:17:19.000Z",
+ "updatedAt": "2024-10-29T16:12:54.352Z",
+ "publishedAt": "2024-10-29T11:17:19.000Z"
+ }
+]
\ No newline at end of file
diff --git a/translations/messages.en.yml b/translations/messages.en.yml
index e06387742..312581153 100644
--- a/translations/messages.en.yml
+++ b/translations/messages.en.yml
@@ -503,6 +503,10 @@ import:
page_title: 'Import > elCurator'
description: 'This importer will import all your elCurator articles.'
how_to: Please select your elCurator export and click on the button below to upload and import it.
+ omnivore:
+ page_title: 'Import > Omnivore'
+ description: 'This importer will import all your Omnivore articles.'
+ how_to: Please unzip your Omnivore export, then upload each JSON file named "metadata_x_to_y.json" one by one.
readability:
page_title: Import > Readability
description: This importer will import all your Readability articles.
diff --git a/web/wallassets/41a1d465797f51702171.otf b/web/wallassets/41a1d465797f51702171.otf
new file mode 100644
index 000000000..1a3027223
Binary files /dev/null and b/web/wallassets/41a1d465797f51702171.otf differ