From 0ad7781c8baeb33e60d8548af4013d692c9223e5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Fri, 19 Jun 2009 06:54:54 +0000 Subject: [PATCH] - Fixed a bug in download_url() function in helpers.py --- src/properties.ui | 485 ++++++++++++++++++----------------- src/search_engine/helpers.py | 4 +- 2 files changed, 245 insertions(+), 244 deletions(-) diff --git a/src/properties.ui b/src/properties.ui index ad4c93aa7..433b2f46e 100644 --- a/src/properties.ui +++ b/src/properties.ui @@ -1,7 +1,8 @@ - + + properties - - + + 0 0 @@ -9,35 +10,35 @@ 621 - + Torrent Properties - - + + 6 - + 9 - - + + 0 - - + + Main infos - + - - + + 16777215 20 - + Sans Serif 9 @@ -48,121 +49,121 @@ false - + - + Qt::AlignCenter - - + + Qt::Horizontal - - + + 75 true - + Torrent infos - + - + - - + + 6 - + 0 - - + + 0 29 - + 75 true - + Save path: - - + + 0 28 - + 75 true - + Creator: - - + + 0 29 - + 75 true - + Torrent hash: - - + + 0 128 - + 16777215 120 - + 75 true - + Comment: @@ -170,37 +171,37 @@ - + - + - - + + 0 29 - + - - + + 21 0 - + 21 16777215 - + ... @@ -208,46 +209,46 @@ - - + + 0 28 - + - - + + 0 29 - + - - + + 16777215 120 - + false - + true - + false @@ -256,10 +257,10 @@ - + Qt::Horizontal - + 40 20 @@ -273,39 +274,39 @@ - - + + 0 50 - + 75 true - + Downloaded pieces - - - + + + 0 0 - + 0 115 - + Sans Serif 9 @@ -316,35 +317,35 @@ false - + Current session - - + + 6 - + 9 - - + + 6 - + 0 - - + + 6 - + 0 - - + + Sans Serif 9 @@ -355,14 +356,14 @@ false - + Total uploaded: - - + + Sans Serif 9 @@ -373,14 +374,14 @@ false - + Total downloaded: - - + + Sans Serif 9 @@ -391,14 +392,14 @@ false - + Share ratio: - - + + Sans Serif 9 @@ -409,7 +410,7 @@ false - + Total failed: @@ -417,37 +418,37 @@ - - + + 6 - + 0 - - + + - - + + - - + + - - + + @@ -456,10 +457,10 @@ - + Qt::Horizontal - + 181 20 @@ -473,8 +474,8 @@ - - + + Sans Serif 9 @@ -485,29 +486,29 @@ false - + Download in correct order (slower but good for previewing) - - + + Trackers - + - - + + 6 - + 0 - - + + Sans Serif 9 @@ -518,46 +519,46 @@ false - + Trackers: - - + + 6 - + 0 - - - + + + 0 0 - + QAbstractItemView::ExtendedSelection - - + + 6 - + 0 - + Qt::Horizontal - + 40 20 @@ -566,49 +567,49 @@ - - + + 24 24 - + 24 24 - + - - + + 24 24 - + 24 24 - + - + Qt::Horizontal - + 40 20 @@ -621,19 +622,19 @@ - - + + 6 - + 0 - + Qt::Vertical - + 20 40 @@ -642,49 +643,49 @@ - - + + 24 24 - + 24 24 - + - - + + 24 24 - + 24 24 - + - + Qt::Vertical - + 20 40 @@ -697,22 +698,22 @@ - - + + 6 - + 0 - - + + 16777215 16 - + Sans Serif 9 @@ -723,30 +724,30 @@ false - + Current tracker: - - + + 16777215 16 - + - + Qt::Horizontal - + 40 20 @@ -758,13 +759,13 @@ - + Qt::Vertical - + QSizePolicy::Minimum - + 20 40 @@ -774,47 +775,47 @@ - - + + Url seeds - - + + 6 - + 9 - - + + 75 true - + The following url seeds are available for this torrent: - + - - + + 6 - + 0 - + Qt::Horizontal - + 40 20 @@ -823,37 +824,37 @@ - - + + 24 24 - + - - + + 24 24 - + - + Qt::Horizontal - + 40 20 @@ -865,10 +866,10 @@ - + Qt::Vertical - + 20 40 @@ -878,14 +879,14 @@ - - + + Torrent content - + - - + + Sans Serif 9 @@ -896,38 +897,38 @@ false - + Files contained in current torrent: - - + + 0 301 - + Qt::CustomContextMenu - + QAbstractItemView::AllEditTriggers - + QAbstractItemView::ExtendedSelection - + - + Qt::Horizontal - + 40 20 @@ -936,25 +937,25 @@ - - + + Collapse all - - + + Expand all - + Qt::Horizontal - + 40 20 @@ -965,8 +966,8 @@ - - + + Sans Serif 8 @@ -977,13 +978,13 @@ false - + - + Qt::AlignLeading|Qt::AlignLeft|Qt::AlignVCenter - + true @@ -993,19 +994,19 @@ - - + + 6 - + 0 - + Qt::Horizontal - + 40 20 @@ -1014,18 +1015,18 @@ - - + + OK - + Qt::Horizontal - + 40 20 @@ -1036,23 +1037,23 @@ - - + + Ignored - - + + Normal - - + + Maximum - - + + High @@ -1065,11 +1066,11 @@ properties accept() - + 306 556 - + 96 254 diff --git a/src/search_engine/helpers.py b/src/search_engine/helpers.py index 3b872aa3b..54900c28c 100644 --- a/src/search_engine/helpers.py +++ b/src/search_engine/helpers.py @@ -22,7 +22,7 @@ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE # POSSIBILITY OF SUCH DAMAGE. -#VERSION: 1.01 +#VERSION: 1.02 # Author: # Christophe DUMEZ (chris@qbittorrent.org) @@ -69,7 +69,7 @@ def download_file(url): file = os.fdopen(file, "wb") # Download url req = urllib2.Request(url) - response = urllib2.urlopen(url) + response = urllib2.urlopen(req) dat = response.read() # Write it to a file file.write(dat)