Bug 124010 - Metalink 3.0 support in KGet for multithreaded downloads (mirrors/P2P)
Summary: Metalink 3.0 support in KGet for multithreaded downloads (mirrors/P2P)
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-21 07:33 UTC by Ant Bryan
Modified: 2007-10-02 03:37 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Screenshot of Metalink in action (19.58 KB, image/jpeg)
2006-03-21 19:03 UTC, Ant Bryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ant Bryan 2006-03-21 07:33:49 UTC
Version:            (using KDE KDE 3.5.1)
Installed from:    Ubuntu Packages
OS:                Linux

Metalink ( http://www.metalinker.org/ ) is an XML file format that contains all the links (FTP, HTTP, P2P: BitTorrent, ed2k, magnet links) to a file. This is useful for multithreaded (segmented) downloads. It also contains more information like MD5 & SHA-1 checksums, so the file can be verified once it is finished.

Metalink is currently supported by GetRight ( http://www.getright.com ), a Windows Download Manager.

<metalink version="3.0" xmlns="http://www.metalinker.org/">
<files>
  <file name=”filename.ext”>
    <verification>
      <hash type="md5">example-md5-hash</hash>
    </verification>
    <resources>
      <url type=”ftp”>ftp://ftp.example.com/filename.ext</url>
      <url type=”http”>http://www.example2.com/filename.ext</url> 
      <url type=”bittorrent>http://www.ex.com/filname.ext.torrent</url>
      <url type=”magnet”/>
      <url type=”ed2k”/>
    </resources>
  </file>
</files>
<metalink>
Comment 1 Ant Bryan 2006-03-21 19:03:05 UTC
Created attachment 15241 [details]
Screenshot of Metalink in action

Multithreaded downloads offer greater speeds for those with fast connections.
This is a screenshot of a Metalink for a large download (3 gig) being acquired
at 1.31 MB/sec. Each thread is getting a segment of the file from another
server.
Comment 2 Halla Rempt 2006-04-06 19:29:32 UTC
SVN commit 527041 by rempt:

* Fix rotation with adjustment layers
* Update todo
* Fix bug 125010
BUG: 124010


 M  +17 -0     core/kis_transform_visitor.h  
 M  +1 -0      krita.desktop  
 M  +2 -0      todo-1.5  


--- branches/koffice/1.5/koffice/krita/core/kis_transform_visitor.h #527040:527041
@@ -102,6 +102,23 @@
 
     virtual bool visit(KisAdjustmentLayer* layer)
     {
+        KisPaintDeviceSP dev = layer->selection().data();
+        
+        KisTransaction * t = 0;
+
+        if (m_img->undo()) {
+            t = new KisTransaction(i18n("Rotate Layer"), dev);
+            Q_CHECK_PTR(t);
+        }
+
+        KisTransformWorker tw(dev, m_sx, m_sy, 0.0, 0.0, m_angle, m_tx, m_ty, m_progress, m_filter);
+        tw.run();
+
+        if (m_img->undo()) {
+            m_img->undoAdapter()->addCommand(t);
+        }
+        layer->setDirty();
+        
         layer->resetCache();
         return true;
     }
--- branches/koffice/1.5/koffice/krita/krita.desktop #527040:527041
@@ -30,6 +30,7 @@
 GenericName[uk]=Малювання і редагування зображень
 GenericName[uz]=Расмлар билан ишлайдиган дастур
 GenericName[zh_CN]=绘图和图像编辑
+Comment=Edit and paint images
 MimeType=application/x-krita
 Type=Application
 Icon=krita
--- branches/koffice/1.5/koffice/krita/todo-1.5 #527040:527041
@@ -53,6 +53,8 @@
 
 ? saving 16 bit grayscale to jpeg silently converts to 8 bit grayscale (actually it's not a regression, saving to both 8bits and 16bits jpeg with the same build is impossible with libjpeg)
 ? zooming in leaves display artefacts (see Bart's mail)
+? rotate is broken for large images
+? undoing rotate (from menu) when there is a selection active leads to weird results
 
 Painting with filters
 
Comment 3 Halla Rempt 2006-04-06 20:52:29 UTC
Oops, wrong bug number in cvs commit.
Comment 4 Urs Wolfer 2006-05-13 23:16:02 UTC
This sounds like a idea for KGet 2 for KDE 4. Will be on our TODO list ;)
Comment 5 Ant Bryan 2006-08-12 07:54:48 UTC
Maybe the other two open source (GPL) Metalink clients could be helpful for adding this feature to KGet 2. aria2 & wxDownload Fast are both written in C++.

aria2 (Unix) supports Metalink & BitTorrent from the command line -
http://aria2.sourceforge.net/

wxDownload Fast (Mac/Unix/Win) is an open source download manager that supports Metalink.

Speed Download (Mac) supports Metalink in a beta version -
http://www.yazsoft.com/

OpenOffice.org uses Metalinks for downloads at
http://distribution.openoffice.org/p2p/magnet.html

A few more clients & sites are preparing to use Metalink.

Metalink @ Packages Resources (http://metalink.packages.ro/) provides
automatically generated Metalinks for various projects along w/ source in Perl. It would be easy to automatically generate .metalinks for new releases of KDE that contain all the mirrors & checksums in a single file.
Comment 6 Urs Wolfer 2007-09-22 16:25:39 UTC
Metalink support is now in KGet trunk (part of KDE 4.0). There are not yet all features of metalinks supported, but we will work on it.
Comment 7 Ant Bryan 2007-10-01 23:30:33 UTC
Thanks very much guys. (I owe Manolo a feature bounty!)

Should I file bugs on other metalink features? I'd especially like to see chunk checksum support.
Comment 8 Manolo Valdes 2007-10-02 03:37:21 UTC
El Monday 01 October 2007 9:30:34 pm Ant Bryan escribi