183 QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex())\ |
183 QCryptographicHash.hash(self.__location, QCryptographicHash.Sha1).toHex())\ |
184 .decode() |
184 .decode() |
185 dataDir = os.path.join(Utilities.getConfigDir(), "browser", "subscriptions") |
185 dataDir = os.path.join(Utilities.getConfigDir(), "browser", "subscriptions") |
186 if not os.path.exists(dataDir): |
186 if not os.path.exists(dataDir): |
187 os.makedirs(dataDir) |
187 os.makedirs(dataDir) |
188 fileName = os.path.join(dataDir, "adblock_subscription_%s" % sha1) |
188 fileName = os.path.join(dataDir, "adblock_subscription_{0}".format(sha1)) |
189 return fileName |
189 return fileName |
190 |
190 |
191 def __loadRules(self): |
191 def __loadRules(self): |
192 """ |
192 """ |
193 Private method to load the rules of the subscription. |
193 Private method to load the rules of the subscription. |