WebBrowser/AdBlock/AdBlockManager.py

changeset 6160
70441ce79d5a
parent 6150
20efcd29b237
child 6326
5ef9456a0cbe
equal deleted inserted replaced
6159:0c09e32b7121 6160:70441ce79d5a
415 if subscription.startswith(self.__customSubscriptionUrlString): 415 if subscription.startswith(self.__customSubscriptionUrlString):
416 break 416 break
417 else: 417 else:
418 subscriptions.append(self.__customSubscriptionUrlString) 418 subscriptions.append(self.__customSubscriptionUrlString)
419 else: 419 else:
420 subscriptions = [ 420 subscriptions = [self.__defaultSubscriptionUrlString] + \
421 self.__defaultSubscriptionUrlString, 421 self.__additionalDefaultSubscriptionUrlStrings + \
422 *self.__additionalDefaultSubscriptionUrlStrings, 422 [self.__customSubscriptionUrlString]
423 self.__customSubscriptionUrlString,
424 ]
425 for subscription in subscriptions: 423 for subscription in subscriptions:
426 url = QUrl.fromEncoded(subscription.encode("utf-8")) 424 url = QUrl.fromEncoded(subscription.encode("utf-8"))
427 adBlockSubscription = AdBlockSubscription( 425 adBlockSubscription = AdBlockSubscription(
428 url, 426 url,
429 subscription.startswith(self.__customSubscriptionUrlString), 427 subscription.startswith(self.__customSubscriptionUrlString),

eric ide

mercurial