https://github.com/baitisj/dvd_auto_mirror
The script simply opens the DVD drive tray, and waits for you to shovel DVD after DVD into the drive.
I also wanted an easy way of sharing this directory with my Fire TV stick. I sideloaded Kodi, and discovered that HTTP shares don't work, but WebDAV does. My lighttpd.conf file:
server.port = 80I set up a symlink from /var/www/dvds to my archive directory. Done!
server.username = "http"
server.groupname = "http"
server.document-root = "/var/www/"
server.errorlog = "/var/log/lighttpd/error.log"
server.modules += ( "mod_webdav" )
dir-listing.activate = "enable"
index-file.names = ( "index.html" )
mimetype.assign = (
".html" => "text/html",
".txt" => "text/plain",
".css" => "text/css",
".js" => "application/x-javascript",
".jpg" => "image/jpeg",
".jpeg" => "image/jpeg",
".gif" => "image/gif",
".png" => "image/png",
"" => "application/octet-stream"
)
$HTTP["url"] =~ "^/dvds($|/)" {
webdav.activate = "enable"
webdav.is_readonly = "enable"
}
No comments:
Post a Comment