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
44a65fc5
Commit
44a65fc5
authored
Jan 11, 2014
by
Max Kellermann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
db/upnp/Object: add attribute "url"
Don't store in the std::map.
parent
f031eb1e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
UpnpDatabasePlugin.cxx
src/db/UpnpDatabasePlugin.cxx
+1
-1
Directory.cxx
src/db/upnp/Directory.cxx
+1
-1
Object.hxx
src/db/upnp/Object.hxx
+2
-0
No files found.
src/db/UpnpDatabasePlugin.cxx
View file @
44a65fc5
...
...
@@ -237,7 +237,7 @@ static Song *
upnpItemToSong
(
const
UPnPDirObject
&
dirent
,
const
char
*
uri
)
{
if
(
*
uri
==
0
)
uri
=
dirent
.
getprop
(
"url"
);
uri
=
dirent
.
url
.
c_str
(
);
Song
*
s
=
Song
::
NewFile
(
uri
,
nullptr
);
...
...
src/db/upnp/Directory.cxx
View file @
44a65fc5
...
...
@@ -168,7 +168,7 @@ protected:
break
;
case
'r'
:
if
(
!
m_path
.
back
().
compare
(
"res"
))
{
m_tobj
.
m_props
[
"url"
]
+
=
str
;
m_tobj
.
url
=
str
;
}
break
;
case
'u'
:
...
...
src/db/upnp/Object.hxx
View file @
44a65fc5
...
...
@@ -51,6 +51,7 @@ public:
std
::
string
m_id
;
// ObjectId
std
::
string
m_pid
;
// Parent ObjectId
std
::
string
url
;
std
::
string
m_title
;
// dc:title. Directory name for a container.
Type
type
;
ItemClass
item_class
;
...
...
@@ -81,6 +82,7 @@ public:
{
m_id
.
clear
();
m_pid
.
clear
();
url
.
clear
();
m_title
.
clear
();
type
=
Type
::
UNKNOWN
;
item_class
=
ItemClass
::
UNKNOWN
;
...
...
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