embyToLocalPlayer

Emby/Jellyfin 调用外部本地播放器,并回传播放记录。适配 Plex。

< Feedback on embyToLocalPlayer

Review: Good - script works

§
Posted: 05-12-2023

关于potplayer播放列表。看日本动漫的时候不好用。
小日子的动漫经常有OVA,OAD,特别篇什么的,有在一季第一集之前的,有在最后一集后的,中间某集后面的也有。
emby刮削的时候,得把一季正片放一个文件夹里,通常是S1,S2,S3等,OVA和特别篇什么的放S0文件夹,刮削好emby会调整好播放顺序,但是用本地文件的方式,potplayer播放列表里就会少OVA特别篇那几集

kjtsuneAuthor
§
Posted: 07-12-2023

修了,更新并看FAQ隐藏功能

§
Posted: 07-12-2023

刚试了一下还是不行,油猴脚本和python文件都更新到最新版了。
硬盘模式关闭的话,potplayer打开的是emby视频流,potplayer的播放列表里只有一个,硬盘模式打开的话,potplayer只会把视频所在目录的所有集数都加到播放列表,要是potplayer设置只打开当前视频,本地播放列表也只有一个视频,在别的文件夹的ova不在播放列表中。
问题主要是没法用代码自由的编辑potplayer的播放列表,我看另一个embylaunchpotplayer脚本,也就是window.open调potplayer打开单个视频

kjtsuneAuthor
§
Posted: 08-12-2023

把 ini 播放列表 部分发我看一下

kjtsuneAuthor
§
Posted: 08-12-2023

硬盘模式关闭的话,potplayer打开的是emby视频流,potplayer的播放列表里只有一个。说明脚本的播放列表功能未启用。
可以不用硬盘模式测试播放史莱姆S02E12,下一集是SOE8,确保已经刮削正确,然后发下日志。

§
Posted: 08-12-2023

硬盘模式关闭试了下,potplayer播放列表只有向后的6集,,文件夹或文件名有问号,日语,引号这些,播放列表只有一个
6集的:
D:\The.Good.Wife.S01.1080p.AMZN.WEBRip.DDP5.1.x264-TrollHD[rartv]\The.Good.Wife.S01E01.1080p.Amazon.WEB-DL.DD+.5.1.H.264-TrollHD.mkv
D:\潜伏.30集全.2008.内嵌简体中字£CMCT暮雨潇潇\潜伏.S01E12.2008.DVDRip.x264.AC3-CMCT.mkv
D:\刀剑神域.S01-S02.BDrip1080P.X264.AC3.LGGZS\刀剑神域 S02E04.BDrip1080P.X264.AC3.LGGZS.mkv

鋼の錬金術師只有一集,每集文件名都有小标题,
D:\鋼の錬金術師.FULLMETAL.ALCHEMIST.BD.1920x1080.HEVC-10bit.OPUS.2009\鋼の錬金術師.FULLMETAL.ALCHEMIST.S01E11.ラッシュバレーの奇跡.1920x1080.HEVC-10bit.OPUS.ASSx2.mkv
E:\emby\クラナド.Clannad.2007-2009.BluRay&DVD x264-Hi10P.FLAC\S1\Clannad.2007.S01E01.BluRay.1920x1080p.23.976fps.x264-Hi10P.FLACx2.mawen1250
[12/08/23 11:04:05] server=emby mount_disk_mode=False
[12/08/23 11:04:05] ['loca_mix_host_:8096 not match: gui[except_host] []']
[12/08/23 11:04:05] command line: ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68140/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=acf1162e9ad7e70996aca1044d1b070c&PlaySessionId=cf430b0ae09340dc87f13c1244e5d87e&api_key=_hide_api_key_&Static=true']
[12/08/23 11:04:05] ["loca_mix_host_:8096 match: playlist[enable_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096', '.']"]
[12/08/23 11:04:05] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68140/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=acf1162e9ad7e70996aca1044d1b070c&PlaySessionId=cf430b0ae09340dc87f13c1244e5d87e&api_key=_hide_api_key_&Static=true', '/seek=00:00:00', '/title=鋼の錬金術師.FULLMETAL.ALCHEMIST.S01E05.哀しみの雨.1920x1080.HEVC-10bit.OPUS.ASSx2.mkv']
[12/08/23 11:04:05] version_filter: fail, ini_re=['1080', 'HEVC', '1080', 'HEVC', 'mkv'], pass 68, ep_num=64, disable playlist
[12/08/23 11:04:25] update progress: 鋼の錬金術師.FULLMETAL.ALCHEMIST.S01E05.哀しみの雨.1920x1080.HEVC-10bit.OPUS.ASSx2.mkv _stop_sec=16


咒术回战也只有一集,倒是等视频放完,关掉potplayer窗口后会自动新开窗口播放下一集,感觉这功能没必要
D:\咒术回战.1080P.BDRip.HEVC-10bit.FLAC\咒术回战.S01E01.1080P.BDRip.HEVC-10bit.FLAC.mkv
[12/08/23 14:52:03] server=emby mount_disk_mode=False
[12/08/23 14:52:03] ['loca_mix_host_:8096 not match: gui[except_host] []']
[12/08/23 14:52:03] command line: ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68491/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=b5da78422b90a740f5ae27d8b4de7f40&PlaySessionId=81d8da96389444cfbbc4456f41c56037&api_key=_hide_api_key_&Static=true']
[12/08/23 14:52:03] ["loca_mix_host_:8096 match: playlist[enable_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096', '.']"]
[12/08/23 14:52:03] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68491/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=b5da78422b90a740f5ae27d8b4de7f40&PlaySessionId=81d8da96389444cfbbc4456f41c56037&api_key=_hide_api_key_&Static=true', '/sub=http://loca_mix_host_:8096/Videos/68491/b5da78422b90a740f5ae27d8b4de7f40/Subtitles/2/0/Stream.ass?api_key=_hide_api_key_', '/seek=00:00:00', '/title=咒术回战.S01E05.1080P.BDRip.HEVC-10bit.FLAC.mkv']
[12/08/23 14:52:05] auto next ep mode enabled
[12/08/23 14:52:31] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68492/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=dd51dc535e62196f8b8f42556083cd02&PlaySessionId=81d8da96389444cfbbc4456f41c56037&api_key=_hide_api_key_&Static=true', '/sub=http://loca_mix_host_:8096/Videos/68492/dd51dc535e62196f8b8f42556083cd02/Subtitles/2/Stream.ass', '/title=咒术回战.S01E06.1080P.BDRip.HEVC-10bit.FLAC.mkv']
[12/08/23 14:52:32] auto play: 咒术回战.S01E06.1080P.BDRip.HEVC-10bit.FLAC.mkv
[12/08/23 14:53:30] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68493/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=15e02bba8558a645d9b1776d3f05e9c6&PlaySessionId=81d8da96389444cfbbc4456f41c56037&api_key=_hide_api_key_&Static=true', '/sub=http://loca_mix_host_:8096/Videos/68493/15e02bba8558a645d9b1776d3f05e9c6/Subtitles/2/Stream.ass', '/title=咒术回战.S01E07.1080P.BDRip.HEVC-10bit.FLAC.mkv']
[12/08/23 14:53:31] auto play: 咒术回战.S01E07.1080P.BDRip.HEVC-10bit.FLAC.mkv
[12/08/23 14:53:56] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/68494/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=dfa42464d37ccb03f2b819cc4523e6b6&PlaySessionId=81d8da96389444cfbbc4456f41c56037&api_key=_hide_api_key_&Static=true', '/sub=http://loca_mix_host_:8096/Videos/68494/dfa42464d37ccb03f2b819cc4523e6b6/Subtitles/2/Stream.ass', '/title=咒术回战.S01E08.1080P.BDRip.HEVC-10bit.FLAC.mkv']
[12/08/23 14:53:57] auto play: 咒术回战.S01E08.1080P.BDRip.HEVC-10bit.FLAC.mkv
[12/08/23 14:54:07] skip play 咒术回战.S01E09.1080P.BDRip.HEVC-10bit.FLAC.mkv, because watch progress < 0.9
[12/08/23 14:54:07] update progress: 咒术回战.S01E05.1080P.BDRip.HEVC-10bit.FLAC.mkv _stop_sec=1436
[12/08/23 14:54:07] update progress: 咒术回战.S01E06.1080P.BDRip.HEVC-10bit.FLAC.mkv _stop_sec=1436
[12/08/23 14:54:07] update progress: 咒术回战.S01E07.1080P.BDRip.HEVC-10bit.FLAC.mkv _stop_sec=1435
[12/08/23 14:54:07] update progress: 咒术回战.S01E08.1080P.BDRip.HEVC-10bit.FLAC.mkv _stop_sec=821


我是大哥大文件名有单引号,播放列表有6集,但是标题只有From.Today.It,我从8集开始看的,到第10集就完了,后面的特别篇没加到potplayer播放列表里
D:\From.Today.It's.My.Turn.1080p.BluRay.FLAC.2.0.x264-kir\From.Today.It's.My.Turn.S01E03.1080p.BluRay.FLAC.2.0.x264-KiR.mkv
D:\From.Today.It's.My.Turn.1080p.BluRay.FLAC.2.0.x264-kir\S0\From.Today.It's.My.Turn.S00E01.SP.Chi_Jap.HDTVrip.1280X720V2.mp4
[12/08/23 15:03:53] ['loca_mix_host_:8096 not match: gui[except_host] []']
[12/08/23 15:03:53] command line: ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/57595/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=d6bd11ece8482cbde795f0508da2e4eb&PlaySessionId=39898d66aac74115aacd3765ad13453f&api_key=_hide_api_key_&Static=true']
[12/08/23 15:03:53] ["loca_mix_host_:8096 match: playlist[enable_host] ['localhost', '127.0.0.1', '192.168.', '192-168-', 'example.com:8096', '.']"]
[12/08/23 15:03:53] ['C:\\Program Files\\DAUM\\PotPlayer\\PotPlayerMini64.exe', 'http://loca_mix_host_:8096/emby/videos/57595/stream.mkv?DeviceId=1ffbe4e2-e7c4-42f9-b48b-936b2c768a3e&MediaSourceId=d6bd11ece8482cbde795f0508da2e4eb&PlaySessionId=39898d66aac74115aacd3765ad13453f&api_key=_hide_api_key_&Static=true', '/seek=00:00:00', "/title=From.Today.It's.My.Turn.S01E08.1080p.BluRay.FLAC.2.0.x264-KiR.mkv"]
[12/08/23 15:03:53] version_filter: success with ini_re=['1080', '264', '1080', '264', 'mkv']
[12/08/23 15:05:12] skip update progress: key='From.Today.It' _stop_sec=9 not in playlist_data

§
Posted: 08-12-2023

embyToLocalPlayer_config.ini我就改了player = pot,指定了播放器为potplayer,其他都没改

kjtsuneAuthor
§
Posted: 08-12-2023

1. potplayer播放列表只有向后的6集
2. [12/08/23 11:04:05] version_filter: fail, ini_re=['1080', 'HEVC', '1080', 'HEVC', 'mkv'], pass 68, ep_num=64, disable playlist
3. [12/08/23 14:52:05] auto next ep mode enabled
前三个问题都可以看注释改配置文件 > playlist 解决。

文件名有单引号,我会尝试修复。

kjtsuneAuthor
§
Posted: 08-12-2023

硬盘模式打开,potplayer设置只打开当前视频。version_filter 清空。
你本地有文件,用这个方案吧。

§
Posted: 08-12-2023

version_filter =
item_limit = 30
感谢指点,这样改了之后,硬盘模式打开不行,播放列表只有一个,我就硬盘模式关闭试了下,鋼の錬金術師和我是大哥大都可以加30集到播放列表,在别的文件夹的ova也可以加。
咒术回战和其他几个还是不行,播放列表只有一个,日志都像这样,能加播放列表的剧就没这几行日志:
[12/08/23 23:17:52] auto next ep mode enabled
[12/08/23 23:18:23] skip play Haven't You Heard? I'm Sakamoto.S01E07.BDrip.1920x1080.HEVC-YUV420P10.FLAC.mkv, because watch progress < 0.9
[12/08/23 23:18:23] update progress: Haven't You Heard? I'm Sakamoto.S01E06.BDrip.1920x1080.HEVC-YUV420P10.FLAC.mkv _stop_sec=30
这几个都只有一集在播放列表:
E:\emby\氷菓.Ma10p_1080p.x265_flac_aac\氷菓.S01E05.Ma10p_1080p.x265_flac_aac.mkv
E:\emby\オーバーロード.aka.OVERLORD.Ma10p_1080p.x265_flac_aac\S2\OVERLORD.S02E04.Ma10p_1080p.x265_flac_aac.mkv
D:\咒术回战.1080P.BDRip.HEVC-10bit.FLAC\咒术回战.S01E03.1080P.BDRip.HEVC-10bit.FLAC.mkv

kjtsuneAuthor
§
Posted: 08-12-2023

“修了,更新并看FAQ隐藏功能” FAQ隐藏功能 > 配置需要修改
“embyToLocalPlayer_config.ini我就改了player = pot,指定了播放器为potplayer,其他都没改”

"能加播放列表的剧就没这几行日志:
[12/08/23 23:17:52] auto next ep mode enabled"
"3. [12/08/23 14:52:05] auto next ep mode enabled
前三个问题都可以看注释改配置文件 > playlist 解决。"

§
Posted: 09-12-2023

凡是有外挂字幕的,potplayer播放列表就只有一集,内封的没问题

Post reply

Sign in to post a reply.