Skip to content

Commit

Permalink
fix: Encode the FEEDS command-line argument as JSON
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed Feb 10, 2023
1 parent 2078ad9 commit 660e7df
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = "Scrapy group"

# The short X.Y version
version = "1.4.0"
version = "1.4.1"
# The full version, including alpha/beta/rc tags
release = version

Expand Down
8 changes: 8 additions & 0 deletions docs/news.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
Release notes
=============

1.4.1 (2023-02-10)
------------------

Fixed
~~~~~

- Encode the ``FEEDS`` command-line argument as JSON.

1.4.0 (2023-02-07)
------------------

Expand Down
2 changes: 1 addition & 1 deletion scrapyd/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.4.0
1.4.1
3 changes: 2 additions & 1 deletion scrapyd/environ.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import json
import os
from urllib.parse import urlparse, urlunparse

Expand Down Expand Up @@ -26,7 +27,7 @@ def get_settings(self, message):
if self.logs_dir:
settings['LOG_FILE'] = self._get_file(message, self.logs_dir, 'log')
if self.items_dir:
settings['FEEDS'] = {self._get_feed_uri(message, 'jl'): {'format': 'jsonlines'}}
settings['FEEDS'] = json.dumps({self._get_feed_uri(message, 'jl'): {'format': 'jsonlines'}})
return settings

def get_environment(self, message, slot):
Expand Down

0 comments on commit 660e7df

Please sign in to comment.