Closed Yavos closed 5 years ago
both nakamori.player
and nakamori
plugin need to be updated. You can check out if this fits your need @Yavos . There is one issue with this, if you have enable selection of files when you have more than 1 file for episode Playlist don't wait for you pick and continue with the first one.
Also I change something internal with playlist, so if you don't like the way it works now tell.
Default behavior is to play episode after episode until you manually hit STOP or see last episode.
Fell free to check it out by replacing both player and video plugin manually, and give use the feedback.
It's not working properly right now. Manually hitting STOP will result in it looping through all the other files in that series until it's finished even if I'm exiting Kodi.
Here's the log from starting nakamori to before I hit STOP
23:49:44.575 T:9724 NOTICE: -> nakamori.player::feed
23:49:44.705 T:3184 NOTICE: VideoPlayer: Opening: K:\tmp\Log Horizon\Staffel 2 [720p][L-S]\[L-S] Log Horizon 2.01 (1280x720 h264 AAC)[45D3080B].mp4
23:49:44.705 T:3184 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:49:44.705 T:3184 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
23:49:44.705 T:11072 NOTICE: Creating InputStream
23:49:44.738 T:11072 NOTICE: Creating Demuxer
23:49:45.178 T:11072 NOTICE: Opening stream: 0 source: 256
23:49:45.178 T:11072 NOTICE: Creating video codec with codec id: 28
23:49:45.178 T:11072 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
23:49:45.178 T:11072 NOTICE: Creating video thread
23:49:45.179 T:11072 NOTICE: Opening stream: 1 source: 256
23:49:45.179 T:11072 NOTICE: Finding audio codec for: 86018
23:49:45.179 T:17060 NOTICE: running thread: video_thread
23:49:45.179 T:11072 NOTICE: Creating audio thread
23:49:45.179 T:9760 NOTICE: running thread: CVideoPlayerAudio::Process()
23:49:45.180 T:17060 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x720)
23:49:45.189 T:9760 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
23:49:45.275 T:9724 NOTICE: -> nakamori.player::onPlaybackStarted
23:49:45.275 T:9724 NOTICE: -> nakamori.player::onPlayBackResumed
23:49:45.275 T:9724 NOTICE: -> nakamori.player::no trakt thread to stop
23:49:45.275 T:9724 NOTICE: -> nakamori.player::no sync thread to stop
23:49:45.362 T:3184 NOTICE: D3D: rendering method forced to DXVA processor
23:49:45.362 T:3184 NOTICE: DXVA::CProcessorHD::InitProcessor: Supported deinterlace methods: Blend:yes, Bob:yes, Adaptive:yes, MoComp:no.
23:49:45.363 T:3184 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
23:49:45.628 T:17060 NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41708
23:49:53.439 T:10088 WARNING: play this : 307
23:49:53.518 T:10088 NOTICE: -> nakamori.player::Init
23:49:53.518 T:10088 NOTICE: -> nakamori.player::feed
23:49:53.983 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:49:53.983 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:49:53.991 T:11072 NOTICE: CVideoPlayer::OnExit()
23:49:53.991 T:11072 NOTICE: Closing stream player 1
23:49:53.991 T:11072 NOTICE: Waiting for audio thread to exit
23:49:54.004 T:9760 NOTICE: thread end: CVideoPlayerAudio::OnExit()
23:49:54.004 T:11072 NOTICE: Closing audio device
23:49:54.018 T:11072 NOTICE: Deleting audio codec
23:49:54.018 T:11072 NOTICE: Closing stream player 2
23:49:54.018 T:11072 NOTICE: waiting for video thread to exit
23:49:54.020 T:17060 NOTICE: thread end: video_thread
23:49:54.020 T:11072 NOTICE: deleting video codec
23:49:54.022 T:11072 NOTICE: DXVA::CDecoder::Close - closing decoder
23:49:54.022 T:11072 NOTICE: DXVA::Close - closing decoder context
23:49:54.022 T:3184 NOTICE: VideoPlayer: finished waiting
23:49:54.024 T:3184 NOTICE: VideoPlayer: Opening: K:\tmp\Log Horizon\Staffel 2 [720p][L-S]\[L-S] Log Horizon 2.01 (1280x720 h264 AAC)[45D3080B].mp4
23:49:54.024 T:3184 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
23:49:54.025 T:12696 NOTICE: Creating InputStream
23:49:54.026 T:12696 NOTICE: Creating Demuxer
23:49:54.038 T:12696 NOTICE: Opening stream: 0 source: 256
23:49:54.038 T:12696 NOTICE: Creating video codec with codec id: 28
23:49:54.038 T:12696 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
23:49:54.038 T:12696 NOTICE: Creating video thread
23:49:54.038 T:12696 NOTICE: Opening stream: 1 source: 256
23:49:54.038 T:12696 NOTICE: Finding audio codec for: 86018
23:49:54.038 T:21680 NOTICE: running thread: video_thread
23:49:54.039 T:12696 NOTICE: Creating audio thread
23:49:54.039 T:7568 NOTICE: running thread: CVideoPlayerAudio::Process()
23:49:54.039 T:21680 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x720)
23:49:54.049 T:7568 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
23:49:54.050 T:1736 ERROR: EXCEPTION: XBMC is not playing any media file
23:49:54.050 T:10088 NOTICE: -> nakamori.player::onPlaybackStarted
23:49:54.050 T:10088 NOTICE: -> nakamori.player::onPlayBackResumed
23:49:54.050 T:3184 NOTICE: D3D: rendering method forced to DXVA processor
23:49:54.050 T:10088 NOTICE: -> nakamori.player::no trakt thread to stop
23:49:54.050 T:3184 NOTICE: DXVA::CProcessorHD::InitProcessor: Supported deinterlace methods: Blend:yes, Bob:yes, Adaptive:yes, MoComp:no.
23:49:54.050 T:9724 NOTICE: -> nakamori.player::onPlaybackStarted
23:49:54.050 T:3184 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
23:49:54.050 T:9724 NOTICE: -> nakamori.player::onPlayBackResumed
23:49:54.050 T:9724 NOTICE: -> nakamori.player::no trakt thread to stop
23:49:54.051 T:10088 NOTICE: -> nakamori.player::no sync thread to stop
23:49:54.386 T:21680 NOTICE: Previous line repeats 1 times.
23:49:54.386 T:21680 NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41708
23:52:41.566 T:22072 ERROR: CWebServer[8080]: failed to handle HTTP request for /image/
This is where I hit STOP:
23:53:11.504 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:53:11.504 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:53:11.510 T:12696 NOTICE: CVideoPlayer::OnExit()
23:53:11.510 T:12696 NOTICE: Closing stream player 1
23:53:11.510 T:12696 NOTICE: Waiting for audio thread to exit
23:53:11.521 T:8236 NOTICE: -> nakamori.player::trakt_thread: not playing anything
23:53:11.533 T:7568 NOTICE: Previous line repeats 1 times.
23:53:11.533 T:7568 NOTICE: thread end: CVideoPlayerAudio::OnExit()
23:53:11.533 T:12696 NOTICE: Closing audio device
23:53:11.543 T:1736 NOTICE: -> nakamori.player::sync_thread: not playing anything
23:53:11.545 T:2372 NOTICE: -> nakamori.player::trakt_thread: not playing anything
23:53:11.547 T:12696 NOTICE: Deleting audio codec
23:53:11.547 T:12696 NOTICE: Closing stream player 2
23:53:11.547 T:12696 NOTICE: waiting for video thread to exit
23:53:11.571 T:21680 NOTICE: thread end: video_thread
23:53:11.571 T:12696 NOTICE: deleting video codec
23:53:11.573 T:12696 NOTICE: DXVA::CDecoder::Close - closing decoder
23:53:11.573 T:12696 NOTICE: DXVA::Close - closing decoder context
23:53:11.573 T:3184 NOTICE: VideoPlayer: finished waiting
23:53:11.584 T:3184 ERROR: Control 55 in window 10025 has been asked to focus, but it can't
23:53:11.613 T:3792 NOTICE: -> nakamori.player::sync_thread: not playing anything
23:53:11.625 T:10088 NOTICE: -> nakamori.player::onPlayBackStopped
23:53:11.625 T:10088 NOTICE: -> nakamori.player::onPlayBackEnded
23:53:11.625 T:10088 NOTICE: -> nakamori.player::mark = 0.75 * total = 1472 = 1104.0 < current = 197.191009521
23:53:11.848 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:53:11.848 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:53:11.848 T:3184 NOTICE: VideoPlayer: finished waiting
23:53:11.848 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:53:11.848 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:53:11.848 T:3184 NOTICE: VideoPlayer: finished waiting
23:53:12.025 T:10088 WARNING: -------~ ~~ ~ ----> False
23:53:12.025 T:5572 NOTICE: -> nakamori.player::sync_thread: not playing anything
23:53:12.025 T:9724 NOTICE: -> nakamori.player::onPlayBackStopped
23:53:12.025 T:9724 NOTICE: -> nakamori.player::onPlayBackEnded
23:53:12.025 T:9724 NOTICE: -> nakamori.player::mark = 0.75 * total = 1472 = 1104.0 < current = 197.159011841
23:53:12.043 T:9724 WARNING: -------~ ~~ ~ ----> False
23:53:14.565 T:10088 WARNING: play this : 306
23:53:15.434 T:10088 NOTICE: -> nakamori.player::Init
23:53:15.434 T:10088 NOTICE: -> nakamori.player::feed
23:53:15.788 T:3184 NOTICE: VideoPlayer: Opening: K:\tmp\Log Horizon\Staffel 2 [720p][L-S]\[L-S] Log Horizon 2.02 (1280x720 h264 AAC)[FCD9F911].mp4
23:53:15.788 T:3184 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
23:53:15.788 T:3184 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
23:53:15.789 T:20352 NOTICE: Creating InputStream
23:53:15.810 T:20352 NOTICE: Creating Demuxer
23:53:15.840 T:20352 NOTICE: Opening stream: 1 source: 256
23:53:15.840 T:20352 NOTICE: Creating video codec with codec id: 28
23:53:15.840 T:20352 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
23:53:15.841 T:20352 NOTICE: Creating video thread
23:53:15.841 T:20352 NOTICE: Opening stream: 0 source: 256
23:53:15.841 T:20352 NOTICE: Finding audio codec for: 86018
23:53:15.841 T:19324 NOTICE: running thread: video_thread
23:53:15.841 T:20352 NOTICE: Creating audio thread
23:53:15.841 T:2764 NOTICE: running thread: CVideoPlayerAudio::Process()
23:53:15.842 T:19324 NOTICE: CDVDVideoCodecFFmpeg::GetFormat - Creating DXVA(1280x720)
23:53:15.851 T:2764 NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
23:53:15.851 T:3184 NOTICE: D3D: rendering method forced to DXVA processor
23:53:15.851 T:3184 NOTICE: DXVA::CProcessorHD::InitProcessor: Supported deinterlace methods: Blend:yes, Bob:yes, Adaptive:yes, MoComp:no.
23:53:15.851 T:3184 WARNING: CWinRenderer::UpdateVideoFilter - chosen scaling method 1 is not supported by renderer
23:53:15.945 T:10088 NOTICE: -> nakamori.player::onPlaybackStarted
23:53:15.945 T:10088 NOTICE: -> nakamori.player::onPlayBackResumed
23:53:15.945 T:10088 NOTICE: -> nakamori.player::no trakt thread to stop
23:53:16.175 T:19324 NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 41708
23:53:16.324 T:10088 NOTICE: -> nakamori.player::no sync thread to stop
23:53:19.877 T:3184 ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.nakamori/?mode=5&movie=0&url=http%3a%2f%2f127.0.0.1%3a8111%2fapi%2fserie%3fid%3d6%26level%3d2%26tagfilter%3d0
23:53:19.908 T:3184 ERROR: CGUIMediaWindow::GetDirectory(plugin://plugin.video.nakamori/?mode=5&movie=0&url=http%3a%2f%2f127.0.0.1%3a8111%2fapi%2fserie%3fid%3d6%26level%3d2%26tagfilter%3d0) failed
23:53:22.391 T:4012 ERROR: EXCEPTION: Non-Existent Control 0
This is where I exited Kodi:
23:53:32.788 T:19324 WARNING: CRenderManager::WaitForBuffer - timeout waiting for buffer
23:53:32.866 T:3184 NOTICE: Storing total System Uptime
23:53:32.866 T:3184 NOTICE: Saving settings
23:53:32.889 T:3184 NOTICE: Saving skin settings
23:53:32.894 T:3184 NOTICE: stop all
23:53:32.894 T:3184 NOTICE: stop player
23:53:32.895 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:53:32.895 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:53:32.897 T:4352 NOTICE: -> nakamori.player::sync_thread: not playing anything
23:53:32.900 T:20352 NOTICE: CVideoPlayer::OnExit()
23:53:32.900 T:20352 NOTICE: Closing stream player 1
23:53:32.900 T:20352 NOTICE: Waiting for audio thread to exit
23:53:32.924 T:2764 NOTICE: thread end: CVideoPlayerAudio::OnExit()
23:53:32.924 T:20352 NOTICE: Closing audio device
23:53:32.938 T:20352 NOTICE: Deleting audio codec
23:53:32.938 T:20352 NOTICE: Closing stream player 2
23:53:32.938 T:20352 NOTICE: waiting for video thread to exit
23:53:32.988 T:19324 NOTICE: thread end: video_thread
23:53:32.988 T:20352 NOTICE: deleting video codec
23:53:32.990 T:20352 NOTICE: DXVA::CDecoder::Close - closing decoder
23:53:32.990 T:20352 NOTICE: DXVA::Close - closing decoder context
23:53:32.990 T:3184 NOTICE: VideoPlayer: finished waiting
23:53:32.993 T:3184 NOTICE: CVideoPlayer::CloseFile()
23:53:32.993 T:3184 NOTICE: VideoPlayer: waiting for threads to exit
23:53:32.993 T:3184 NOTICE: VideoPlayer: finished waiting
23:53:32.994 T:3184 NOTICE: ES: Stopping event server
23:53:32.994 T:3184 NOTICE: stopping upnp
23:53:33.017 T:10088 NOTICE: -> nakamori.player::onPlayBackStopped
23:53:33.017 T:10088 NOTICE: -> nakamori.player::onPlayBackEnded
23:53:33.017 T:10088 NOTICE: -> nakamori.player::mark = 0.75 * total = 1472 = 1104.0 < current = 16.6740016937
23:53:33.017 T:10088 WARNING: -------~ ~~ ~ ----> False
23:53:33.144 T:3184 NOTICE: CWebServer[8080]: Stopped
23:53:33.462 T:6092 NOTICE: -> nakamori.player::trakt_thread: not playing anything
23:53:33.800 T:12108 NOTICE: ES: UDP Event server stopped
23:53:34.195 T:3184 NOTICE: clean cached files!
23:53:34.522 T:3184 NOTICE: closing down remote control service
23:53:34.675 T:3184 NOTICE: stopped
23:53:34.875 T:3184 NOTICE: destroy
23:53:34.875 T:3184 NOTICE: unload skin
23:53:34.884 T:3184 WARNING: CGUITextureManager::Cleanup: Having to cleanup texture lists/focus.png
23:53:35.351 T:10088 WARNING: play this : 305
23:53:35.473 T:10088 NOTICE: -> nakamori.player::Init
23:53:35.473 T:10088 NOTICE: -> nakamori.player::feed
23:53:39.906 T:3184 ERROR: CPythonInvoker(8, D:\Portable\Kodi\portable_data\addons\plugin.video.nakamori\nakamori.py): script didn't stop in 5 seconds - let's kill it
23:53:40.473 T:10088 WARNING: -------~ ~~ ~ ----> True
23:53:41.473 T:10088 WARNING: play this : 304
23:53:41.518 T:10088 NOTICE: -> nakamori.player::Init
23:53:41.518 T:10088 NOTICE: -> nakamori.player::feed
23:53:46.518 T:10088 WARNING: -------~ ~~ ~ ----> True
23:53:49.019 T:10088 WARNING: play this : 310
23:53:49.064 T:10088 NOTICE: -> nakamori.player::Init
23:53:49.064 T:10088 NOTICE: -> nakamori.player::feed
23:53:54.064 T:10088 WARNING: -------~ ~~ ~ ----> True
23:53:56.491 T:10088 WARNING: play this : 311
23:53:56.550 T:10088 NOTICE: -> nakamori.player::Init
23:53:56.550 T:10088 NOTICE: -> nakamori.player::feed
23:54:01.551 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:04.190 T:10088 WARNING: play this : 313
23:54:04.300 T:10088 NOTICE: -> nakamori.player::Init
23:54:04.300 T:10088 NOTICE: -> nakamori.player::feed
23:54:09.300 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:11.857 T:10088 WARNING: play this : 312
23:54:11.914 T:10088 NOTICE: -> nakamori.player::Init
23:54:11.914 T:10088 NOTICE: -> nakamori.player::feed
23:54:16.914 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:19.394 T:10088 WARNING: play this : 314
23:54:19.442 T:10088 NOTICE: -> nakamori.player::Init
23:54:19.442 T:10088 NOTICE: -> nakamori.player::feed
23:54:24.442 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:26.870 T:10088 WARNING: play this : 316
23:54:27.504 T:10088 NOTICE: -> nakamori.player::Init
23:54:27.504 T:10088 NOTICE: -> nakamori.player::feed
23:54:32.504 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:35.031 T:10088 WARNING: play this : 315
23:54:35.150 T:10088 NOTICE: -> nakamori.player::Init
23:54:35.150 T:10088 NOTICE: -> nakamori.player::feed
23:54:40.150 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:42.540 T:10088 WARNING: play this : 317
23:54:42.614 T:10088 NOTICE: -> nakamori.player::Init
23:54:42.614 T:10088 NOTICE: -> nakamori.player::feed
23:54:47.615 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:50.136 T:10088 WARNING: play this : 318
23:54:50.182 T:10088 NOTICE: -> nakamori.player::Init
23:54:50.182 T:10088 NOTICE: -> nakamori.player::feed
23:54:55.182 T:10088 WARNING: -------~ ~~ ~ ----> True
23:54:57.704 T:10088 WARNING: play this : 319
23:54:57.764 T:10088 NOTICE: -> nakamori.player::Init
23:54:57.764 T:10088 NOTICE: -> nakamori.player::feed
23:55:02.764 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:05.097 T:10088 WARNING: play this : 320
23:55:05.147 T:10088 NOTICE: -> nakamori.player::Init
23:55:05.147 T:10088 NOTICE: -> nakamori.player::feed
23:55:10.146 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:12.560 T:10088 WARNING: play this : 321
23:55:12.616 T:10088 NOTICE: -> nakamori.player::Init
23:55:12.616 T:10088 NOTICE: -> nakamori.player::feed
23:55:17.616 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:20.093 T:10088 WARNING: play this : 322
23:55:20.159 T:10088 NOTICE: -> nakamori.player::Init
23:55:20.159 T:10088 NOTICE: -> nakamori.player::feed
23:55:25.159 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:27.663 T:10088 WARNING: play this : 323
23:55:27.723 T:10088 NOTICE: -> nakamori.player::Init
23:55:27.723 T:10088 NOTICE: -> nakamori.player::feed
23:55:32.723 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:35.042 T:10088 WARNING: play this : 324
23:55:35.118 T:10088 NOTICE: -> nakamori.player::Init
23:55:35.118 T:10088 NOTICE: -> nakamori.player::feed
23:55:40.119 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:42.466 T:10088 WARNING: play this : 325
23:55:42.537 T:10088 NOTICE: -> nakamori.player::Init
23:55:42.537 T:10088 NOTICE: -> nakamori.player::feed
23:55:47.537 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:50.063 T:10088 WARNING: play this : 326
23:55:50.119 T:10088 NOTICE: -> nakamori.player::Init
23:55:50.119 T:10088 NOTICE: -> nakamori.player::feed
23:55:55.119 T:10088 WARNING: -------~ ~~ ~ ----> True
23:55:57.572 T:10088 WARNING: play this : 327
23:55:57.640 T:10088 NOTICE: -> nakamori.player::Init
23:55:57.640 T:10088 NOTICE: -> nakamori.player::feed
23:56:02.639 T:10088 WARNING: -------~ ~~ ~ ----> True
23:56:04.965 T:10088 WARNING: play this : 328
23:56:05.015 T:10088 NOTICE: -> nakamori.player::Init
23:56:05.015 T:10088 NOTICE: -> nakamori.player::feed
23:56:10.015 T:10088 WARNING: -------~ ~~ ~ ----> True
23:56:12.323 T:10088 WARNING: play this : 330
23:56:12.392 T:10088 NOTICE: -> nakamori.player::Init
23:56:12.392 T:10088 NOTICE: -> nakamori.player::feed
23:56:17.392 T:10088 WARNING: -------~ ~~ ~ ----> True
23:56:19.694 T:10088 WARNING: play this : 329
23:56:19.751 T:10088 NOTICE: -> nakamori.player::Init
23:56:19.751 T:10088 NOTICE: -> nakamori.player::feed
23:56:24.751 T:10088 WARNING: -------~ ~~ ~ ----> True
23:56:27.291 T:3184 NOTICE: unload sections
23:56:27.293 T:3184 NOTICE: special://profile/ is mapped to: special://masterprofile/
23:56:27.294 T:3184 NOTICE: PVRManager - stopping
23:56:29.054 T:3184 NOTICE: application stopped...
It marked all but one episode as watched, though.
I tested it before pushing, but thanks for feedback. The more people test it the more bugs we can catch ;-) Will try to make it work for you I assume you using Windows, PC. Will double check that for you
It's not happening right away, but I'll probably scrap Playlist Mode for better things. I'll try to make it support the standard, built in playlists. Playlist Mode will then be replaced with a Play From Here context menu item for episodes and a Play All Unwatched for series and groups
Nakamori.Service player watcher needs to happen before that
@da3dsoul if you looked at code you would know I used playlist
but faster was to hack the loop over working custom play function. Also I'm again seeing that it works fine. let me add zip here.
Working Playlist Mode
zips:
plugin.video.nakamori.zip
script.module.nakamoriplayer.zip
Can you try @Yavos, remamber to close Kodi before replacing, replace, and start Kodi - sometimes there are issue if you dont close it.
EDIT: the best way is delete addon and extract those from zip there. that way all the junk that is precompiled on execution is delete also :-)
I'm referring to the button in Kodi "Add to Playlist", not the function in the code
@da3dsoul It would be awesome to move custom player out and use Service that would monitor whats going on because custom player act weirdly all the time, most likely because it got terminated most of the time. You can make it even now, because most of the code we would use is already in nakamoriplayer.py
with the logic for handling player. Then we could use again XBMC.PLAYLIST
again.
Yep, that's my plan
I'm thinking to start service on nakamori/script start and stop it after exiting, or make it check some custom flag. I don't right now know how that would act with other services that hook to player too. And we don't want to break anything that users have already ;-)
Nah I have a plan. If we give it a URL to stream, then we can easily tell if it's nakamori. If we give it a file path, then Shoko has API that cazzar wrote for Plex that I'll make use of
@Yavos check those zips if you have time.
For now it seems to work.
Only exception is that the media info while playing sometimes shows the wrong info (e.g. ep 1 shows info and name of ep 4) which was quite confusing for me when I didn't know.
I'll do more testing when I have the time for it.
sure its 1ep ? shoko don't guarantee the order via api. But good it works because I didn't change anything when you first test it out so it was cache kodi error ? or not replaced all files. good that it works. This way you get proper data from API because you ask for it before playing file. I tested it twice on 2 different anime but maybe it need some ordering also. I will check if I get not sorted episodes.
The media info bug is probably unrelated. I think I encountered it already before posting this bug report.
And yes, I am sure that ep 1 played correctly while showing the episode info of ep 4.
Ok then is it possible that you have episode linked uncorrectly in shoko? Because that sound very likely
On February 10, 2019 8:41:55 PM GMT+01:00, Yavos notifications@github.com wrote:
The media info bug is probably unrelated. I think I encountered it already before posting this bug report.
And yes, I am sure that ep 1 played correctly while showing the episode info of ep 4.
-- You are receiving this because you were assigned. Reply to this email directly or view it on GitHub: https://github.com/bigretromike/nakamori/issues/291#issuecomment-462164854
-- Sent from my Android device with K-9 Mail. Please excuse my brevity.
ok, this commit: https://github.com/bigretromike/nakamori/commit/117833aa607b8976d90bd7368f3bbb86fe2dfaad closed the issue. I will try to push this commit into repo before rewrite is done, but if not stick to those files: https://github.com/bigretromike/nakamori/files/2844323/plugin.video.nakamori.zip https://github.com/bigretromike/nakamori/files/2844324/script.module.nakamoriplayer.zip
As the title says: I used Nakamori's 'Playlist Mode' and apparently it didn't synchronize the watched status.