forked from wallabag/wallabag
Add translations & migration
This commit is contained in:
@ -111,6 +111,8 @@ class DownloadImagesSubscriber implements EventSubscriber
|
||||
/**
|
||||
* Download all images from the html.
|
||||
*
|
||||
* @todo If we want to add async download, it should be done in that method
|
||||
*
|
||||
* @param Config $config
|
||||
* @param Entry $entry
|
||||
*
|
||||
@ -120,12 +122,6 @@ class DownloadImagesSubscriber implements EventSubscriber
|
||||
{
|
||||
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
|
||||
|
||||
// if ($config->get('download_images_with_rabbitmq')) {
|
||||
|
||||
// } else if ($config->get('download_images_with_redis')) {
|
||||
|
||||
// }
|
||||
|
||||
return $this->downloadImages->processHtml(
|
||||
$entry->getContent(),
|
||||
$entry->getUrl()
|
||||
@ -135,6 +131,8 @@ class DownloadImagesSubscriber implements EventSubscriber
|
||||
/**
|
||||
* Download the preview picture.
|
||||
*
|
||||
* @todo If we want to add async download, it should be done in that method
|
||||
*
|
||||
* @param Config $config
|
||||
* @param Entry $entry
|
||||
*
|
||||
@ -144,12 +142,6 @@ class DownloadImagesSubscriber implements EventSubscriber
|
||||
{
|
||||
$this->downloadImages->setWallabagUrl($config->get('wallabag_url'));
|
||||
|
||||
// if ($config->get('download_images_with_rabbitmq')) {
|
||||
|
||||
// } else if ($config->get('download_images_with_redis')) {
|
||||
|
||||
// }
|
||||
|
||||
return $this->downloadImages->processSingleImage(
|
||||
$entry->getPreviewPicture(),
|
||||
$entry->getUrl()
|
||||
|
||||
Reference in New Issue
Block a user