Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

[files-pipeline] update docs with note about settings

Pawel Miech10b79c9b3ec4
diff --git a/docs/topics/media-pipeline.rst b/docs/topics/media-pipeline.rst
index 96339d03d..6cbac913c 100644
--- a/docs/topics/media-pipeline.rst
+++ b/docs/topics/media-pipeline.rst
@@ -191,9 +191,10 @@ For the Images Pipeline, set :setting:`IMAGES_URLS_FIELD` and/or
If you need something more complex and want to override the custom pipeline
behaviour, see :ref:`topics-media-pipeline-override`.
-.. note:: If you have multiple image pipelines inheriting from ImagePipeline and you want to have different settings in different pipelines
- you can set setting keys preceded with uppercase name of your pipeline class. E.g. if your pipeline is called
- MyPipeline and you want to have custom IMAGES_URLS_FIELD you define setting MYPIPELINE_IMAGES_URLS_FIELD.
+If you have multiple image pipelines inheriting from ImagePipeline and you want to have different settings in different pipelines
+you can set setting keys preceded with uppercase name of your pipeline class. E.g. if your pipeline is called
+MyPipeline and you want to have custom IMAGES_URLS_FIELD you define setting MYPIPELINE_IMAGES_URLS_FIELD and your custom
+settings will be used.
Additional features
@@ -218,6 +219,14 @@ specifies the delay in number of days::
The default value for both settings is 90 days.
+If you have pipeline that subclasses FilesPipeline and you'd like to have different setting
+for it you can set setting keys preceded by uppercase class name. E.g. given pipeline class
+called MyPipeline you can set setting key:
+
+ MYPIPELINE_FILES_EXPIRES = 180
+
+and pipeline class MyPipeline will have expiration time set to 180.
+
.. _topics-images-thumbnails:
Thumbnail generation for images