diff --git a/README.md b/README.md index 0ae600c..972de8a 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ IPFS hash that was manually set up to serve the hello deb. Backup your /etc/apt/sources.list, remove all the lines that it has and leave it just with: - deb ipfs:///ipns/QmdyaTjqXayZVQULcEyHQFx6n76TrMBc5aEDCgvp5cUTEi xenial main + deb ipfs:/ipns/QmdyaTjqXayZVQULcEyHQFx6n76TrMBc5aEDCgvp5cUTEi xenial main To test it, run: diff --git a/ipfs b/ipfs index 15c20be..1ac063f 100755 --- a/ipfs +++ b/ipfs @@ -106,7 +106,7 @@ class IPFS_method(): return result def fetch(self, uri, filename): - ipfs_file_path = uri.replace('ipfs://', '', 1) + ipfs_file_path = uri.replace('ipfs:', '', 1) self.send_status({'URI': uri, 'Message': 'Waiting for stats'}) ipfs = ipfsapi.connect('127.0.0.1', 5001)