Page 1 of 1

Attempting to write a script to control Podcast Play

Posted: 20 Dec 2022 20:31
by abramesd
Hello,

I am attempting to create a LUA Script for controlling Podcast Play Back. What I would like to do is look at the Play Count of a Podcast and if the Play Count is at least 1 (one) then don't play the Podcast.

My first problem is locating the "README file that is referenced in the "Get Started" thread. This particular reply https://forum.videolan.org/viewtopic.ph ... 44#p497170 provides a link to the README but when I try it I am getting a 404 Not Found error for both links. I finally did find the README in the version 1 source code but it is very old and the information in this forum seems to indicate this file has been updated???

I have been reading the source code for several Plugins to get some idea how to use LUA scripting in VLC and I am getting some understanding but I would like to have as much current information as possible so I don't waste time on something that is incorrect or outdated.

I appreciate any assistance that is provided and I am very willing to do the reading and trial and error as necessary.

Regards
David

Re: Attempting to write a script to control Podcast Play

Posted: 21 Dec 2022 06:16
by roland1
Hello,
my extension 'progress'
https://addons.videolan.org/p/1154006/
does the 'opposite', that is, if playcount > 0, then, input starts at 0, else it resumes to the last known position. Though, 'progress' itself stores playcount and last known position while running, and, idk where your podcasts get them from.

Re: Attempting to write a script to control Podcast Play

Posted: 21 Dec 2022 14:39
by abramesd
Dear roland1,

Thank you I will go take a look at your extension "progress".
I figured I would have to do some experimenting and trial and error to figure out my particular needs.
Do you also have a copy of the current README or a working link to it?

Thank you again for your assistance.
David

Re: Attempting to write a script to control Podcast Play

Posted: 21 Dec 2022 19:36
by roland1

Re: Attempting to write a script to control Podcast Play

Posted: 22 Dec 2022 20:03
by abramesd
Thank you