Attempting to write a script to control Podcast Play

Discuss your Lua playlist, album art and interface scripts.
abramesd
New Cone
New Cone
Posts: 3
Joined: 20 Dec 2022 17:02

Attempting to write a script to control Podcast Play

Postby abramesd » 20 Dec 2022 20:31

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

roland1
Blank Cone
Blank Cone
Posts: 44
Joined: 01 May 2014 16:49

Re: Attempting to write a script to control Podcast Play

Postby roland1 » 21 Dec 2022 06:16

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.

abramesd
New Cone
New Cone
Posts: 3
Joined: 20 Dec 2022 17:02

Re: Attempting to write a script to control Podcast Play

Postby abramesd » 21 Dec 2022 14:39

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


abramesd
New Cone
New Cone
Posts: 3
Joined: 20 Dec 2022 17:02

Re: Attempting to write a script to control Podcast Play

Postby abramesd » 22 Dec 2022 20:03

Thank you


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 2 guests