Skip to content

Commit

Permalink
Set timeout, update default content
Browse files Browse the repository at this point in the history
  • Loading branch information
bneijt committed Jan 24, 2019
1 parent b927552 commit 8a7aa56
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

SOURCES=$(shell find . -name *.py)
SOURCES=$(shell find . -name '*.py')
OUTPUT_PATH=build/plugin.video.ipfs

venv:
Expand All @@ -21,7 +21,7 @@ clean:
build/plugin_video_ipfs.zip: build
cd build && zip -r plugin_video_ipfs.zip plugin.video.ipfs

build: $(SOURCES) fanart.jpg icon.png addon.xml
build: $(SOURCES) fanart.jpg icon.png addon.xml resources/settings.xml
mkdir -p $(OUTPUT_PATH)/ipfs
cp -r src/*.py $(OUTPUT_PATH)
cp -r src/ipfs/*.py $(OUTPUT_PATH)/ipfs
Expand Down
2 changes: 1 addition & 1 deletion resources/settings.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<settings>
<category label="5">
<setting label="32000" type="text" id="rootCid" default="QmR4Ji6iTa8LeVXZLSgWwEao3jdnyj7yFTaANKQuqoVEBw" />
<setting label="32000" type="text" id="rootCid" default="Qme6h3q6xVasRpwVDwbX2TG8yncywJ8CtWZVkjnxPfMDK5" />
<setting label="32001" type="text" id="ipfsGateway" default="https://ipfs.io" />
</category>
</settings>
2 changes: 1 addition & 1 deletion src/ipfs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def __init__(self, gateway):
self._cache = {}

def get(self, path, params):
r = requests.get(self._gateway + '/api/v0/dag/get', params=params)
r = requests.get(self._gateway + '/api/v0/dag/get', params=params, timeout=15)
r.raise_for_status()
return r

Expand Down

0 comments on commit 8a7aa56

Please sign in to comment.