* remove annoying logging
This commit is contained in:
parent
c40c53c53c
commit
be08a2a050
|
@ -13,8 +13,6 @@ import java.util.Collections;
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
|
||||||
|
|
||||||
|
|
||||||
public class Torrent {
|
public class Torrent {
|
||||||
|
@ -38,16 +36,13 @@ public class Torrent {
|
||||||
|
|
||||||
|
|
||||||
public Torrent(Map<?, ?> torrentMap) {
|
public Torrent(Map<?, ?> torrentMap) {
|
||||||
|
|
||||||
Charset charset = Charset.forName("UTF-8");
|
Charset charset = Charset.forName("UTF-8");
|
||||||
|
|
||||||
encoding = decodeString(torrentMap.get("encoding"), charset);
|
encoding = decodeString(torrentMap.get("encoding"), charset);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
charset = Charset.forName(encoding);
|
charset = Charset.forName(encoding);
|
||||||
} catch (IllegalArgumentException e) {
|
} catch (IllegalArgumentException e) {
|
||||||
// invalid encoding, just keep using UTF-8
|
// invalid encoding, just keep using UTF-8
|
||||||
Logger.getLogger(getClass().getName()).log(Level.WARNING, "Invalid encoding: " + encoding);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createdBy = decodeString(torrentMap.get("created by"), charset);
|
createdBy = decodeString(torrentMap.get("created by"), charset);
|
||||||
|
|
Loading…
Reference in New Issue