Ticket #5770: magnet-Environment-Variable.patch

File magnet-Environment-Variable.patch, 593 bytes (added by basecase, 7 years ago)

Patch to add magnetLINK to post download environment variables

  • libtransmission/torrent.c

     
    21102110        tr_strdup_printf ("TR_TORRENT_ID=%d", tr_torrentId (tor)),
    21112111        tr_strdup_printf ("TR_TORRENT_HASH=%s", tor->info.hashString),
    21122112        tr_strdup_printf ("TR_TORRENT_NAME=%s", tr_torrentName (tor)),
     2113                tr_strdup_printf ("TR_TORRENT_MAGNETLINK=%s", tr_tr_torrentGetMagnetLink(tor)),
    21132114        NULL };
    21142115
    21152116      tr_logAddTorInfo (tor, "Calling script \"%s\"", script);