|
39 | 39 | from deluge.core.preferencesmanager import PreferencesManager |
40 | 40 | from deluge.core.rpcserver import export |
41 | 41 | from deluge.core.torrentmanager import TorrentManager |
42 | | -from deluge.decorators import deprecated, maybe_coroutine |
| 42 | +from deluge.decorators import maybe_coroutine |
43 | 43 | from deluge.error import ( |
44 | 44 | AddTorrentError, |
45 | 45 | DelugeError, |
@@ -971,77 +971,53 @@ def set_torrent_trackers( |
971 | 971 | def get_magnet_uri(self, torrent_id: str) -> str: |
972 | 972 | return self.torrentmanager[torrent_id].get_magnet_uri() |
973 | 973 |
|
974 | | - @deprecated |
975 | 974 | @export |
976 | 975 | def set_torrent_max_connections(self, torrent_id, value): |
977 | | - """Deprecated: Use set_torrent_options with 'max_connections'""" |
978 | | - self.set_torrent_options([torrent_id], {'max_connections': value}) |
| 976 | + raise NotImplementedError('Use set_torrent_options') |
979 | 977 |
|
980 | | - @deprecated |
981 | 978 | @export |
982 | 979 | def set_torrent_max_upload_slots(self, torrent_id, value): |
983 | | - """Deprecated: Use set_torrent_options with 'max_upload_slots'""" |
984 | | - self.set_torrent_options([torrent_id], {'max_upload_slots': value}) |
| 980 | + raise NotImplementedError('Use set_torrent_options') |
985 | 981 |
|
986 | | - @deprecated |
987 | 982 | @export |
988 | 983 | def set_torrent_max_upload_speed(self, torrent_id, value): |
989 | | - """Deprecated: Use set_torrent_options with 'max_upload_speed'""" |
990 | | - self.set_torrent_options([torrent_id], {'max_upload_speed': value}) |
| 984 | + raise NotImplementedError('Use set_torrent_options') |
991 | 985 |
|
992 | | - @deprecated |
993 | 986 | @export |
994 | 987 | def set_torrent_max_download_speed(self, torrent_id, value): |
995 | | - """Deprecated: Use set_torrent_options with 'max_download_speed'""" |
996 | | - self.set_torrent_options([torrent_id], {'max_download_speed': value}) |
| 988 | + raise NotImplementedError('Use set_torrent_options') |
997 | 989 |
|
998 | | - @deprecated |
999 | 990 | @export |
1000 | 991 | def set_torrent_file_priorities(self, torrent_id, priorities): |
1001 | | - """Deprecated: Use set_torrent_options with 'file_priorities'""" |
1002 | | - self.set_torrent_options([torrent_id], {'file_priorities': priorities}) |
| 992 | + raise NotImplementedError('Use set_torrent_options') |
1003 | 993 |
|
1004 | | - @deprecated |
1005 | 994 | @export |
1006 | 995 | def set_torrent_prioritize_first_last(self, torrent_id, value): |
1007 | | - """Deprecated: Use set_torrent_options with 'prioritize_first_last'""" |
1008 | | - self.set_torrent_options([torrent_id], {'prioritize_first_last_pieces': value}) |
| 996 | + raise NotImplementedError('Use set_torrent_options') |
1009 | 997 |
|
1010 | | - @deprecated |
1011 | 998 | @export |
1012 | 999 | def set_torrent_auto_managed(self, torrent_id, value): |
1013 | | - """Deprecated: Use set_torrent_options with 'auto_managed'""" |
1014 | | - self.set_torrent_options([torrent_id], {'auto_managed': value}) |
| 1000 | + raise NotImplementedError('Use set_torrent_options') |
1015 | 1001 |
|
1016 | | - @deprecated |
1017 | 1002 | @export |
1018 | 1003 | def set_torrent_stop_at_ratio(self, torrent_id, value): |
1019 | | - """Deprecated: Use set_torrent_options with 'stop_at_ratio'""" |
1020 | | - self.set_torrent_options([torrent_id], {'stop_at_ratio': value}) |
| 1004 | + raise NotImplementedError('Use set_torrent_options') |
1021 | 1005 |
|
1022 | | - @deprecated |
1023 | 1006 | @export |
1024 | 1007 | def set_torrent_stop_ratio(self, torrent_id, value): |
1025 | | - """Deprecated: Use set_torrent_options with 'stop_ratio'""" |
1026 | | - self.set_torrent_options([torrent_id], {'stop_ratio': value}) |
| 1008 | + raise NotImplementedError('Use set_torrent_options') |
1027 | 1009 |
|
1028 | | - @deprecated |
1029 | 1010 | @export |
1030 | 1011 | def set_torrent_remove_at_ratio(self, torrent_id, value): |
1031 | | - """Deprecated: Use set_torrent_options with 'remove_at_ratio'""" |
1032 | | - self.set_torrent_options([torrent_id], {'remove_at_ratio': value}) |
| 1012 | + raise NotImplementedError('Use set_torrent_options') |
1033 | 1013 |
|
1034 | | - @deprecated |
1035 | 1014 | @export |
1036 | 1015 | def set_torrent_move_completed(self, torrent_id, value): |
1037 | | - """Deprecated: Use set_torrent_options with 'move_completed'""" |
1038 | | - self.set_torrent_options([torrent_id], {'move_completed': value}) |
| 1016 | + raise NotImplementedError('Use set_torrent_options') |
1039 | 1017 |
|
1040 | | - @deprecated |
1041 | 1018 | @export |
1042 | 1019 | def set_torrent_move_completed_path(self, torrent_id, value): |
1043 | | - """Deprecated: Use set_torrent_options with 'move_completed_path'""" |
1044 | | - self.set_torrent_options([torrent_id], {'move_completed_path': value}) |
| 1020 | + raise NotImplementedError('Use set_torrent_options') |
1045 | 1021 |
|
1046 | 1022 | @export |
1047 | 1023 | def get_path_size(self, path): |
|
0 commit comments