#3647: deluge console errors on addition of torrent with semicolon (`;`) in name
-----------------------------+----------------------------
  Reporter:  iconoclasthero  |      Owner:  (none)
      Type:  bug             |     Status:  new
  Priority:  minor           |  Milestone:  needs verified
 Component:  Unknown         |    Version:  2.0.5
Resolution:                  |   Keywords:
-----------------------------+----------------------------
Comment (by iconoclasthero):

 Huh, I just found this error again, though I came here for a different
 reason, I decided to circumvent the problem with this:


 {{{
 if command -v btcheck >/dev/null; then
   hash=$( btcheck -in "$torrentfile" |grep -oP 'Torrent Hash : \K.*' )
 elif command -v transmission-show >/dev/null; then
   printf 'The btcheck command not found; consider installing for faster
 torrent file reads\n.'
   printf 'Defaulting to transmission-show for hash lookup.\n'
   hash=$( transmission-show "$torrentfile" |grep -oP 'Hash v1: \K.*' )
 else
   printf 'Neither btcheck nor transmission-show are installed. The former
 is faster but one must be installed.\n'
   printf '(exit 1)'
   exit 1
 fi

 tmptorrent="/tmp/$hash.torrent"
 cp "$torrentfile" "$tmptorrent"
 ⋮

 rm "$tmptorrent"

 exit

 }}}
-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/3647#comment:4>
Deluge <https://deluge-torrent.org/>
Deluge Project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/deluge-dev/068.b35f8c0e5109d4e79d12d4b880fb86cf%40deluge-torrent.org.

Reply via email to