This commit is contained in:
Alon Zakai 2006-12-05 20:20:39 +00:00
parent 7b93830260
commit 1aeeed6972
1 changed files with 2 additions and 4 deletions

View File

@ -376,7 +376,7 @@ class manager:
# Filtering functions
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[:]
@ -388,7 +388,7 @@ class manager:
except AttributeError:
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):
for unique_ID in self.unique_IDs.keys():
try:
@ -396,7 +396,6 @@ class manager:
except AttributeError:
pass
# Miscellaneous minor functions
def set_user_pause(self, unique_ID, new_value):
@ -536,4 +535,3 @@ class manager:
ret = -1
return ret