Skip to content
Snippets Groups Projects
Commit 5cdb9b25 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

fetcher: don't download network metadata if the user doesn't want to

The option is defined as "Allow metadata network access". If it's false (default but query during the first run) that means the
user doesn't want to check metadata from the network.
So we should not start a network job when there's a possibility to do it.

This is a regression from ea88b8d6.
Before that we only used FETCHER_SCOPE_LOCAL if the option wasn't set.

(cherry picked from commit 1a85d679)
parent a618e31c
No related branches found
No related tags found
1 merge request!6171[3.0] fetcher: don't download network metadata if the user doesn't want to
Pipeline #524195 passed with stages
in 23 minutes and 7 seconds
......@@ -294,7 +294,7 @@ static void SearchLocal( playlist_fetcher_t* fetcher, struct fetcher_request* re
if( SearchByScope( fetcher, req, FETCHER_SCOPE_LOCAL ) == VLC_SUCCESS )
return; /* done */
if( var_InheritBool( fetcher->owner, "metadata-network-access" ) ||
if( var_InheritBool( fetcher->owner, "metadata-network-access" ) &&
req->options & META_REQUEST_OPTION_SCOPE_NETWORK )
{
if( background_worker_Push( fetcher->network, req, NULL, 0 ) )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment