Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
597865bf
Commit
597865bf
authored
Apr 13, 2018
by
Hugo Beauzée-Luyssen
Browse files
Media: Don't include absent files in search results
parent
53e1a520
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/Media.cpp
View file @
597865bf
...
...
@@ -469,7 +469,8 @@ std::vector<MediaPtr> Media::listAll( MediaLibraryPtr ml, IMedia::Type type, Sor
req
=
"SELECT m.* FROM "
+
policy
::
MediaTable
::
Name
+
" m INNER JOIN "
+
policy
::
FileTable
::
Name
+
" f ON m.id_media = f.media_id"
" WHERE m.type = ?"
" AND f.type = ?"
;
" AND f.type = ?"
" AND f.is_present != 0"
;
if
(
sort
==
SortingCriteria
::
LastModificationDate
)
req
+=
" ORDER BY f.last_modification_date"
;
else
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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