Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
115 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# ToName | ||
|
||
Overview | ||
-------- | ||
ToName is a Ruby library which parses media filenames and extracts metadata (e.g. name and year) | ||
|
||
e.g. | ||
|
||
* Primer.2004.DVDRip.x264.AC3.avi become Name => 'Primer', year => 2004 | ||
* ManMen.S01E01.720p.HDTV.x264-CTU.mkv becomes Name => 'ManMen', series => 1, episode => 1 | ||
|
||
Most media file names sourced from P2P sites are not immediately machine readable, however, they generally have a fairly consistent naming schema. ToName applies some simple parsing rules to extract enough information so that the movie/tv show can be looked up in a metadata database (e.g. [IMDB](http://www.imdb.com)). ToName does not claim a 100% success rate, however, it's generally good enough to find a match on IMDB. | ||
|
||
Features | ||
-------- | ||
* Extract movie name and year | ||
* Extract TV show series and episode | ||
* Will look at the parent folder name if media name looks like it has been abbreviated | ||
* Works with both media and torrent filenames | ||
|
||
Installation | ||
------------ | ||
|
||
gem install toname | ||
|
||
Examples | ||
-------- | ||
|
||
TODO | ||
|
||
Licence | ||
------- | ||
MIT | ||
|
||
Contact | ||
------- | ||
Sam Cavenagh [(cavenaghweb@hotmail.com)](mailto:cavenaghweb@hotmail.com) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# -*- encoding: utf-8 -*- | ||
|
||
Gem::Specification.new do |s| | ||
s.name = %q{toname} | ||
s.version = "0.1.0" | ||
|
||
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= | ||
s.authors = ["Sam Cavenagh"] | ||
s.date = %q{2010-08-07} | ||
s.description = %q{Convert video/torrent filename into movie/tv series name and year} | ||
s.email = %q{cavenaghweb@hotmail.com} | ||
s.extra_rdoc_files = ["README.md"] | ||
s.files = ["README.md", "spec", "lib/file_name_info.rb", "lib/to_name.rb"] | ||
s.homepage = %q{http://github.com/o-sam-o/toname} | ||
s.rdoc_options = ["--main", "README.md"] | ||
s.require_paths = ["lib"] | ||
s.rubygems_version = %q{1.3.7} | ||
s.summary = %q{To Name} | ||
|
||
if s.respond_to? :specification_version then | ||
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION | ||
s.specification_version = 3 | ||
|
||
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then | ||
s.add_development_dependency(%q<rspec>, [">= 2.5.8"]) | ||
else | ||
s.add_dependency(%q<rspec>, [">= 2.5.8"]) | ||
end | ||
else | ||
s.add_dependency(%q<rspec>, [">= 2.5.8"]) | ||
end | ||
end |