READ THE RULES
0 Members and 1 Guest are viewing this topic.
host = "127.0.0.1"port = ":8080"file = "/nowplaying.html"dcpp:setListener( "ownChatOut", "vlcnp", function ( hub, text ) local http = require("socket.http") local txt = DC():FromUtf8(text) local prefix = string.sub(txt, 1, 1) if prefix == "+" or prefix == "!" then return elseif prefix == "/" then local cmd = string.sub(txt, 2) string.lower(cmd) if cmd == "vlc" then np = http.request(host..port..page) hub:sendChat(np) return 1 else return end else msg = txt end hub:sendChat(msg) return 1 end )DC():PrintDebug(" ** Loaded vlcnp.lua **")
[01:13:20] LUA ERROR: (vlcnp.lua: ownChatOut) C:\Users\s3m0\Documents\BCDC++\scripts\vlcnp.lua:8: loop or previous error loading module 'socket.http'
[01:34:04] LUA ERROR: (vlcnp.lua: ownChatOut) C:\Users\s3m0\Documents\BCDC++\scripts\vlcnp.lua:8: module 'socket.http' not found: no field package.preload['socket.http'] no file '.\socket\http.lua' no file 'C:\Program Files\BCDC++\lua\socket\http.lua' no file 'C:\Program Files\BCDC++\lua\socket\http\init.lua' no file 'C:\Program Files\BCDC++\socket\http.lua' no file 'C:\Program Files\BCDC++\socket\http\init.lua' no file '.\socket\http.dll' no file 'C:\Program Files\BCDC++\socket\http.dll' no file 'C:\Program Files\BCDC++\loadall.dll' no file '.\socket.dll' no file 'C:\Program Files\BCDC++\socket.dll' no file 'C:\Program Files\BCDC++\loadall.dll'
In the hubs where I reside most people do that and we do not frown upon it like spam...
the owner will probably just laugh at me when I tell her that I want the hub to run a script which I could use for my VLC Now Playing feature.
A Lua 5.1 module to download files and XML/RDF triples from internet. This module provides also a XML SAX parser to analyse XML dowloaded files. Uses WinInet (allows HTTP/HTTPS/FTP, cookies, a download cache and http proxy).