lua for viewing history?
Posted: 24 Jun 2010 21:33
Hi,
I'm wondering if it would be possible to use vlc lua to keep a list of the names of the video files I've viewed, so I can use this list to manually manage the viewed files (archive them etc).
A) I guess I would like to detect when a video starts playing, (or better yet when the end of the video is reached).
I'm thinking I could probably use the meta fetch_art() depending on when it is called. Is there a better way?
B) Once I have the video name, I would like to append it as a line in a file or something. Is it possible to write to a file? or would I need to use vlc.net to send data over tcp to another process that would write the file for the script.
Any suggestions/tips?
Thanks
Leon
I'm wondering if it would be possible to use vlc lua to keep a list of the names of the video files I've viewed, so I can use this list to manually manage the viewed files (archive them etc).
A) I guess I would like to detect when a video starts playing, (or better yet when the end of the video is reached).
I'm thinking I could probably use the meta fetch_art() depending on when it is called. Is there a better way?
B) Once I have the video name, I would like to append it as a line in a file or something. Is it possible to write to a file? or would I need to use vlc.net to send data over tcp to another process that would write the file for the script.
Any suggestions/tips?
Thanks
Leon