@@ -2,57 +2,71 @@ IPFS Plugin
2
2
===========
3
3
4
4
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.
6
6
7
7
.. _ipfs : http://ipfs.io/
8
8
9
9
Installation
10
10
------------
11
11
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 `` .
14
14
15
15
.. _go-ipfs : https://github.com/ipfs/go-ipfs
16
16
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 `).
18
19
19
20
Usage
20
21
-----
21
22
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.
27
25
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
+ ''''''
32
28
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
34
47
published to ipfs. Only albums/items with ipfs records in the database will
35
48
published, and local paths will be stripped from the library. A hash of the
36
49
library will be returned to the user.
37
50
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.
43
56
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.
47
61
48
62
Ipfs can be mounted as a FUSE file system. This means that music in a remote
49
63
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.
52
66
53
67
Configuration
54
68
-------------
55
69
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