Skip to content

Commit 02d8126

Browse files
committed
ipfs: Changelog and proofreading in the docs
1 parent 7d55126 commit 02d8126

File tree

2 files changed

+44
-27
lines changed

2 files changed

+44
-27
lines changed

docs/changelog.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Changelog
66

77
New features:
88

9+
* A new :doc:`/plugins/ipfs` lets you share music via a new, global,
10+
decentralized filesystem. :bug:`1397`
911
* :doc:`/plugins/duplicates`: You can now merge duplicate
1012
track metadata (when detecting duplicate items), or duplicate album
1113
tracks (when detecting duplicate albums).
@@ -91,6 +93,7 @@ Fixes:
9193
files. :bug:`1480`
9294

9395
.. _Python bug: http://bugs.python.org/issue16512
96+
.. _ipfs: http://ipfs.io
9497

9598

9699
1.3.13 (April 24, 2015)

docs/plugins/ipfs.rst

Lines changed: 41 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -2,57 +2,71 @@ IPFS Plugin
22
===========
33

44
The ``ipfs`` plugin makes it easy to share your library and music with friends.
5-
The plugin uses `ipfs`_ for storing the libraries and the file content.
5+
The plugin uses `ipfs`_ for storing the library and file content.
66

77
.. _ipfs: http://ipfs.io/
88

99
Installation
1010
------------
1111

12-
This plugin requires `go-ipfs`_ running as a daemon and that the ipfs command is
13-
in the users $PATH.
12+
This plugin requires `go-ipfs`_ to be running as a daemon and that the
13+
associated ``ipfs`` command is on the user's ``$PATH``.
1414

1515
.. _go-ipfs: https://github.com/ipfs/go-ipfs
1616

17-
Enable the ``ipfs`` plugin in your configuration (see :ref:`using-plugins`).
17+
Once you have the client installed, enable the ``ipfs`` plugin in your
18+
configuration (see :ref:`using-plugins`).
1819

1920
Usage
2021
-----
2122

22-
To add albums to ipfs, making them shareable, use the -a or --add flag. If used
23-
without arguments it will add all albums in the local library. When added all
24-
items and albums will get a ipfs entry in the database containing the hash of
25-
that specific file/folder. Newly imported albums will be added automatically to
26-
ipfs unless set not to do so, see the configuration section below.
23+
This plugin can store and retrieve music individually, or it can share entire
24+
library databases.
2725

28-
These hashes can then be given to a friend and they can ``get`` that album from
29-
ipfs and import it to beets using the -g or --get flag.
30-
If the argument passed to the -g flag isn't an ipfs hash it'll be used as a
31-
query instead, getting all albums matching the query.
26+
Adding
27+
''''''
3228

33-
Using the -p or --publish flag a copy of the local library will be
29+
To add albums to ipfs, making them shareable, use the ``-a`` or ``--add``
30+
flag. If used without arguments it will add all albums in the local library.
31+
When added, all items and albums will get an "ipfs" field in the database
32+
containing the hash of that specific file/folder. Newly imported albums will
33+
be added automatically to ipfs by default (see below).
34+
35+
Retrieving
36+
''''''''''
37+
38+
You can give the ipfs hash for some music to a friend. They can get that album
39+
from ipfs, and import it into beets, using the ``-g`` or ``--get`` flag. If
40+
the argument passed to the ``-g`` flag isn't an ipfs hash, it will be used as
41+
a query instead, getting all albums matching the query.
42+
43+
Sharing Libraries
44+
'''''''''''''''''
45+
46+
Using the ``-p`` or ``--publish`` flag, a copy of the local library will be
3447
published to ipfs. Only albums/items with ipfs records in the database will
3548
published, and local paths will be stripped from the library. A hash of the
3649
library will be returned to the user.
3750

38-
A friend can then import this remote library by using the -i or --import flag.
39-
To tag an imported library with a specific name by passing a name as the second
40-
argument to -i, after the hash.
41-
The content of all remote libraries will be combined into an additional library
42-
as long as the content doesn't already exist in the joined library.
51+
A friend can then import this remote library by using the ``-i`` or
52+
``--import`` flag. To tag an imported library with a specific name by passing
53+
a name as the second argument to ``-i,`` after the hash. The content of all
54+
remote libraries will be combined into an additional library as long as the
55+
content doesn't already exist in the joined library.
4356

44-
When remote libraries has been imported you can search them by using the -l or
45-
--list flag. The hash of albums matching the query will be returned, this can
46-
then be used with -g to fetch and import the album to the local library.
57+
When remote libraries has been imported you can search them by using the
58+
``-l`` or ``--list`` flag. The hash of albums matching the query will be
59+
returned, and this can then be used with ``-g`` to fetch and import the album
60+
to the local library.
4761

4862
Ipfs can be mounted as a FUSE file system. This means that music in a remote
4963
library can be streamed directly, without importing them to the local library
50-
first. If the /ipfs folder is mounted then matching queries will be sent to the
51-
:doc:`/plugins/play` using the -m or --play flag.
64+
first. If the ``/ipfs`` folder is mounted then matching queries will be sent
65+
to the :doc:`/plugins/play` using the ``-m`` or ``--play`` flag.
5266

5367
Configuration
5468
-------------
5569

56-
The ipfs plugin will automatically add imported albums to ipfs and add those hashes
57-
to the database. This can be turned off by setting the ``auto`` option in the
58-
ipfs section of the config to ``no``.
70+
The ipfs plugin will automatically add imported albums to ipfs and add those
71+
hashes to the database. This can be turned off by setting the ``auto`` option
72+
in the ``ipfs:`` section of the config to ``no``.

0 commit comments

Comments
 (0)