Search in sources :

Example 1 with CopyrightLicenseBroker

use of com.frostwire.bittorrent.CopyrightLicenseBroker in project frostwire by frostwire.

the class CreateTorrentDialog method addAvailableCopyrightLicense.

private void addAvailableCopyrightLicense(final Map<String, Entry> entryMap) {
    if (licenseSelectorPanel.hasConfirmedRightfulUseOfLicense()) {
        CopyrightLicenseBroker license = licenseSelectorPanel.getLicenseBroker();
        if (license != null) {
            final Map<String, Entry> info = entryMap.get("info").dictionary();
            info.put("license", Entry.fromMap(license.asMap()));
            entryMap.put("info", Entry.fromMap(info));
        }
    }
}
Also used : Entry(com.frostwire.jlibtorrent.Entry) CopyrightLicenseBroker(com.frostwire.bittorrent.CopyrightLicenseBroker)

Aggregations

CopyrightLicenseBroker (com.frostwire.bittorrent.CopyrightLicenseBroker)1 Entry (com.frostwire.jlibtorrent.Entry)1