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
acc1bd62
Commit
acc1bd62
authored
Jun 27, 2020
by
James D. Smith
Committed by
Max Kellermann
Oct 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
playlist/PlaylistSong: Remove dots from playlist file paths.
parent
49ed9dae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
PlaylistSong.cxx
src/playlist/PlaylistSong.cxx
+8
-1
No files found.
src/playlist/PlaylistSong.cxx
View file @
acc1bd62
...
...
@@ -24,6 +24,7 @@
#include "fs/Traits.hxx"
#include "song/DetachedSong.hxx"
#include "util/UriExtract.hxx"
#include "util/UriUtil.hxx"
#include <algorithm>
#include <string>
...
...
@@ -96,8 +97,14 @@ playlist_check_translate_song(DetachedSong &song, std::string_view base_uri,
#endif
if
(
base_uri
.
data
()
!=
nullptr
&&
!
PathTraitsUTF8
::
IsAbsoluteOrHasScheme
(
uri
))
!
PathTraitsUTF8
::
IsAbsoluteOrHasScheme
(
uri
))
{
song
.
SetURI
(
PathTraitsUTF8
::
Build
(
base_uri
,
uri
));
uri
=
song
.
GetURI
();
}
/* Remove dot segments */
std
::
string
new_uri
=
uri_squash_dot_segments
(
uri
);
song
.
SetURI
(
std
::
move
(
new_uri
));
return
playlist_check_load_song
(
song
,
loader
);
}
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