Posts: 2,013
Joined: Sep 2015
Reputation:
72
Atreyu
Posting Freak
Posts: 2,013
2021-03-07, 18:25
(This post was last modified: 2021-03-07, 18:27 by Atreyu.)
In your case,is there at least 6 unwatched episodes in the directory?
If not, have you checked the setting: if no unwatched, play from all' ?
I play large directories continuously, and it does so till it has no episodes. If I select 'play continuously', it does so. I don't see the double episode with the first item.
I have started continuous play just now and see how long it plays if I let it.
Posts: 5
Joined: Mar 2021
Reputation:
0
No ideas what the Problem is?
I dont know how long the Log would be available.
Posts: 618
Joined: Sep 2010
Reputation:
148
Looks like you are playing from Jellyfin, not a USB stick or HDD. Jellyfin is a plugin, this script does not support plugins.
Posts: 1
Joined: Mar 2021
Reputation:
0
Playing random videos doesn't seem to work when i select a folder that consists of folders of files. i.e. I select a TV series which contains folders Series 1, Series 2,... and each folder contains the episode).
This used to work under Kodi 18 (NVidia Shield) but not under 19.
Looking at the log I see:
2021-03-16 21:37:53.714 T:20596 INFO <general>: initializing python engine.
2021-03-16 21:37:53.882 T:20596 INFO <general>: [script.playrandomvideos] Listing 'smb://Server/Media/TV Shows/Black Books/'
2021-03-16 21:37:54.051 T:20346 INFO <general>: VideoPlayer::OpenFile: smb://Server/Media/TV Shows/Black Books/Season 02/
2021-03-16 21:37:54.052 T:20597 INFO <general>: Creating InputStream
2021-03-16 21:37:54.053 T:20597 INFO <general>: SMBFile->Open: Unable to open file : 'smb://192.168.0.10/Media/TV%20Shows/Black%20Books/Season%2002'
unix_err:'15' error : 'Is a directory'
2021-03-16 21:37:54.054 T:20597 ERROR <general>: CVideoPlayer::OpenInputStream - error opening [smb://Server/Media/TV Shows/Black Books/Season 02/]
2021-03-16 21:37:54.054 T:20597 INFO <general>: CVideoPlayer::OnExit()
2021-03-16 21:37:54.206 T:20346 INFO <general>: Loading skin file: DialogConfirm.xml, load type: KEEP_IN_MEMORY
2021-03-16 21:37:54.210 T:20346 INFO <general>: CVideoPlayer::CloseFile()
2021-03-16 21:37:54.213 T:20346 INFO <general>: VideoPlayer: waiting for threads to exit
2021-03-16 21:37:54.213 T:20346 INFO <general>: VideoPlayer: finished waiting
2021-03-16 21:37:56.063 T:20596 INFO <general>: CPythonInvoker(12, /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.playrandomvideos/python/context.py): script successfully run
2021-03-16 21:37:56.435 T:20596 INFO <general>: Python interpreter stopped
It seems to think the directories are files.
Interestingly when it actually tried to open a directory is used the IP address rather than the name of the server.
If I try on a folder that is a mix of files and folders it may work if it randomly chooses files but will fail when it gets to a directory.
Works perfectly if the folder only contains files (even up to few hundred).
Thanks.
Posts: 1
Joined: Apr 2021
Reputation:
0
Hello,
Im new here and new at programming. I want to do one specific thing. I have an big red Button that activates an
rotating beacon in our party caravan. Now I want to couple a Pc to it to Play a Random Video out of one Folder when you press the red button. I think I connect the Button to the Pc via an custom Keyboard but I dont now yet how to do this in specific but i think I can handel this Function. But the question is how to get the video started like do i have to write a new Programm on the pc or can I do it with this Plug in. It would be very helpfull if someone has an Idea how to do or how to start the Random video. I have only very basic Programming skills wih java.
Thanks for your help maybe someone has an code for that.
Henry aka Caravan Guy
The PC works on Win 10
Posts: 5
Joined: Jun 2021
Reputation:
0
Hi,
I installed the add-on and I do not see it in the context menu. My media is coming from a FTP server.
Is this supported by this add-on?
If not, any suggestions?