mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-23 05:48:11 -05:00
scraper_q: Gracefully degrade to thumbnail-only when no embedly.
Between the local filesystem media provider and this change, scraper_q is workable after a default install now.
This commit is contained in:
@@ -483,7 +483,7 @@ function set_consumer_count {
|
||||
|
||||
set_consumer_count log_q 0
|
||||
set_consumer_count cloudsearch_q 0
|
||||
set_consumer_count scraper_q 0
|
||||
set_consumer_count scraper_q 1
|
||||
set_consumer_count commentstree_q 1
|
||||
set_consumer_count newcomments_q 1
|
||||
set_consumer_count vote_link_q 1
|
||||
|
||||
@@ -504,6 +504,10 @@ def _fetch_embedly_service_data():
|
||||
|
||||
|
||||
def _fetch_embedly_services():
|
||||
if not g.embedly_api_key:
|
||||
g.log.warning("No embedly_api_key configured. Will not use embed.ly.")
|
||||
return []
|
||||
|
||||
service_data = _fetch_embedly_service_data()
|
||||
|
||||
services = []
|
||||
|
||||
Reference in New Issue
Block a user