Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Duncan McNAMARA
medialibrary
Commits
92ecc3b5
Commit
92ecc3b5
authored
Mar 28, 2018
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AlbumTrack: Don't include missing files when listing by genre
parent
94abdc9d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/AlbumTrack.cpp
src/AlbumTrack.cpp
+1
-1
No files found.
src/AlbumTrack.cpp
View file @
92ecc3b5
...
...
@@ -152,7 +152,7 @@ std::vector<MediaPtr> AlbumTrack::fromGenre( MediaLibraryPtr ml, int64_t genreId
{
std
::
string
req
=
"SELECT m.* FROM "
+
policy
::
MediaTable
::
Name
+
" m"
" INNER JOIN "
+
policy
::
AlbumTrackTable
::
Name
+
" t ON m.id_media = t.media_id"
" WHERE t.genre_id = ? ORDER BY "
;
" WHERE t.genre_id = ?
AND m.is_present = 1
ORDER BY "
;
switch
(
sort
)
{
case
SortingCriteria
:
:
Duration
:
...
...
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