Blix OPDS Generator
Blix OPDS Generator is a Ruby gem that allows you to easily create OPDS (Open Publication Distribution System) catalogs for your digital content. It's designed to work seamlessly with Blix applications but can be used in any Ruby project.
Features
- Generate OPDS-compliant XML catalogs
- Support for nested directory structures
- Automatic MIME type detection for common file types
- Security measures to prevent unauthorized directory access
Installation
Add this line to your application's Gemfile:
gem 'blix-opds'
Web example
To use this in a blix web application, you might do something like this:
require 'blix/rest'
require 'blix/opds'
class Controller < Blix::Rest::Controller
include Blix::OPDS::Routes
opds_routes :root=>'/Data/Books', :url=>'http://192.168.1.34:3000', :prefix=>'opds'
end
run Blix::Rest::Server.new