kodi-community-addons / plugin.audio.spotify

Unofficial spotify plugin for Kodi
GNU General Public License v3.0
293 stars 102 forks source link

Can't play next video in a video playlist after I log in to Spotify #138

Closed ray2301 closed 4 years ago

ray2301 commented 4 years ago

I'm using Leia 18.5 and Windows x64 (normal exe version) and the latest github version of Spotify. I've tried with 18 and the latest nightlies too. My problem was that any video playlist (with local and/or remote files) wouldn't play the next item in video playlist. What happens after the first video in a video playlist has finished is that the video player plays the next item and stops it immediately after it's shown.

I've been searching for a solution for days now. Today I finally made a backup of all my user files for kodi and deleted everything from my userdata folder. I started to place them back one by one. Finally I found the culprit and it's Spotify.

When I login to Spotify, the problem with the next video not playling in playlists starts. Audio files play normally when queued in a playlist. When I delete the "plugin.audio.spotify" folder from "addon data" (so I logout), video playlists work normally again.

This is from the log when I'm logged in to Spotify and try to play (from when I start the playback and queue the other item to when it starts playing the second item and stops immediately after it starts). It didn't tell me anything so I deleted all the files in userdata folder and started to put them back.

I can reproduce this on another Windows x64 machine.

2020-01-07 14:50:40.331 T:2776  NOTICE: VideoPlayer::OpenFile: D:\Genesis\Local TV Shows\Santa Barbara\santa barbara serial in english (101-500)\Santa Barbara - ep101.mp4
2020-01-07 14:50:40.332 T:12812  NOTICE: Creating InputStream
2020-01-07 14:50:40.346 T:12812  NOTICE: Creating Demuxer
2020-01-07 14:50:40.379 T:12812  NOTICE: Opening stream: 0 source: 256
2020-01-07 14:50:40.379 T:12812  NOTICE: Creating video codec with codec id: 27
2020-01-07 14:50:40.379 T:12812  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2020-01-07 14:50:40.379 T:12812  NOTICE: Creating video thread
2020-01-07 14:50:40.380 T:12812  NOTICE: Opening stream: 1 source: 256
2020-01-07 14:50:40.380 T:12812  NOTICE: Finding audio codec for: 86018
2020-01-07 14:50:40.380 T:7380  NOTICE: running thread: video_thread
2020-01-07 14:50:40.380 T:12812  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-01-07 14:50:40.380 T:12812  NOTICE: Creating audio thread
2020-01-07 14:50:40.380 T:10356  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-01-07 14:50:40.391 T:10356  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
2020-01-07 14:50:40.464 T:2776  NOTICE: DXVA::CProcessorHD::InitProcessor: supported deinterlace methods: blend:no, bob:yes, adaptive:yes, mocomp:yes.
2020-01-07 14:50:40.689 T:7380  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000
2020-01-07 14:50:45.107 T:2776   ERROR: Misplaced !
2020-01-07 14:50:45.107 T:2776   ERROR: Error parsing boolean expression string.endswith(listitem.label,!)
2020-01-07 14:50:48.913 T:2776  NOTICE: DXVA::CDecoder::Close: closing decoder.
2020-01-07 14:50:50.539 T:12812  NOTICE: Previous line repeats 3 times.
2020-01-07 14:50:50.539 T:12812  NOTICE: CVideoPlayer::OnExit()
2020-01-07 14:50:50.539 T:12812  NOTICE: VideoPlayer: eof, waiting for queues to empty
2020-01-07 14:50:50.539 T:12812  NOTICE: Closing stream player 1
2020-01-07 14:50:50.539 T:12812  NOTICE: Waiting for audio thread to exit
2020-01-07 14:50:50.550 T:10356  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-01-07 14:50:50.550 T:12812  NOTICE: Closing audio device
2020-01-07 14:50:50.550 T:12812  NOTICE: Deleting audio codec
2020-01-07 14:50:50.550 T:12812  NOTICE: Closing stream player 2
2020-01-07 14:50:50.550 T:12812  NOTICE: waiting for video thread to exit
2020-01-07 14:50:50.550 T:7380   ERROR: Got MSGQ_ABORT or MSGO_IS_ERROR return true
2020-01-07 14:50:50.550 T:7380  NOTICE: thread end: video_thread
2020-01-07 14:50:50.550 T:12812  NOTICE: deleting video codec
2020-01-07 14:50:50.594 T:2776  NOTICE: VideoPlayer::OpenFile: D:\Genesis\Local TV Shows\Santa Barbara\santa barbara serial in english (101-500)\Santa Barbara - ep102.mp4
2020-01-07 14:50:50.595 T:2596  NOTICE: Creating InputStream
2020-01-07 14:50:50.609 T:2596  NOTICE: Creating Demuxer
2020-01-07 14:50:50.641 T:2596  NOTICE: Opening stream: 0 source: 256
2020-01-07 14:50:50.641 T:2596  NOTICE: Creating video codec with codec id: 27
2020-01-07 14:50:50.641 T:2596  NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
2020-01-07 14:50:50.641 T:2596  NOTICE: Creating video thread
2020-01-07 14:50:50.641 T:2596  NOTICE: Opening stream: 1 source: 256
2020-01-07 14:50:50.641 T:2596  NOTICE: Finding audio codec for: 86018
2020-01-07 14:50:50.641 T:6320  NOTICE: running thread: video_thread
2020-01-07 14:50:50.642 T:2596  NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac
2020-01-07 14:50:50.642 T:2596  NOTICE: Creating audio thread
2020-01-07 14:50:50.642 T:5392  NOTICE: running thread: CVideoPlayerAudio::Process()
2020-01-07 14:50:50.653 T:5392  NOTICE: Creating audio stream (codec id: 86018, channels: 2, sample rate: 44100, no pass-through)
2020-01-07 14:50:50.703 T:2776  NOTICE: DXVA::CDecoder::Close: closing decoder.
2020-01-07 14:50:50.889 T:6320  NOTICE: CDVDVideoCodecFFmpeg::CDropControl: calculated diff time: 40000
2020-01-07 14:50:51.870 T:2776  NOTICE: CVideoPlayer::CloseFile()
2020-01-07 14:50:51.870 T:2776  NOTICE: VideoPlayer: waiting for threads to exit
2020-01-07 14:50:51.881 T:2596  NOTICE: CVideoPlayer::OnExit()
2020-01-07 14:50:51.881 T:2596  NOTICE: Closing stream player 1
2020-01-07 14:50:51.881 T:2596  NOTICE: Waiting for audio thread to exit
2020-01-07 14:50:51.901 T:5392  NOTICE: thread end: CVideoPlayerAudio::OnExit()
2020-01-07 14:50:51.901 T:2596  NOTICE: Closing audio device
2020-01-07 14:50:51.916 T:2596  NOTICE: Deleting audio codec
2020-01-07 14:50:51.916 T:2596  NOTICE: Closing stream player 2
2020-01-07 14:50:51.916 T:2596  NOTICE: waiting for video thread to exit
2020-01-07 14:50:51.922 T:6320  NOTICE: thread end: video_thread
2020-01-07 14:50:51.922 T:2596  NOTICE: deleting video codec
2020-01-07 14:50:51.930 T:2596  NOTICE: DXVA::CDecoder::Close: closing decoder.
2020-01-07 14:50:51.930 T:2596  NOTICE: DXVA: closing decoder context.
2020-01-07 14:50:51.931 T:2776  NOTICE: VideoPlayer: finished waiting
2020-01-07 14:50:51.931 T:2776  NOTICE: CVideoPlayer::CloseFile()
2020-01-07 14:50:51.931 T:2776  NOTICE: VideoPlayer: waiting for threads to exit
2020-01-07 14:50:51.931 T:2776  NOTICE: VideoPlayer: finished waiting
2020-01-07 14:50:52.078 T:3148   ERROR: EXCEPTION: XBMC is not playing any file

p.s. when logged in, spotify works just fine for me. i have some widgets setup and can play anything from kodi. i don't use remote play (that's unchecked). I only play from kodi on kodi.

ray2301 commented 4 years ago

works great now, thank you!