Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
scraper_q: Gracefully degrade to thumbnail-only when no embedly.
Browse files Browse the repository at this point in the history
Between the local filesystem media provider and this change, scraper_q
is workable after a default install now.
  • Loading branch information
spladug committed Oct 14, 2013
1 parent b9f146d commit 8bdc623
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion install-reddit.sh
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions r2/r2/lib/media.py
Expand Up @@ -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 = []
Expand Down

0 comments on commit 8bdc623

Please sign in to comment.