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
a7dbfd85
Commit
a7dbfd85
authored
Jan 27, 2016
by
Hugo Beauzée-Luyssen
Browse files
VLCMetadataService: Don't fetch unavailable meta when using vlc 2.2
parent
fda4c6f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/metadata_services/vlc/VLCMetadataService.cpp
View file @
a7dbfd85
...
...
@@ -100,7 +100,14 @@ uint8_t VLCMetadataService::nbThreads() const
void
VLCMetadataService
::
storeMeta
(
parser
::
Task
&
task
,
VLC
::
Media
&
vlcMedia
)
{
#if LIBVLC_VERSION_INT >= LIBVLC_VERSION(3, 0, 0, 0)
task
.
albumArtist
=
vlcMedia
.
meta
(
libvlc_meta_AlbumArtist
);
task
.
discNumber
=
toInt
(
vlcMedia
,
libvlc_meta_DiscNumber
,
"disc number"
);
task
.
discTotal
=
toInt
(
vlcMedia
,
libvlc_meta_DiscTotal
,
"disc total"
);
#else
task
.
discNumber
=
0
;
task
.
discTotal
=
0
;
#endif
task
.
artist
=
vlcMedia
.
meta
(
libvlc_meta_Artist
);
task
.
artworkMrl
=
vlcMedia
.
meta
(
libvlc_meta_ArtworkURL
);
task
.
title
=
vlcMedia
.
meta
(
libvlc_meta_Title
);
...
...
@@ -111,8 +118,6 @@ void VLCMetadataService::storeMeta( parser::Task& task, VLC::Media& vlcMedia )
task
.
duration
=
vlcMedia
.
duration
();
task
.
trackNumber
=
toInt
(
vlcMedia
,
libvlc_meta_TrackNumber
,
"track number"
);
task
.
discNumber
=
toInt
(
vlcMedia
,
libvlc_meta_DiscNumber
,
"disc number"
);
task
.
discTotal
=
toInt
(
vlcMedia
,
libvlc_meta_DiscTotal
,
"disc total"
);
task
.
episode
=
toInt
(
vlcMedia
,
libvlc_meta_Episode
,
"episode number"
);
}
...
...
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