Page 1 of 1

Lua get chapter time

Posted: 22 Jun 2018 12:07
by cutdact
Hello!

Is there a way to get the time of a specific chapter? I'm trying to make a script that looks up the time for chapter 1 (chapter 1 is after the intro) and then taking that time minus the intro time to get the time where it should skip to remove the intro. Hope that made sense :D

Thanks!

Re: Lua get chapter time

Posted: 23 Jun 2018 14:04
by mederi

Code: Select all

input = vlc.object.input() v, l = vlc.var.get_list( input, "chapter") chapter_time_string=l[2]

Re: Lua get chapter time

Posted: 25 Jun 2018 14:30
by mederi
Sometimes the chapters list contains time strings, sometimes chapter names (Chapter 01, Chapter 02, ...) and then it is not possible to get the chapter time.