vlc.config.userdatadir replacement for service discovery?

Discuss your Lua playlist, album art and interface scripts.
roland1
Blank Cone
Blank Cone
Posts: 44
Joined: 01 May 2014 16:49

vlc.config.userdatadir replacement for service discovery?

Postby roland1 » 18 Jun 2018 21:53

Does anybody have a list of directories vlc might use as userdatadir (on different systems)?

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc.config.userdatadir replacement for service discovery?

Postby Jean-Baptiste Kempf » 19 Jun 2018 00:10

What for?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: vlc.config.userdatadir replacement for service discovery?

Postby roland1 » 19 Jun 2018 19:28

It is for the mediathek sd script.
There, persistence is needed (queries are persistent, database is also cached).
In sd scripts (environment) vlc.config is nil, so, in absence of vlc.config.userdatadir
I am about to build some search path (atm it is only ~/.local/share/vlc),
s.t. other systems can also run mediathek.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc.config.userdatadir replacement for service discovery?

Postby Jean-Baptiste Kempf » 19 Jun 2018 23:53

Why is persistence needed for mediathek?
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

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

Re: vlc.config.userdatadir replacement for service discovery?

Postby roland1 » 20 Jun 2018 21:06

For comfort! :)
After one-click activation of mediathek it populates all my past queries and I can browse through it. The screenshot at https://addons.videolan.org/p/1241457/ shows a playlist set up prior to activation through the search field (not hardcoded).
There are also minor reasons for caching as the database in use is availalable as .xz for download, decompressed size > 100 MB, size of Lua table'd be > 300 MB.
But, of course caching could be done elsewhere (e.g. os.getenv"TMPDIR" or os.getenv"TEMP" or os.getenv"TMP" or "/tmp".)
Disclaimer: This is not a request for having vlc.config available for sd scripts.
Thanks for reading.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: vlc.config.userdatadir replacement for service discovery?

Postby Jean-Baptiste Kempf » 22 Jun 2018 00:01

Disclaimer: This is not a request for having vlc.config available for sd scripts.
Is it not? :D
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Scripting VLC in lua”

Who is online

Users browsing this forum: No registered users and 27 guests