This commit is contained in:
parent
7b93830260
commit
1aeeed6972
|
@ -376,7 +376,7 @@ class manager:
|
||||||
# Filtering functions
|
# Filtering functions
|
||||||
|
|
||||||
def set_file_filter(self, unique_ID, file_filter):
|
def set_file_filter(self, unique_ID, file_filter):
|
||||||
assert(len(file_filter) == self.get_torrent_core_state(unique_ID, True))
|
assert(len(file_filter) == self.get_torrent_core_state(unique_ID, True)['num_files'])
|
||||||
|
|
||||||
self.unique_IDs[unique_ID].file_filter = file_filter[:]
|
self.unique_IDs[unique_ID].file_filter = file_filter[:]
|
||||||
|
|
||||||
|
@ -388,7 +388,7 @@ class manager:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
# Call this when a session starts, to apply existing filters
|
# Called when a session starts, to apply existing filters
|
||||||
def apply_all_file_filters(self):
|
def apply_all_file_filters(self):
|
||||||
for unique_ID in self.unique_IDs.keys():
|
for unique_ID in self.unique_IDs.keys():
|
||||||
try:
|
try:
|
||||||
|
@ -396,7 +396,6 @@ class manager:
|
||||||
except AttributeError:
|
except AttributeError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
# Miscellaneous minor functions
|
# Miscellaneous minor functions
|
||||||
|
|
||||||
def set_user_pause(self, unique_ID, new_value):
|
def set_user_pause(self, unique_ID, new_value):
|
||||||
|
@ -536,4 +535,3 @@ class manager:
|
||||||
ret = -1
|
ret = -1
|
||||||
|
|
||||||
return ret
|
return ret
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue