114 |
114 |
115 @return URL for custom subscriptions (QUrl) |
115 @return URL for custom subscriptions (QUrl) |
116 """ |
116 """ |
117 location = self.__customSubscriptionLocation() |
117 location = self.__customSubscriptionLocation() |
118 encodedUrl = bytes(location.toEncoded()).decode() |
118 encodedUrl = bytes(location.toEncoded()).decode() |
119 url = QUrl("abp:subscribe?location=%s&title=%s" % \ |
119 url = QUrl("abp:subscribe?location={0}&title={1}".format( |
120 (encodedUrl, self.trUtf8("Custom Rules"))) |
120 encodedUrl, self.trUtf8("Custom Rules"))) |
121 return url |
121 return url |
122 |
122 |
123 def customRules(self): |
123 def customRules(self): |
124 """ |
124 """ |
125 Public method to get a subscription for custom rules. |
125 Public method to get a subscription for custom rules. |