Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
24874b82
Commit
24874b82
authored
Jun 03, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'v0.20.x'
parents
b6366498
8dcb1f80
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
29 additions
and
9 deletions
+29
-9
NEWS
NEWS
+5
-0
AndroidManifest.xml
android/AndroidManifest.xml
+2
-2
user.xml
doc/user.xml
+9
-7
ProxyDatabasePlugin.cxx
src/db/plugins/ProxyDatabasePlugin.cxx
+13
-0
No files found.
NEWS
View file @
24874b82
...
...
@@ -31,6 +31,11 @@ ver 0.21 (not yet released)
- opus: support for sending metadata using ogg stream chaining
* require GCC 5.0
ver 0.20.21 (not yet released)
* database
- proxy: add "password" setting
- proxy: support tags "ArtistSort", "AlbumArtistSort", "AlbumSort"
ver 0.20.20 (2018/05/22)
* protocol
- fix "modified-since" filter regression
...
...
android/AndroidManifest.xml
View file @
24874b82
...
...
@@ -2,8 +2,8 @@
<manifest
xmlns:android=
"http://schemas.android.com/apk/res/android"
package=
"org.musicpd"
android:installLocation=
"auto"
android:versionCode=
"
19
"
android:versionName=
"0.20.2
0
"
>
android:versionCode=
"
20
"
android:versionName=
"0.20.2
1
"
>
<uses-sdk
android:minSdkVersion=
"14"
android:targetSdkVersion=
"17"
/>
...
...
doc/user.xml
View file @
24874b82
...
...
@@ -2115,13 +2115,6 @@ run</programlisting>
database.
</para>
<para>
Note that unless overridden by the below settings (e.g. by
setting them to a blank value), general curl configuration
from environment variables such as http_proxy or specified
in ~/.curlrc will be in effect.
</para>
<informaltable>
<tgroup
cols=
"2"
>
<thead>
...
...
@@ -2151,6 +2144,15 @@ run</programlisting>
</row>
<row>
<entry>
<varname>
password
</varname>
</entry>
<entry>
The password used to log in to the "master"
<application>
MPD
</application>
instance.
</entry>
</row>
<row>
<entry>
<varname>
keepalive
</varname>
<parameter>
yes|no
</parameter>
</entry>
...
...
src/db/plugins/ProxyDatabasePlugin.cxx
View file @
24874b82
...
...
@@ -84,6 +84,7 @@ class ProxyDatabase final : public Database, SocketMonitor, IdleMonitor {
DatabaseListener
&
listener
;
const
std
::
string
host
;
const
std
::
string
password
;
const
unsigned
port
;
const
bool
keepalive
;
...
...
@@ -177,6 +178,13 @@ static constexpr struct {
{
TAG_MUSICBRAINZ_RELEASETRACKID
,
MPD_TAG_MUSICBRAINZ_RELEASETRACKID
},
#endif
#if LIBMPDCLIENT_CHECK_VERSION(2,11,0)
{
TAG_ARTIST_SORT
,
MPD_TAG_ARTIST_SORT
},
{
TAG_ALBUM_ARTIST_SORT
,
MPD_TAG_ALBUM_ARTIST_SORT
},
#endif
#if LIBMPDCLIENT_CHECK_VERSION(2,12,0)
{
TAG_ALBUM_SORT
,
MPD_TAG_ALBUM_SORT
},
#endif
{
TAG_NUM_OF_ITEM_TYPES
,
MPD_TAG_COUNT
}
};
...
...
@@ -371,6 +379,7 @@ ProxyDatabase::ProxyDatabase(EventLoop &_loop, DatabaseListener &_listener,
SocketMonitor
(
_loop
),
IdleMonitor
(
_loop
),
listener
(
_listener
),
host
(
block
.
GetBlockValue
(
"host"
,
""
)),
password
(
block
.
GetBlockValue
(
"password"
,
""
)),
port
(
block
.
GetBlockValue
(
"port"
,
0u
)),
keepalive
(
block
.
GetBlockValue
(
"keepalive"
,
false
))
{
...
...
@@ -415,6 +424,10 @@ ProxyDatabase::Connect()
try
{
CheckError
(
connection
);
if
(
!
password
.
empty
()
&&
!
mpd_run_password
(
connection
,
password
.
c_str
()))
ThrowError
(
connection
);
}
catch
(...)
{
mpd_connection_free
(
connection
);
connection
=
nullptr
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment