File tree 2 files changed +16
-8
lines changed
core/src/com/biglybt/plugin/magnet
2 files changed +16
-8
lines changed Original file line number Diff line number Diff line change 905
905
});
906
906
}
907
907
908
+ protected boolean
909
+ getRenameDisplayName ()
910
+ {
911
+ return ( COConfigurationManager .getBooleanParameter ( "Plugin.Magnet URI Handler.MagnetPlugin.rename.using.dn" ));
912
+ }
913
+
908
914
public String
909
915
addSource (
910
916
Download download ,
1771
1777
1772
1778
boolean update_torrent = false ;
1773
1779
1774
- boolean rename = COConfigurationManager .getBooleanParameter ( "Plugin.Magnet URI Handler.MagnetPlugin.rename.using.dn" );
1775
1780
1776
- if ( dn != null && rename ){
1781
+ if ( dn != null && getRenameDisplayName () ){
1777
1782
1778
1783
if ( TorrentUtils .getDisplayName ( torrent ) == null ){
1779
1784
Original file line number Diff line number Diff line change @@ -1129,13 +1129,16 @@ public void perform(TimerEvent event ){
1129
1129
}
1130
1130
1131
1131
try {
1132
- String dn = magnet_args .get ( "dn" );
1133
-
1134
- if ( dn != null ){
1135
-
1136
- PlatformTorrentUtils .setContentTitle ( torrent , dn );
1132
+ if ( plugin .getRenameDisplayName ()){
1133
+
1134
+ String dn = magnet_args .get ( "dn" );
1135
+
1136
+ if ( dn != null ){
1137
+
1138
+ PlatformTorrentUtils .setContentTitle ( torrent , dn );
1139
+ }
1137
1140
}
1138
-
1141
+
1139
1142
String pfi_str = magnet_args .get ( "pfi" );
1140
1143
1141
1144
if ( pfi_str != null ){
You can’t perform that action at this time.
0 commit comments