• 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9
Release Play Random Videos - context item and script
#76
Nice!
Reply
#77
Hi, 

i dont know where to post this issue. Here in the Forum or on Github. But the repo on github seems to be dead. 

So i post it here. 

Its a great extension. But i have one Problem.

It only plays 6 Videos (actually 5, the first one alway double). And then stops. And it doesnt matter if i activate to play continous in the option.

Here a Screenshot: https://abload.de/img/2021-03-0620_10_27-dad3jrw.png

This Problem occurs on every recent Kodi Versions (i tried 17 - 19). On all Plattforms (i tried Android, Windows, Linux, Libreelec, OSMC).

To reproduce this Issue:

Install any Kodi on any Plattform. Install the extension. Plug in a USB Stick or HDD. Or copy the files into Kodi (more than 6 Videos required). 

Start random Play with "Play random". 

Sry for my bad english. im native german.
Reply
#78
I need a debug log that is recorded while reproducing the issue to help.
Reply
#79
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.
Reply
#80
(2021-03-07, 18:25)Atreyu Wrote: 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.
Yeah. Thousand of Videos unwatched. 
Quote: 
I need a debug log that is recorded while reproducing the issue to help.
Here is the log: https://pastebin.pl/view/0e2017be
Reply
#81
(2021-03-07, 20:17)FroehlichRiskanter Wrote:
(2021-03-07, 18:25)Atreyu Wrote: 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.
Yeah. Thousand of Videos unwatched. 
Quote: 
I need a debug log that is recorded while reproducing the issue to help.
Here is the log: https://pastebin.pl/view/0e2017be
Strange, works fine here. Maybe the log will show whats wrong.

/edit: hmmm. log is not accessable for me (site cant be reached).
Reply
#82
No ideas what the Problem is?

I dont know how long the Log would be available.
Reply
#83
(2021-03-06, 21:14)FroehlichRiskanter Wrote: It only plays 6 Videos (actually 5, the first one alway double). And then stops.

Same issue here. Plays ~6 videos (play random on tv show library) and stops. I have Kore remote attached.
Reply
#84
(2021-03-13, 19:30)FroehlichRiskanter Wrote: No ideas what the Problem is?

I dont know how long the Log would be available.
You can paste the log to https://paste.kodi.tv .
Reply
#85
(2021-03-13, 19:43)smithjd15 Wrote:
(2021-03-13, 19:30)FroehlichRiskanter Wrote: No ideas what the Problem is?

I dont know how long the Log would be available.
You can paste the log to https://paste.kodi.tv .

I tried. But this Site says my Log is to big  Confused
Reply
#86
Looks like you are playing from Jellyfin, not a USB stick or HDD. Jellyfin is a plugin, this script does not support plugins.
Reply
#87
(2021-03-13, 21:01)rmrector Wrote: Looks like you are playing from Jellyfin, not a USB stick or HDD. Jellyfin is a plugin, this script does not support plugins.

Not directly. Jellyfin syncs only the Database from Jellyfin with Kodi, so that u need only one Place where u can modify the Metadata. 

https://jellyfin.org/docs/general/clients/kodi.html

And the play random plugin works. But only for 6 (effective only 5) Videos at once. 

I already tried to debug this, and reinstalled one raspberry and copied view Videos on the rpi and got the same problem.

That the Reason why i posted this issue. 

(btw i have 5 rpi's in use, all with the same issue (with or without jellyfin metadatasync). Dont know if libreelec is the reason? that would be my next step to try out)
Reply
#88
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.
Reply
#89
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
Reply
#90
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?
Reply
  • 1
  • 4
  • 5
  • 6(current)
  • 7
  • 8
  • 9

Logout Mark Read Team Forum Stats Members Help
Play Random Videos - context item and script2