#1012: Add gzip encoding support to httpdownloader
-----------------------------------------+----------------------------------
 Reporter:  johnnyg                      |       Owner:  johnnyg  
     Type:  feature-request              |      Status:  new      
 Priority:  minor                        |   Milestone:  1.2.0    
Component:  core                         |     Version:  1.2.0_dev
 Keywords:  gzip http encoding decoding  |  
-----------------------------------------+----------------------------------

Comment(by Nezmer):

 I see how It's a little bit complicated to implement this on the
 downloader .

 But , should a python equivalent to this bash code be implemented for now
 to at least solve the issue with gzipped torrent files ?


 {{{
 #!/bin/bash
 filemime="$(file -b --mime-type $1)"
 if [[ "$filemime" == "application/x-gzip" ]]; then
 echo "gzip datastream found , decompressing...."
 basename="$(basename $1 .torrent)"
 gzip -d -S .torrent $1
 mv $basename $1
 fi
 }}}

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1012#comment:3>
Deluge <http://deluge-torrent.org/>
Deluge project

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to