|
2 | 2 |
|
3 | 3 | import com.fasterxml.jackson.core.JsonProcessingException; |
4 | 4 | import com.fasterxml.jackson.databind.JsonNode; |
5 | | -import com.rometools.rome.feed.synd.SyndFeed; |
6 | | -import com.rometools.rome.io.SyndFeedInput; |
7 | 5 | import io.activej.config.Config; |
8 | 6 | import io.activej.http.*; |
9 | 7 | import io.activej.inject.annotation.Provides; |
10 | 8 | import io.activej.inject.module.AbstractModule; |
11 | 9 | import io.activej.inject.module.Module; |
12 | 10 | import io.activej.launchers.http.MultithreadedHttpServerLauncher; |
13 | | -import io.sentry.Sentry; |
14 | 11 | import it.unimi.dsi.fastutil.objects.ObjectArrayList; |
15 | 12 | import me.kavin.piped.consts.Constants; |
16 | 13 | import me.kavin.piped.server.handlers.*; |
|
19 | 16 | import me.kavin.piped.server.handlers.auth.StorageHandlers; |
20 | 17 | import me.kavin.piped.server.handlers.auth.UserHandlers; |
21 | 18 | import me.kavin.piped.utils.*; |
22 | | -import me.kavin.piped.utils.obj.MatrixHelper; |
23 | | -import me.kavin.piped.utils.obj.federation.FederatedVideoInfo; |
24 | 19 | import me.kavin.piped.utils.resp.*; |
25 | 20 | import org.apache.commons.lang3.StringUtils; |
26 | 21 | import org.apache.commons.lang3.exception.ExceptionUtils; |
27 | 22 | import org.hibernate.Session; |
28 | | -import org.hibernate.StatelessSession; |
29 | 23 | import org.jetbrains.annotations.NotNull; |
30 | | -import org.schabi.newpipe.extractor.exceptions.ParsingException; |
31 | | -import org.schabi.newpipe.extractor.localization.DateWrapper; |
32 | | -import org.xml.sax.InputSource; |
33 | 24 |
|
34 | | -import java.io.ByteArrayInputStream; |
35 | 25 | import java.net.InetSocketAddress; |
36 | | -import java.util.List; |
37 | 26 | import java.util.Objects; |
38 | 27 | import java.util.concurrent.Executor; |
39 | | -import java.util.concurrent.TimeUnit; |
40 | 28 |
|
41 | 29 | import static io.activej.config.converter.ConfigConverters.ofInetSocketAddress; |
42 | 30 | import static io.activej.http.HttpHeaders.*; |
43 | 31 | import static io.activej.http.HttpMethod.*; |
44 | 32 | import static java.nio.charset.StandardCharsets.UTF_8; |
45 | | -import static me.kavin.piped.consts.Constants.YOUTUBE_SERVICE; |
46 | 33 | import static me.kavin.piped.consts.Constants.mapper; |
47 | 34 |
|
48 | 35 | public class ServerLauncher extends MultithreadedHttpServerLauncher { |
|
0 commit comments