Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghedamat/movie-renamer
movie renamer is a simple ruby-gem that aims to create a simple cli to rename movie files
https://github.com/ghedamat/movie-renamer
Last synced: 22 days ago
JSON representation
movie renamer is a simple ruby-gem that aims to create a simple cli to rename movie files
- Host: GitHub
- URL: https://github.com/ghedamat/movie-renamer
- Owner: ghedamat
- License: other
- Created: 2010-06-20T13:31:46.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2013-03-05T18:14:06.000Z (over 11 years ago)
- Last Synced: 2024-10-10T03:54:33.419Z (about 1 month ago)
- Language: Ruby
- Homepage:
- Size: 239 KB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 5
-
Metadata Files:
- Readme: README.rdoc
- License: LICENSE
Awesome Lists containing this project
README
= movie-renamer
A simple command line interface to rename movies in a folder
and get your movies collection organized!It works in an interactive way and
uses imdb gem to query imdb about current movie trying to obtain useful infosto see the usage type
$ movie-renamer -h
Usage: movie-renamer [-i|-s|-f|-h|-p]
Default behavior is -f on current working directory
-h, --help Display this help
-i, --imdb Executes a query on imdb on
-s, --singlemovie FILE Acts on a single movie file
-f, --folder FOLDER Acts on whole folder
-p, --path PATH path for moving renamed movies default is tmp/ in current working directory== NOTE:
Imdb site recently changed layout hence the imdb gem that movie-renamer uses for the search doesn't give good results anymore
I don't have the time to fix the imdb gem or change it and use another database but I'm willing to accept pull requests :)
Sorry for the inconvenience== How it works
Default behavior is to scan the current working directory.
For each movie in the folder a question about what to do is asked.Then movie is renamed using input provided by the user.
You can query imdb using the filename or enter use manual searchEach renamed movie is moved into a tmp/ subfolder of the current working directory or
in the folder specified with the -p optionBy default Movies are renamed like this:
$year - $director - $title partXX.file_extension
You can set the rename pattern creating a .movie-renamer file in your home
example:
filename: ($year) - $title - $director=== Multilangual support
Optionally a language for the search can be set in .movie-renamer file
language: itall languages supported by imdb are available, simply set the language option to the website .part
link www.imdb.it -> itIn this case search will return the complete title but then just the title in the selected language will be writed in the filename
Please NOTE that multilanguage support REQUIRES an UTF-8 enabled terminal to work correctly
=== Change default savepath
savepath: /home/ghedamat/moviesSetting this variable you can change the default savepath to save in the same path all the renamed movies.
The behavior is the same as with -p option.=== Add a pattern to parse movie filenames
If option "parsepattern" is set the pattern is used to parse movie filenames
trying to detect $director $title and $year
parsepattern: $year - $director - $title== Notes on install
movie-renamer requires ruby1.9 to work correctly
gem dependencies also includesimdb gem
htmlentities gem
highline gemalso ensure that you have the gem installation path in your $PATH to use the included executables
== Note on Patches/Pull Requests
You are encouraged to provide help in developing this simple but useful (I hope) application!
* Fork the project.
* Make your feature addition or bug fix.
* Add tests for it. This is important so I don't break it in a
future version unintentionally.
* Commit, do not mess with rakefile, version, or history.
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
* Send me a pull request. Bonus points for topic branches.== Copyright
Copyright (c) 2010 ghedamat. See LICENSE for details.
Feel free to send me suggestions :)
Please drop me a line if you find this usefulMail me at: thamayor [at] gmail [dot] com