Commit 96cf71e3 authored by Cédric Bellegarde's avatar Cédric Bellegarde

Disable collection download if data is off

parent 63593e1a
Pipeline #213873 passed with stage
in 3 minutes and 11 seconds
......@@ -121,7 +121,8 @@ class DirectorWebService:
show_album_lists = App().settings.get_value("shown-album-lists")
if Type.SUGGESTIONS not in show_album_lists:
start = acl & NetworkAccessACL["YOUTUBE"]
start = acl & NetworkAccessACL["YOUTUBE"] and\
acl & NetworkAccessACL["DATA"]
if start and self.__collection_ws is None:
from lollypop.ws_collection import CollectionWebService
self.__collection_ws = CollectionWebService()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment