honue / MoviePilot-Plugins

MoviePilot插件库
GNU General Public License v3.0
86 stars 23 forks source link

自适应IntroSkip v1.7.6 片头暂停时间和emby系统的时间节点对不上 造成片头时间节点 错误 #56

Open MidnightShake opened 2 months ago

MidnightShake commented 2 months ago

使用的 emby 版本 [4.9.0.30] 测试版

很喜欢这个插件的功能!

在我这里发现的情况,不只是这一个视频会出现,其他的电视剧也会出现,片头时间点都对应不上

这里给出其中一个能找出的相关日志: emby中对应时间节点相关日志:

开始播放相关

2024-09-25 13:21:10.987 Debug SqliteItemRepository: GetitemById Episode 130327 /media/links/动漫/我的三体 (2014)/Season 4/我的三体 - S04E02 - 第 2 集.mp4 2024-09-25 13:21:10.989 Info Server: http/1.1 Response 200 to host3. Time: 3ms. GET http://host2/emby/videos/130327/hls1/main/1.ts?PlaySessionId=beed9ab0ff304be08ced7bc958180f58 2024-09-25 13:21:11.096 Info Server: http/1.1 POST http://host2/emby/Sessions/Playing?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json. Source Ip: host3, UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0 2024-09-25 13:21:11.097 Debug SqliteItemRepository: GetitemById Episode 130327 /media/links/动漫/我的三体 (2014)/Season 4/我的三体 - S04E02 - 第 2 集.mp4 2024-09-25 13:21:11.097 Info SessionManager: Playback start reported by app Emby Web 4.9.0.30 on Microsoft Edge macOS playing 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!!. Started at 0 ms. PlaySessionId: beed9ab0ff304be08ced7bc958180f58 2024-09-25 13:21:11.105 Info Server: http/1.1 Response 204 to host3. Time: 9ms. POST http://host2/emby/Sessions/Playing?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json 2024-09-25 13:21:11.106 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上开始播放 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!!


暂停节点时间

2024-09-25 13:22:21.123 Info Server: http/1.1 POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json. Source Ip: host3, UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0 2024-09-25 13:22:21.124 Debug SessionManager: OnPlaybackProgress Pause beed9ab0ff304be08ced7bc958180f58 2024-09-25 13:22:21.124 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上暂停了 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!! 2024-09-25 13:22:21.124 Info Server: http/1.1 Response 204 to host3. Time: 1ms. POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json 2024-09-25 13:22:21.176 Info HttpClient: POST http://10.0.0.4:3001/api/v1/webhook?token=x_secret5_x 2024-09-25 13:22:21.189 Debug Server: http/1.1 GET http://10.0.0.4:8096/emby/Items/7071/RemoteImages?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:21.189 Debug Server: http/1.1 Response 200 to host4. Time: 1ms. GET http://10.0.0.4:8096/emby/Items/7071/RemoteImages?api_key=x_secret2_x 2024-09-25 13:22:21.245 Debug Server: http/1.1 GET http://host2/Items/7071/Images/Backdrop. Source Ip: host7, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:21.246 Debug Server: http/1.1 Response 200 to host7. Time: 1ms. GET http://host2/Items/7071/Images/Backdrop 2024-09-25 13:22:25.110 Info Server: http/1.1 POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json. Source Ip: host3, UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0 2024-09-25 13:22:25.111 Debug SessionManager: OnPlaybackProgress Unpause beed9ab0ff304be08ced7bc958180f58 2024-09-25 13:22:25.111 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上恢复了 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!! 2024-09-25 13:22:25.112 Info Server: http/1.1 Response 204 to host3. Time: 2ms. POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json 2024-09-25 13:22:25.163 Info HttpClient: POST http://10.0.0.4:3001/api/v1/webhook?token=x_secret5_x 2024-09-25 13:22:25.266 Debug Server: http/1.1 GET http://10.0.0.4:8096/emby/Items/7071/RemoteImages?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:25.267 Debug Server: http/1.1 Response 200 to host4. Time: 1ms. GET http://10.0.0.4:8096/emby/Items/7071/RemoteImages?api_key=x_secret2_x 2024-09-25 13:22:25.304 Debug Server: http/1.1 GET http://host2/Items/7071/Images/Backdrop. Source Ip: host7, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:25.304 Debug Server: http/1.1 Response 200 to host7. Time: 1ms. GET http://host2/Items/7071/Images/Backdrop 2024-09-25 13:22:25.315 Debug Server: http/1.1 GET http://10.0.0.4:8096/Shows/7071/Episodes. Source Ip: host4, UserAgent: python-requests/2.31.0 2024-09-25 13:22:25.317 Debug Server: http/1.1 Response 200 to host4. Time: 2ms. GET http://10.0.0.4:8096/Shows/7071/Episodes 2024-09-25 13:22:25.321 Debug Server: http/1.1 GET http://10.0.0.4:8096/emby/Items/130327/PlaybackInfo?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-requests/2.31.0 2024-09-25 13:22:25.321 Debug App: GetPostedPlaybackInfo request: {"Id":"130327","EnableDirectPlay":true,"EnableDirectStream":true,"EnableTranscoding":true,"AllowInterlacedVideoStreamCopy":false,"AllowVideoStreamCopy":true,"AllowAudioStreamCopy":true,"IsPlayback":true,"AutoOpenLiveStream":false} 2024-09-25 13:22:25.321 Debug SqliteItemRepository: GetitemById Episode 130327 /media/links/动漫/我的三体 (2014)/Season 4/我的三体 - S04E02 - 第 2 集.mp4 2024-09-25 13:22:25.322 Info SessionManager: Adding playSession 64d7de96b5ce4705bd9d5b1ae834f2dd to session db1d64636f624a27b88477aa5d787a08 2024-09-25 13:22:25.322 Debug Server: http/1.1 Response 200 to host4. Time: 2ms. GET http://10.0.0.4:8096/emby/Items/130327/PlaybackInfo?api_key=x_secret2_x 2024-09-25 13:22:25.434 Info Server: http/1.1 POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json. Source Ip: host3, UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36 Edg/129.0.0.0 2024-09-25 13:22:25.435 Debug SessionManager: OnPlaybackProgress TimeUpdate beed9ab0ff304be08ced7bc958180f58 2024-09-25 13:22:25.435 Info Server: http/1.1 Response 204 to host3. Time: 1ms. POST http://host2/emby/Sessions/Playing/Progress?X-Emby-Client=Emby Web&X-Emby-Device-Name=Microsoft Edge macOS&X-Emby-Device-Id=61a392d5-c165-48c2-83be-fbbb4a988940&X-Emby-Client-Version=4.9.0.30&X-Emby-Token=x_secret1_x&X-Emby-Language=zh-cn&reqformat=json 2024-09-25 13:22:26.339 Debug Server: http/1.1 GET http://10.0.0.4:8096/Users?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:26.339 Debug Server: http/1.1 Response 200 to host4. Time: 1ms. GET http://10.0.0.4:8096/Users?api_key=x_secret2_x 2024-09-25 13:22:26.342 Debug Server: http/1.1 GET http://10.0.0.4:8096/emby/Library/SelectableMediaFolders?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:26.342 Debug Server: http/1.1 Response 200 to host4. Time: 0ms. GET http://10.0.0.4:8096/emby/Library/SelectableMediaFolders?api_key=x_secret2_x 2024-09-25 13:22:26.344 Debug Server: http/1.1 GET http://10.0.0.4:8096/System/Info?api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7 2024-09-25 13:22:26.344 Debug Server: http/1.1 Response 200 to host4. Time: 0ms. GET http://10.0.0.4:8096/System/Info?api_key=x_secret2_x 2024-09-25 13:22:26.346 Debug Server: http/1.1 GET http://10.0.0.4:8096/emby/Users/882506e611304faeaf211579e72ef163/Items/34902?Fields=ChannelMappingInfo&api_key=x_secret2_x. Source Ip: host4, UserAgent: python-urllib3/2.0.7


自适应IntroSkip v1.7.6 插件日志相关:(方便找问题,调整了原插件代码在插件日志中输出了当时插件收到的信息内容)

【INFO】2024-09-25 13:22:27,748 - adaptiveintroskip -
【INFO】2024-09-25 13:22:27,748 - adaptiveintroskip - event='playback.stop' channel='emby' item_type='TV' item_name='我的三体 S4E2 前进!前进!!不择手段地前进!!!' item_id='7071' item_path='/media/links/动漫/我的三体 (2014)/Season 4/我的三体 - S04E02 - 第 2 集.mp4' season_id=4 episode_id=2 tmdb_id='5473661' overview='和胡文的聊天让云天明回想起大学初见程心时的场景,同时,胡文为他留下了三百万的谢礼。在PIA的工作会议上,程心提出了阶梯计划的想法,并在局长的支持下投入研发。' percentage=4.802244524674828 ip='100.64.0.5' device_name='Microsoft Edge macOS' client='Emby Web' user_name='..........' image_url='https://................./Items/7071/Images/Backdrop' item_favorite=None save_reason=None item_isvirtual=None media_type='Episode' 【INFO】2024-09-25 13:22:25,324 - adaptiveintroskip - 【不在时间段内】我的三体 S4E2 前进!前进!!不择手段地前进!!! 11分12秒,不标记片头片尾 【INFO】2024-09-25 13:22:25,314 - adaptiveintroskip -
【INFO】2024-09-25 13:22:25,313 - adaptiveintroskip - event='playback.unpause' channel='emby' item_type='TV' item_name='我的三体 S4E2 前进!前进!!不择手段地前进!!!' item_id='7071' item_path='/media/links/动漫/我的三体 (2014)/Season 4/我的三体 - S04E02 - 第 2 集.mp4' season_id=4 episode_id=2 tmdb_id='5473661' overview='和胡文的聊天让云天明回想起大学初见程心时的场景,同时,胡文为他留下了三百万的谢礼。在PIA的工作会议上,程心提出了阶梯计划的想法,并在局长的支持下投入研发。' percentage=44.64076978661906 ip='100.64.0.5' device_name='Microsoft Edge macOS' client='Emby Web' user_name='..............' image_url='https://.................../Items/7071/Images/Backdrop' item_favorite=None save_reason=None item_isvirtual=None media_type='Episode'


插件设置界面:

123321


播放的电视剧界面信息:

444555666

honue commented 1 month ago

你的意思是:插件把事件的时间计算错了? emby日志没有暂停和开始播放的视频时间节点。

MidnightShake commented 1 month ago

是的,整个播放历程:视频都是从头播放的,准确的从头开始播放后的时间点 与 emby的日志时间戳一样,

2024-09-25 13:21:11.106 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上开始播放 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!!

2024-09-25 13:22:21.124 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上暂停了 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!!

2024-09-25 13:22:25.111 Debug Notifications: Sending notification: user 在 Microsoft Edge macOS 上恢复了 我的三体 - S4, Ep2 - 前进!前进!!不择手段地前进!!!

暂时没能力从其他地方找到 这个相关时间节点,

另外,今天我又复现了一下整个过程,发现又恢复正常了,没有出现相同的错误结果,,所以猜测可能当时 问题出在 插件获取到的percentage值不正确,导致计算结果出错,但是为什么percentage值当时测试的一整天都会出错,现在又没出错,抱歉没能力深究到