(2017-06-12, 15:36)Roman_V_M Wrote: @CaffeinatedMike
Read my previous post carefully once again. And then read carefully your code.
Wow, I feel like an idiot for misreading that, especially with how many times I've referenced that post. However, changing it to leads to videos not playing. Changed to the following
Code:
for i, (title, image, link) in enumerate(links):
list_item = xbmcgui.ListItem(label=title)
is_folder = False
list_item.setProperty('IsPlayable','true')
list_item.setArt({'poster': image, 'banner': image})
url = get_url(resolve=link)
#playlist.add(url, list_item)
xbmcplugin.addDirectoryItem(_handle, url, list_item, is_folder)
I was able to get the first video to play when selecting Play From Here, but after it was finished and tried going to the next video it failed. And when trying to simply click on a single video to play it fails to play. See log
Code:
09:44:44.278 T:9632 DEBUG: XFILE::CPluginDirectory::StartScript - calling plugin Squeee!('plugin://plugin.video.Squeee/','9','?resolve=http%3A%2F%2Fwww.dailyhaha.com%2F_vids%2Fbulldog-and-iguana-are-best-of-friends.htm')
09:44:44.282 T:8716 DEBUG: Thread LanguageInvoker start, auto delete: false
09:44:44.283 T:8716 INFO: initializing python engine.
09:44:44.283 T:8716 DEBUG: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): start processing
09:44:44.301 T:4588 DEBUG: Thread scriptobs start, auto delete: false
09:44:44.501 T:9632 DEBUG: ------ Window Init (DialogBusy.xml) ------
09:44:44.534 T:8716 DEBUG: -->Python Interpreter Initialized<--
09:44:44.534 T:8716 DEBUG: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): the source file to load is "E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py"
09:44:44.535 T:8716 DEBUG: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): setting the Python path to E:\Kodi\portable_data\addons\plugin.video.Squeee;E:\Kodi\portable_data\addons\script.module.addon.signals\lib;E:\Kodi\portable_data\addons\script.module.beautifulsoup\lib;E:\Kodi\portable_data\addons\script.module.futures\lib;E:\Kodi\portable_data\addons\script.module.requests\lib;E:\Kodi\portable_data\addons\script.module.youtube.dl\lib;E:\Kodi\system\python\DLLs;E:\Kodi\system\python\Lib;E:\Kodi\python27.zip;E:\Kodi\system\python\lib\plat-win;E:\Kodi\system\python\lib\lib-tk;E:\Kodi;E:\Kodi\system\python;E:\Kodi\system\python\lib\site-packages
09:44:44.535 T:8716 DEBUG: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): entering source directory E:\Kodi\portable_data\addons\plugin.video.Squeee
09:44:44.536 T:8716 DEBUG: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): instantiating addon using automatically obtained id of "plugin.video.Squeee" dependent on version 2.1.0 of the xbmc.python api
09:44:49.607 T:9632 DEBUG: ------ Window Deinit (Pointer.xml) ------
09:44:52.209 T:8716 NOTICE: script.module.youtube.dl: youtube_dl core version: 2017.05.18.1
09:44:53.915 T:8716 DEBUG: link is :http://www.dailyhaha.com/_vids/bulldog-and-iguana-are-best-of-friends.htm
09:44:53.920 T:9632 DEBUG: Activating window ID: 10138
09:44:56.322 T:9632 DEBUG: CWinEventsWin32::WndProcWindow is active
09:44:56.322 T:9632 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Users\mhill\Desktop\ffmpeg\bin\ffmpeg.exe
09:44:56.388 T:9632 DEBUG: CWinEventsWin32::WndProcWindow is active
09:44:57.137 T:9632 DEBUG: Previous line repeats 1 times.
09:44:57.137 T:9632 DEBUG: CWinEventsWin32::WndProc: Focus switched to process C:\Users\mhill\Desktop\ffmpeg\bin\ffprobe.exe
09:44:57.196 T:8716 DEBUG: stream_url is :https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29
09:44:57.203 T:8716 INFO: CPythonInvoker(16, E:\Kodi\portable_data\addons\plugin.video.Squeee\addon.py): script successfully run
09:44:57.204 T:9632 DEBUG: CWinEventsWin32::WndProcWindow is active
09:44:57.225 T:4588 DEBUG: Thread scriptobs 4588 terminating
09:44:57.265 T:8716 INFO: Python script stopped
09:44:57.265 T:8716 DEBUG: Thread LanguageInvoker 8716 terminating
09:44:57.534 T:9632 DEBUG: CCurlFile::GetMimeType - https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29 -> x-directory/normal
09:44:57.543 T:9632 DEBUG: Loading settings for https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29
09:44:57.546 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers(https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29)
09:44:57.546 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: system rules
09:44:57.546 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: system rules
09:44:57.546 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mms/udp
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: lastfm/shout
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtmp
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: rtsp
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: streams
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: matches rule: streams
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: aacp/sdp
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: mp2
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvd
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: dvdimage
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: sdp/asf
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: nsv
09:44:57.547 T:9632 DEBUG: CPlayerSelectionRule::GetPlayers: considering rule: radio
09:44:57.547 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers: matched 0 rules with players
09:44:57.547 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers: adding videodefaultplayer (VideoPlayer)
09:44:57.547 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=0
09:44:57.547 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers: for video=1, audio=1
09:44:57.547 T:9632 DEBUG: CPlayerCoreFactory::GetPlayers: added 1 players
09:44:57.549 T:9632 DEBUG: Radio UECP (RDS) Processor - new CDVDRadioRDSData::CDVDRadioRDSData
09:44:57.549 T:9632 NOTICE: VideoPlayer: Opening: https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29
09:44:57.549 T:9632 WARNING: CDVDMessageQueue(player)::Put MSGQ_NOT_INITIALIZED
09:44:57.819 T:9632 DEBUG: CCurlFile::GetMimeType - https://www.youtube.com/watch?v=C45Uaq499ig|User-Agent=Mozilla%2F5.0+%28X11%3B+Linux+x86_64%3B+rv%3A10.0%29+Gecko%2F20150101+Firefox%2F47.0+%28Chrome%29 -> x-directory/normal
09:44:57.819 T:9632 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 104 for 1.
09:44:57.819 T:9632 ERROR: DXVA::CProcessorHD::IsFormatSupported: Unsupported format 105 for 1.
09:44:57.819 T:2728 DEBUG: Thread VideoPlayer start, auto delete: false
09:44:57.819 T:2728 NOTICE: Creating InputStream
09:44:57.820 T:2728 DEBUG: CurlFile::Open(0761F5B4) https://www.youtube.com/watch?v=C45Uaq499ig
09:44:57.871 T:2728 DEBUG: CFileCache::Open - opening <watch> using cache
09:44:57.872 T:2728 DEBUG: CurlFile::Open(10FC1D18) https://www.youtube.com/watch?v=C45Uaq499ig
09:44:57.990 T:2728 NOTICE: Creating Demuxer
09:44:57.990 T:11016 DEBUG: Thread FileCache start, auto delete: false
09:44:58.303 T:11016 INFO: CFileCache::Process - Source read didn't return any data! Hit eof(?)
09:44:58.319 T:9632 DEBUG: ------ Window Init (DialogBusy.xml) ------
09:44:58.386 T:2728 ERROR: CDVDDemuxFFmpeg::Open - error probing input format, https://www.youtube.com/watch?v=C45Uaq499ig
09:44:58.386 T:2728 ERROR: CVideoPlayer::OpenDemuxStream - Error creating demuxer
09:44:58.386 T:2728 NOTICE: CVideoPlayer::OnExit()
09:44:58.386 T:11016 DEBUG: Thread FileCache 11016 terminating
09:44:58.386 T:2728 DEBUG: CApplication::OnPlayBackStopped: play state was 1, starting 1
09:44:58.386 T:2728 DEBUG: Thread VideoPlayer 2728 terminating
09:44:58.401 T:9632 DEBUG: CApplication::OnPlayBackStopped: play state was 3, starting 0
09:44:58.402 T:9632 ERROR: Playlist Player: skipping unplayable item: 0, path [plugin://plugin.video.Squeee/?resolve=http%3A%2F%2Fwww.dailyhaha.com%2F_vids%2Fbulldog-and-iguana-are-best-of-friends.htm]
09:44:58.402 T:9632 DEBUG: Playlist Player: one or more items failed to play... aborting playback
It appears something starts going wrong on the line
Code:
CFileCache::Process - Source read didn't return any data! Hit eof(?)