diff --git a/build.gradle b/build.gradle index 7854fc6..ab5c32e 100644 --- a/build.gradle +++ b/build.gradle @@ -23,7 +23,6 @@ dependencies { implementation 'com.fasterxml.jackson.core:jackson-annotations:2.14.1' implementation 'com.fasterxml.jackson.core:jackson-databind:2.14.1' implementation 'com.rometools:rome:1.18.0' - implementation 'com.github.ipfs:java-ipfs-http-client:v1.3.3' implementation 'org.jsoup:jsoup:1.15.3' implementation 'io.activej:activej-common:5.4.3' implementation 'io.activej:activej-http:5.4.3' diff --git a/src/main/java/me/kavin/piped/ipfs/IPFS.java b/src/main/java/me/kavin/piped/ipfs/IPFS.java deleted file mode 100644 index bbb3390..0000000 --- a/src/main/java/me/kavin/piped/ipfs/IPFS.java +++ /dev/null @@ -1,20 +0,0 @@ -package me.kavin.piped.ipfs; - -import me.kavin.piped.utils.Multithreading; -import me.kavin.piped.utils.obj.Channel; - -public class IPFS { - -// private static final io.ipfs.api.IPFS ipfs = new io.ipfs.api.IPFS(new MultiAddress("/ip4/127.0.0.1/tcp/5001")); - - public static void publishData(final Channel channel) { - Multithreading.runAsync(() -> { - try { -// ipfs.pubsub.pub(URLUtils.silentEncode(channel.id), -// URLUtils.silentEncode(Constants.mapper.writeValueAsString(channel))); - } catch (Exception e) { - e.printStackTrace(); - } - }); - } -} diff --git a/src/main/java/me/kavin/piped/server/handlers/ChannelHandlers.java b/src/main/java/me/kavin/piped/server/handlers/ChannelHandlers.java index 1922a97..541f14d 100644 --- a/src/main/java/me/kavin/piped/server/handlers/ChannelHandlers.java +++ b/src/main/java/me/kavin/piped/server/handlers/ChannelHandlers.java @@ -3,7 +3,6 @@ package me.kavin.piped.server.handlers; import com.fasterxml.jackson.core.JsonProcessingException; import io.sentry.Sentry; import me.kavin.piped.consts.Constants; -import me.kavin.piped.ipfs.IPFS; import me.kavin.piped.utils.*; import me.kavin.piped.utils.obj.*; import me.kavin.piped.utils.obj.db.Video; @@ -138,8 +137,6 @@ public class ChannelHandlers { rewriteURL(info.getBannerUrl()), info.getDescription(), info.getSubscriberCount(), info.isVerified(), nextpage, relatedStreams, tabs); - IPFS.publishData(channel); - return mapper.writeValueAsBytes(channel); }