mirror of
https://github.com/zoriya/flood.git
synced 2025-12-05 23:06:20 +00:00
27 lines
652 B
TypeScript
27 lines
652 B
TypeScript
import {numberTransformer, stringTransformer} from '../../util/rTorrentMethodCallUtil';
|
|
|
|
const torrentContentMethodCallConfigs = {
|
|
path: {
|
|
methodCall: 'f.path=',
|
|
transformValue: stringTransformer,
|
|
},
|
|
priority: {
|
|
methodCall: 'f.priority=',
|
|
transformValue: numberTransformer,
|
|
},
|
|
sizeBytes: {
|
|
methodCall: 'f.size_bytes=',
|
|
transformValue: numberTransformer,
|
|
},
|
|
sizeChunks: {
|
|
methodCall: 'f.size_chunks=',
|
|
transformValue: numberTransformer,
|
|
},
|
|
completedChunks: {
|
|
methodCall: 'f.completed_chunks=',
|
|
transformValue: numberTransformer,
|
|
},
|
|
} as const;
|
|
|
|
export default torrentContentMethodCallConfigs;
|