mirror of
https://github.com/zoriya/flood.git
synced 2026-06-05 03:39:24 +00:00
TorrentGeneralInfo: drop leading and trailing whitespaces from comment (#674)
This commit is contained in:
@@ -22,7 +22,7 @@ const torrentListMethodCallConfigs = {
|
||||
methodCall: 'd.custom2=',
|
||||
transformValue: (value: unknown): string => {
|
||||
// ruTorrent sets VRS24mrkr as a comment prefix, so we use it as well for compatability
|
||||
if (value === '' || typeof value !== 'string' || value.indexOf('VRS24mrker') !== 0) {
|
||||
if (value === '' || typeof value !== 'string' || !value.startsWith('VRS24mrker')) {
|
||||
return '';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user