Sha256: 59ac10d83d2ce8b7697e1136a2bec7d9c742250a2638373ee3ff743292b9ddc0

Contents?: true

Size: 1.13 KB

Versions: 8

Compression:

Stored size: 1.13 KB

Contents

= dvdprofiler_collection

dvdprofiler_collection is a companion to royw-imdb and royw-tmdb gems.

This is an interface for the exported Collection.xml from DVD Profiler 3.5.1.

Because the file size and parsing time of the Collection.xml can grow quite
large, we extract only part of the meta-data then save into a Collection.yaml
file which parses much faster.  On my 3GHz quad core (alas with ruby only using
a single core), xml parsing is about 1:50 for about 1000 titles.

The Collection model supports fuzzy matching of titles.

The DvdprofilerProfile model provides a clean interface to the profiles using
first() and all() class methods.  Searches can be by ISBN or title.
Optionally a year may be provided to refine the search.

The actual meta-data is accessed via the dvd_hash attribute.

Examples:

profile = DvdprofilerProfile.first(:isbn => '786936735390')
profile = DvdprofilerProfile.first(:title => 'Sabrina', :year => '1995')
profiles = DvdprofilerProfile.all(:title => 'Sabrina')

puts profile.isbn
puts profile.title

profile.dvd_hash.each {|k,v| puts "#{k} => #{v}"}

== Copyright

Copyright (c) 2009 Roy Wright. See LICENSE for details.

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
royw-dvdprofiler_collection-0.0.2 README.rdoc
royw-dvdprofiler_collection-0.0.3 README.rdoc
royw-dvdprofiler_collection-0.1.0 README.rdoc
royw-dvdprofiler_collection-0.1.1 README.rdoc
royw-dvdprofiler_collection-0.1.2 README.rdoc
royw-dvdprofiler_collection-0.1.3 README.rdoc
royw-dvdprofiler_collection-0.1.4 README.rdoc
royw-dvdprofiler_collection-0.1.5 README.rdoc