Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
21614a27
Commit
21614a27
authored
Jun 16, 2012
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Qt: PLModel: make auto art download comply with privacy policy
parent
112a32a0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
modules/gui/qt4/components/playlist/playlist_model.cpp
modules/gui/qt4/components/playlist/playlist_model.cpp
+7
-1
modules/gui/qt4/input_manager.cpp
modules/gui/qt4/input_manager.cpp
+1
-2
No files found.
modules/gui/qt4/components/playlist/playlist_model.cpp
View file @
21614a27
...
...
@@ -391,7 +391,11 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
}
else
if
(
role
==
Qt
::
ToolTipRole
)
{
QString
artUrl
=
getArtUrl
(
index
);
int
i_art_policy
=
var_GetInteger
(
p_playlist
,
"album-art"
);
QString
artUrl
;
/* FIXME: Skip, as we don't want the pixmap and do not know the cached art file */
if
(
i_art_policy
==
ALBUM_ART_ALL
)
artUrl
=
getArtUrl
(
index
);
if
(
artUrl
.
isEmpty
()
)
artUrl
=
":/noart"
;
QString
duration
=
qtr
(
"unknown"
);
QString
name
;
...
...
@@ -1031,6 +1035,8 @@ void PLModel::ensureArtRequested( const QModelIndex &index )
{
if
(
index
.
isValid
()
&&
hasChildren
(
index
)
)
{
int
i_art_policy
=
var_GetInteger
(
p_playlist
,
"album-art"
);
if
(
i_art_policy
!=
ALBUM_ART_ALL
)
return
;
int
nbnodes
=
rowCount
(
index
);
QModelIndex
child
;
for
(
int
row
=
0
;
row
<
nbnodes
;
row
++
)
...
...
modules/gui/qt4/input_manager.cpp
View file @
21614a27
...
...
@@ -643,8 +643,7 @@ void InputManager::requestArtUpdate( input_item_t *p_item )
if
(
p_item
->
p_meta
)
{
int
status
=
vlc_meta_GetStatus
(
p_item
->
p_meta
);
if
(
status
&
(
ITEM_ART_NOTFOUND
|
ITEM_ART_FETCHED
|
ITEM_ARTURL_FETCHED
|
ITEM_PREPARSED
)
)
if
(
status
&
(
ITEM_ART_NOTFOUND
|
ITEM_ART_FETCHED
)
)
return
;
}
playlist_AskForArtEnqueue
(
pl_Get
(
p_intf
),
p_item
);
...
...
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