Commit bce6a69 1 parent c9b5295 commit bce6a69 Copy full SHA for bce6a69
File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,9 @@ export const DrpcRenderer: InitPlugin["renderer"] = ({
99
99
startTimestamp = Math . ceil ( ( new Date ( ) . getTime ( ) - time ) / 1000 )
100
100
} else {
101
101
startTimestamp = program . startAt / 1000
102
- endTimestamp = ( program . startAt + program . duration ) / 1000
102
+ if ( program . duration !== 1 ) {
103
+ endTimestamp = ( program . startAt + program . duration ) / 1000
104
+ }
103
105
}
104
106
const activity : Presence = {
105
107
largeImageKey,
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ export const DRPC_META = {
4
4
id : DRPC_ID ,
5
5
name : "Discord RPC" ,
6
6
author : "ci7lus" ,
7
- version : "0.1.2 " ,
7
+ version : "0.1.3 " ,
8
8
description : "表示中の番組を Discord に共有します" ,
9
9
authorUrl : "https://github.com/ci7lus" ,
10
10
url : "https://github.com/ci7lus/miraktest-plugins/tree/master/src/miraktest-drpc" ,
You can’t perform that action at this time.
0 commit comments