Pixiv插件 查看排行榜 以图搜图 以图搜番 查看原图 查看作者作品 搜标签
-
大佬好,请问这里是必填吗?意思是要挂个梯子?
proxy: # http请求代理 下面是clash的例子
host: 127.0.0.1
port: 7890 -
@duoxini 国内网络访问不了P站的,所以要挂梯子。
-
@vicegoist 好的,谢谢大佬
-
@vicegoist @duoxini 不是P站,是色图可能需要,P站我直接中转到国内了
-
@ccyellowstar ?哪来的历史纪录
-
@nekoer 搜图时会把之前搜过的结果也发出来[转发],只遇到过一次,移除jar包再放回去就没遇到过。(然后这个时间戳2053年www)
哦,又试了一次,又出现了。
-
还有这种显示第一张的,第二张应该用什么指令查看?
-
谢谢大佬写的插件,就是想问一下能不能加个搜番和搜图 图片可以在指令之后的第二条消息里发的功能...
-
以及想问一下要使用ffmpeg的话要如何设置,我服务器上已经装了2.8.15的ffmpeg
-
2022-01-31 12:39:22 E/main: Failed to init MiraiConsole.
net.mamoe.mirai.console.plugin.loader.PluginLoadException: Exception while loading pixiv插画 v1.6.0
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:148)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt)
at net.mamoe.mirai.console.plugin.jvm.JvmPluginLoader$BuiltIn.load(JvmPluginLoader.kt:36)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadPluginNoEnable(PluginManagerImpl.kt:85)
at net.mamoe.mirai.console.internal.plugin.PluginManagerImpl.loadAllPluginsUsingBuiltInLoaders$mirai_console(PluginManagerImpl.kt:141)
at net.mamoe.mirai.console.internal.MiraiConsoleImplementationBridge.doStart$mirai_console(MiraiConsoleImplementationBridge.kt:163)
at net.mamoe.mirai.console.MiraiConsoleImplementation$Companion.start(MiraiConsoleImplementation.kt:277)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon(MiraiConsoleTerminalLoader.kt:156)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.startAsDaemon$default(MiraiConsoleTerminalLoader.kt:155)
at net.mamoe.mirai.console.terminal.MiraiConsoleTerminalLoader.main(MiraiConsoleTerminalLoader.kt:47)
Caused by: com.alibaba.fastjson.JSONException: syntax error, position at 67, name acgmx
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:645)
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:581)
at com.alibaba.fastjson.parser.DefaultJSONParser.parseObject(DefaultJSONParser.java:581)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1430)
at com.alibaba.fastjson.parser.DefaultJSONParser.parse(DefaultJSONParser.java:1390)
at com.alibaba.fastjson.JSON.parse(JSON.java:181)
at com.alibaba.fastjson.JSON.parse(JSON.java:191)
at com.alibaba.fastjson.JSON.parse(JSON.java:147)
at com.alibaba.fastjson.JSON.parseObject(JSON.java:252)
at com.hcyacg.initial.Configuration$Companion.init(Configuration.kt:60)
at com.hcyacg.Pixiv.onLoad(Pixiv.kt:119)
at net.mamoe.mirai.console.internal.plugin.JvmPluginInternal.internalOnLoad$mirai_console(JvmPluginInternal.kt:196)
at net.mamoe.mirai.console.internal.plugin.BuiltInJvmPluginLoaderImpl.load(BuiltInJvmPluginLoaderImpl.kt:146)
... 9 more
报错这个导致mirai无法启动,不知道是什么问题 -
作者您好,目前试用您的插件发现排行榜、查看图片、根据id查看图片能正常使用,但是以图搜图、以图搜番没反应,控制台也没有报错
⬇️psid功能正常⬇️
⬇️ptst和ptsf没反应⬇️
另外就是请问一下“当前共有:2张,现处在1张”怎么翻下一张
-
作者您好,刚刚又发现setu功能报错了
2022-01-31 13:22:50 V/Bot.198089894: [小Anka、小小不死鸟~(720664733)] ꧁不̶死̶鸟̶A̶n̶k̶a̶༼༽(207426530) -> setu
2022-01-31 13:23:13 W/stderr: java.net.ConnectException: Failed to connect to files.yande.re/67.15.129.210:443
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:297)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connect(RealConnection.kt:207)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.kt:226)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.kt:106)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.kt:74)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.initExchange$okhttp(RealCall.kt:255)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.kt:32)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.kt:95)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.kt:83)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.kt:76)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.utils.ImageUtil$Companion.getImage(ImageUtil.kt:45)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.sexy.SexyCenter.yande(SexyCenter.kt:68)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.sexy.SexyCenter.init(SexyCenter.kt:38)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invokeSuspend(Pixiv.kt:67)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invoke(Pixiv.kt)
2022-01-31 13:23:13 W/stderr: at com.hcyacg.Pixiv$onEnable$1$10.invoke(Pixiv.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invokeSuspend(MessageSubscribersBuilder.kt:510)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invoke(MessageSubscribersBuilder.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.MessageSubscribersBuilder$reply$3.invoke(MessageSubscribersBuilder.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:253)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1)
2022-01-31 13:23:13 W/stderr: at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:132)
2022-01-31 13:23:13 W/stderr: at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
2022-01-31 13:23:13 W/stderr: at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
2022-01-31 13:23:13 W/stderr: Caused by: java.net.ConnectException: Connection timed out: no further information
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.Net.pollConnect(Native Method)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:549)
2022-01-31 13:23:13 W/stderr: at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597)
2022-01-31 13:23:13 W/stderr: at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327)
2022-01-31 13:23:13 W/stderr: at java.base/java.net.Socket.connect(Socket.java:633)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.platform.Platform.connectSocket(Platform.kt:128)
2022-01-31 13:23:13 W/stderr: at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.kt:295)
2022-01-31 13:23:13 W/stderr: ... 49 more
2022-01-31 13:23:13 W/Pixiv: java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@6f51c723, considering use gif/png/bmp/jpg format. image header:
java.lang.IllegalArgumentException: Unsupported image type (mirai) for ExternalResource net.mamoe.mirai.internal.utils.ExternalResourceImplByByteArray@6f51c723, considering use gif/png/bmp/jpg format. image header:
at net.mamoe.mirai.internal.message.ImageDecoderKt.calculateImageInfo(ImageDecoder.kt:160)
at net.mamoe.mirai.internal.contact.GroupImpl$uploadImage$lambda-19$$inlined$runBIO$1.invoke(CoroutineUtils.kt:194)
at kotlinx.coroutines.InterruptibleKt.runInterruptibleInExpectedContext(Interruptible.kt:46)
at kotlinx.coroutines.InterruptibleKt.access$runInterruptibleInExpectedContext(Interruptible.kt:1)
at kotlinx.coroutines.InterruptibleKt$runInterruptible$2.invokeSuspend(Interruptible.kt:38)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.internal.LimitedDispatcher.run(LimitedDispatcher.kt:39)
at kotlinx.coroutines.scheduling.TaskImpl.run(Tasks.kt:95)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)2022-01-31 13:23:13 V/Bot.198089894: Group(720664733) <- 发送图片失败
我的配置文件填写如下⬇️
-
@vicegoist 你说的搜图会把之前的也发出来我是第一次听说,查看第二张图用psid-id-页码
-
@萌城qwq 请使用1.6.1
-
@a-n-k-a 如果你服务器没有开启代理的话去掉proxy下的配置
-
@cabbcat ffmpeg版本意思是你将源代码下载下来修改
build.gradle.kts
里面的compileOnly("com.madgag:animated-gif-lib:1.4") compileOnly("org.bytedeco:javacv-platform:1.5.5")
compileOnly
修改成implementation
后进行编译
当然这样的话插件本体会直奔700MB+ -
为什么我输入完tag会这样2022-02-02 03:03:42 E/pixiv插画: Exception in coroutine Plugin com.hcyacg.pixiv of pixiv插画
java.lang.IndexOutOfBoundsException: Index 10 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
at java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70)
at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248)
at java.base/java.util.Objects.checkIndex(Objects.java:372)
at java.base/java.util.ArrayList.get(ArrayList.java:459)
at com.alibaba.fastjson.JSONArray.get(JSONArray.java:240)
at com.hcyacg.rank.Tag.init(Tag.kt:60)
at com.hcyacg.Pixiv$onEnable$1$12.invokeSuspend(Pixiv.kt:71)
at com.hcyacg.Pixiv$onEnable$1$12.invoke(Pixiv.kt)
at com.hcyacg.Pixiv$onEnable$1$12.invoke(Pixiv.kt)
at net.mamoe.mirai.event.MessageSubscribersBuilder$quoteReply$3.invokeSuspend(MessageSubscribersBuilder.kt:510)
at net.mamoe.mirai.event.MessageSubscribersBuilder$quoteReply$3.invoke(MessageSubscribersBuilder.kt)
at net.mamoe.mirai.event.MessageSubscribersBuilder$quoteReply$3.invoke(MessageSubscribersBuilder.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invokeSuspend(messageSubscribersInternal.kt:27)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.internal.event.MessageSubscribersInternalKt$content$1.invoke(messageSubscribersInternal.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invokeSuspend(subscribeMessages.kt:253)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.SubscribeMessagesKt__SubscribeMessagesKt$subscribeGroupMessages$$inlined$createBuilder$SubscribeMessagesKt__SubscribeMessagesKt$1$1.invoke(subscribeMessages.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invokeSuspend(EventChannel.kt:455)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.event.EventChannel$subscribeAlways$1.invoke(EventChannel.kt)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invokeSuspend(InternalEventListeners.kt:50)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at net.mamoe.mirai.internal.event.Handler$onEvent$2.invoke(InternalEventListeners.kt)
at kotlinx.coroutines.intrinsics.UndispatchedKt.startUndispatchedOrReturn(Undispatched.kt:89)
at kotlinx.coroutines.BuildersKt__Builders_commonKt.withContext(Builders.common.kt:165)
at kotlinx.coroutines.BuildersKt.withContext(Unknown Source)
at net.mamoe.mirai.internal.event.Handler.onEvent(InternalEventListeners.kt:50)
at net.mamoe.mirai.internal.event.InternalEventListenersKt.process(InternalEventListeners.kt:166)
at net.mamoe.mirai.internal.event.InternalEventListenersKt.access$process(InternalEventListeners.kt:1)
at net.mamoe.mirai.internal.event.InternalEventListenersKt$callAndRemoveIfRequired$2$1.invokeSuspend(InternalEventListeners.kt:132)
at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
at kotlinx.coroutines.scheduling.CoroutineScheduler.runSafely(CoroutineScheduler.kt:571)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.executeTask(CoroutineScheduler.kt:750)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.runWorker(CoroutineScheduler.kt:678)
at kotlinx.coroutines.scheduling.CoroutineScheduler$Worker.run(CoroutineScheduler.kt:665)
是有什么没安装吗怎么解决 -
@usersablok 数组下标越界异常,1:这个tag没有内容,2:超出页码。不影响使用,可能是没有做异常处理。
-
以图搜图以转发形式发送,但是会连带之前搜过的记录,比如第一次搜图是3条结果,第二次搜会混入第一次的那三条,导致转发的聊天记录有6条,以此类推
-
@guuguai 已复现,下个版本会修复