summaryrefslogtreecommitdiff
path: root/apps/plugins/lua/rocklib_aux.pl
diff options
context:
space:
mode:
authorWilliam Wilgus <me.theuser@yahoo.com>2018-10-24 21:40:01 -0400
committerWilliam Wilgus <me.theuser@yahoo.com>2018-10-25 05:59:42 -0400
commite4c5f5d412d94b10545980eea0b47d98e79712da (patch)
tree407022885faeda259ab40192dd74cae1a477f3f3 /apps/plugins/lua/rocklib_aux.pl
parentb670fcd50d42085a2db978bbcf2ccfd889d740ef (diff)
downloadrockbox-e4c5f5d412d94b10545980eea0b47d98e79712da.tar.gz
rockbox-e4c5f5d412d94b10545980eea0b47d98e79712da.zip
lua consolidate playlist_ functions
The way to call the playlist functions has changed rb.playlist("option", var) rb.playlist_add(filename) = becomes rb.playlist("add", filename) added playlist.lua to the includes for conversion to old functions if your script is broken by this change you simply add `require("playlist")` to the top for the old functionality added rb.playlist_tracks(dir, filename) to playlist.lua this will allow you to add all tracks in a playlist.m3u8 to a lua table Change-Id: I87fcc56be365d8495d214f069331b6ddbfbef1db
Diffstat (limited to 'apps/plugins/lua/rocklib_aux.pl')
-rwxr-xr-xapps/plugins/lua/rocklib_aux.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/plugins/lua/rocklib_aux.pl b/apps/plugins/lua/rocklib_aux.pl
index e47a898d55..5114e7b6f7 100755
--- a/apps/plugins/lua/rocklib_aux.pl
+++ b/apps/plugins/lua/rocklib_aux.pl
@@ -76,6 +76,7 @@ my @forbidden_functions = ('^open$',
76 '^__.+$', 76 '^__.+$',
77 '^.+_(un)?cached$', 77 '^.+_(un)?cached$',
78 '^audio_.+$', 78 '^audio_.+$',
79 'playlist_.+$',
79 '^round_value_to_list32$'); 80 '^round_value_to_list32$');
80 81
81my $rocklib = sprintf("%s/rocklib.c", $ARGV[0]); 82my $rocklib = sprintf("%s/rocklib.c", $ARGV[0]);