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
9ec86acb
Commit
9ec86acb
authored
Oct 24, 2018
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
decoder/Thread: enable output tags for Tidal and Qobuz
Fixes formatted paths in the `recorder` output, closing #345.
parent
426bde3f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
Thread.cxx
src/decoder/Thread.cxx
+10
-1
No files found.
src/decoder/Thread.cxx
View file @
9ec86acb
...
@@ -35,6 +35,7 @@
...
@@ -35,6 +35,7 @@
#include "util/RuntimeError.hxx"
#include "util/RuntimeError.hxx"
#include "util/Domain.hxx"
#include "util/Domain.hxx"
#include "util/ScopeExit.hxx"
#include "util/ScopeExit.hxx"
#include "util/StringCompare.hxx"
#include "thread/Name.hxx"
#include "thread/Name.hxx"
#include "tag/ApeReplayGain.hxx"
#include "tag/ApeReplayGain.hxx"
#include "Log.hxx"
#include "Log.hxx"
...
@@ -431,6 +432,14 @@ try {
...
@@ -431,6 +432,14 @@ try {
error_uri
));
error_uri
));
}
}
gcc_pure
static
bool
HasRemoteTagScanner
(
const
char
*
uri
)
noexcept
{
return
StringStartsWith
(
uri
,
"tidal://"
)
||
StringStartsWith
(
uri
,
"qobuz://"
);
}
/**
/**
* Try to guess whether tags attached to the given song are
* Try to guess whether tags attached to the given song are
* "volatile", e.g. if they have been received by a live stream, but
* "volatile", e.g. if they have been received by a live stream, but
...
@@ -441,7 +450,7 @@ gcc_pure
...
@@ -441,7 +450,7 @@ gcc_pure
static
bool
static
bool
SongHasVolatileTags
(
const
DetachedSong
&
song
)
noexcept
SongHasVolatileTags
(
const
DetachedSong
&
song
)
noexcept
{
{
return
!
song
.
IsFile
();
return
!
song
.
IsFile
()
&&
!
HasRemoteTagScanner
(
song
.
GetRealURI
())
;
}
}
/**
/**
...
...
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