Fix log statement, which prevent getMasterPlaylist form working
This commit is contained in:
parent
1ab771305e
commit
8596b1e6e1
|
@ -2,7 +2,9 @@ package ctbrec.sites.chaturbate;
|
|||
|
||||
import static ctbrec.Model.State.*;
|
||||
import static ctbrec.io.HttpConstants.*;
|
||||
import static java.nio.charset.StandardCharsets.*;
|
||||
|
||||
import java.io.ByteArrayInputStream;
|
||||
import java.io.EOFException;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
|
@ -344,8 +346,9 @@ public class ChaturbateModel extends AbstractModel { // NOSONAR
|
|||
.build();
|
||||
try (Response response = getSite().getHttpClient().execute(req)) {
|
||||
if (response.isSuccessful()) {
|
||||
LOG.trace(response.body().string());
|
||||
InputStream inputStream = response.body().byteStream();
|
||||
String body = response.body().string();
|
||||
LOG.trace(body);
|
||||
InputStream inputStream = new ByteArrayInputStream(body.getBytes(UTF_8));
|
||||
PlaylistParser parser = new PlaylistParser(inputStream, Format.EXT_M3U, Encoding.UTF_8, ParsingMode.LENIENT);
|
||||
Playlist playlist = parser.parse();
|
||||
MasterPlaylist master = playlist.getMasterPlaylist();
|
||||
|
|
Loading…
Reference in New Issue