Changeset 506626d


Ignore:
Timestamp:
Aug 31, 2012 1:58:37 PM (8 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
7cc353a
Parents:
26898f38
Message:

i2psnark: Remove * from magnet and download names

Files:
5 edited

Legend:

Unmodified
Added
Removed
  • apps/i2psnark/java/src/org/klomp/snark/SnarkManager.java

    r26898f38 r506626d  
    14851485                // ignore value - TODO put tracker URL in value
    14861486                if (ih != null && ih.length == 20)
    1487                     addMagnet("* " + _("Magnet") + ' ' + I2PSnarkUtil.toHex(ih), ih, null, false);
     1487                    addMagnet(_("Magnet") + ' ' + I2PSnarkUtil.toHex(ih), ih, null, false);
    14881488                // else remove from config?
    14891489            }
  • apps/i2psnark/java/src/org/klomp/snark/web/FetchAndAdd.java

    r26898f38 r506626d  
    7373        _mgr = mgr;
    7474        _url = url;
    75         _name = "* " + _("Download torrent file from {0}", url);
     75        _name = _("Download torrent file from {0}", url);
    7676        byte[] fake = null;
    7777        try {
  • apps/i2psnark/java/src/org/klomp/snark/web/I2PSnarkServlet.java

    r26898f38 r506626d  
    913913        fileNames.addAll(files);
    914914        ArrayList<Snark> rv = new ArrayList(fileNames.size());
     915        int magnet = 0;
    915916        for (Iterator iter = fileNames.iterator(); iter.hasNext(); ) {
    916917            String name = (String)iter.next();
    917918            Snark snark = _manager.getTorrent(name);
    918             if (snark != null)
    919                 rv.add(snark);
     919            if (snark != null) {
     920                // put downloads and magnets first
     921                if (snark.getStorage() == null)
     922                    rv.add(magnet++, snark);
     923                else
     924                    rv.add(snark);
     925            }
    920926        }
    921927        return rv;
     
    17841790            ihash = xt.substring("urn:btih:".length());
    17851791            trackerURL = getTrackerParam(url);
    1786             name = "* " + _("Magnet") + ' ' + ihash;
     1792            name = _("Magnet") + ' ' + ihash;
    17871793            String dn = getParam("dn", url);
    17881794            if (dn != null)
     
    17941800            if (col >= 0)
    17951801                ihash = ihash.substring(0, col);
    1796             name = "* " + _("Magnet") + ' ' + ihash;
     1802            name = _("Magnet") + ' ' + ihash;
    17971803        } else {
    17981804            return;
  • history.txt

    r26898f38 r506626d  
     12012-08-31 zzz
     2 * i2psnark: Remove * from magnet and download names
     3 * Router: Lengthen shutdown spinner life
     4 * Startup: Don't complain about clients.config missing on Android
     5
    162012-08-29 zzz
    27 * ClientManager: Cleanups
  • router/java/src/net/i2p/router/RouterVersion.java

    r26898f38 r506626d  
    1919    public final static String ID = "Monotone";
    2020    public final static String VERSION = CoreVersion.VERSION;
    21     public final static long BUILD = 21;
     21    public final static long BUILD = 22;
    2222
    2323    /** for example "-test" */
Note: See TracChangeset for help on using the changeset viewer.