Changes between Initial Version and Version 1 of Ticket #3549, comment 2


Ignore:
Timestamp:
09/07/2022 04:33:43 PM (20 months ago)
Author:
marcelpaulo
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #3549, comment 2

    initial v1  
    4141deluge-console add "magnet-link" 
    4242}}} 
     43 
     44bash-scripting it: 
     45 
     46{{{ 
     47if [[ $resource =~ ^magnet: ]]; then 
     48    deluge-console add "$resource" 
     49elif [[ $(file --brief "$resource") == 'BitTorrent file' ]]; then 
     50    deluge-console "add '$resource'" 
     51else 
     52    die "Can't add $resource" 
     53fi 
     54}}}