1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-02 08:25:02 -04:00
filebot/website/cli.html

339 lines
14 KiB
HTML
Raw Normal View History

2011-11-27 00:32:06 -05:00
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Product">
2011-09-14 19:44:52 -04:00
<head>
2011-11-27 00:32:06 -05:00
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="rename tv shows, rename movies, download subtitles, check sfv files" />
2011-11-27 00:32:06 -05:00
2011-12-27 13:57:11 -05:00
<title>FileBot Command-line Interface</title>
2011-12-25 12:17:49 -05:00
<meta name="description" content="The FileBot command-line interface will allow you to rename tv shows, download subtitles and do lots of other nifty things directly directly from the console. Running on an headless server is fully supported. Make sure to check out FileBot scripting as well for a new level of automation." />
<meta itemprop="name" content="FileBot Command-line Interface" />
<meta itemprop="description" content="The FileBot command-line interface will allow you to rename tv shows, download subtitles and do lots of other nifty things directly directly from the console. Running on an headless server is fully supported. Make sure to check out FileBot scripting as well for a new level of automation." />
2015-05-29 05:36:21 -04:00
<meta itemprop="image" content="http://www.filebot.net/icon.png" />
2011-12-24 23:28:09 -05:00
2011-09-14 19:44:52 -04:00
<link rel="stylesheet" href="base.css" type="text/css" />
<link rel="stylesheet" href="code.css" type="text/css" />
<link rel="icon" href="favicon.png" />
2011-11-27 00:32:06 -05:00
<!-- google +1 -->
<script type="text/javascript">
window.___gcfg = {lang: 'en-GB'};
(function() {
var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
po.src = 'https://apis.google.com/js/plusone.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
})();
</script>
<!-- twitter -->
<script type="text/javascript">
2011-12-10 04:59:27 -05:00
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
</script>
2011-09-14 19:44:52 -04:00
</head>
<body>
2012-12-03 06:29:50 -05:00
<!-- Facebook Like Button-->
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
2011-09-14 19:44:52 -04:00
<div class="page">
2011-12-10 04:59:27 -05:00
<div class="navigation">
2011-11-22 11:12:20 -05:00
<div>
<ul>
2014-10-21 00:39:01 -04:00
<li><a href="https://www.filebot.net/forums/">Forums</a></li>
<li><a href="https://www.filebot.net/forums/viewtopic.php?f=3&amp;t=7">FAQ</a></li>
2015-06-01 15:26:44 -04:00
<li><a href="http://www.filebot.net/#download">Download</a></li>
2011-11-22 11:12:20 -05:00
</ul>
</div>
</div>
2011-09-17 08:56:49 -04:00
<div class="social">
2011-12-10 04:59:27 -05:00
<div class="twitter">
<a href="https://twitter.com/share" class="twitter-share-button" data-url="http://www.filebot.net/" data-text="FileBot - The ultimate tv renamer and subtitle downloader" data-via="filebot_renamer" data-lang="en"></a>
2011-09-17 08:56:49 -04:00
</div>
2012-12-03 06:29:50 -05:00
<div class="facebook">
<div class="fb-like" data-href="https://www.facebook.com/filebot" data-send="false" data-layout="button_count" data-width="80" data-show-faces="false"></div>
</div>
2011-12-10 04:59:27 -05:00
<div class="plusone">
<g:plusone href="http://www.filebot.net/"></g:plusone>
2011-09-17 08:56:49 -04:00
</div>
</div>
2011-09-14 19:44:52 -04:00
<div class="header">
2015-06-01 15:26:44 -04:00
<a href="http://www.filebot.net"><img class="logo" alt="logo" src="images/filebot.logo.svg" width="64" height="64" /></a>
2011-09-14 19:44:52 -04:00
<h1>
FileBot CLI
<span class="description">Command-line interface usage manual</span>
</h1>
</div>
<div class="content">
2014-12-21 13:00:44 -05:00
<div class="main-section-screenshot">
2015-06-14 09:00:32 -04:00
<a target="_blank" href="screenshots/cli.png"><img alt="FileBot command-line tools" width="330" height="221" src="screenshots/cli.png" /></a>
</div>
2011-09-14 19:44:52 -04:00
<div class="section about">
<h2>About</h2>
<p style="width: 420px">
2011-12-07 00:41:44 -05:00
FileBot can be called with a set of command-line arguments directly from the console
or in scripts for automation running tasks like renaming TV shows and movies, fetching subtitles or checking SFV files.
</p>
<p style="width: 420px">
2014-10-21 00:39:01 -04:00
The CLI is designed for simple tasks. Please have a look at <a href="script.html">Scripts and Automation</a> for something more powerful and find scripts for many common tasks <a href="https://www.filebot.net/forums/viewtopic.php?f=4&t=5#p5">here</a>.
2011-09-14 19:44:52 -04:00
</p>
2011-09-22 12:11:00 -04:00
<h2 id="examples">Examples</h2>
<h3 id="rename">Rename</h3>
2011-09-14 19:44:52 -04:00
<p>
<code><span class="cmd">filebot</span> <span class="option">-rename</span> <span class="argument">path/to/episodes</span></code>
2011-09-15 08:46:07 -04:00
Rename given episodes or movies.
2011-09-14 19:44:52 -04:00
</p>
<p>
2013-08-07 22:59:27 -04:00
<code><span class="cmd">filebot</span> <span class="option">-rename</span> <span class="argument">"One Piece"</span> <span class="option">--db</span> <span class="argument">anidb</span> <span class="option">-non-strict</span></code>
Rename given episodes using AniDB episode info. Enable comprehensive Episode/File matching.
2011-09-14 19:44:52 -04:00
</p>
<p>
<code><span class="cmd">filebot</span> <span class="option">-rename</span> <span class="argument">"Generation Kill"</span> <span class="option">--format</span> <span class="argument">"{n} E{e} [{t}]"</span> <span class="option">-non-strict</span></code>
2011-09-15 08:46:07 -04:00
Rename given episodes according to the given format. Enable comprehensive Episode/File matching.
2011-09-14 19:44:52 -04:00
</p>
<p>
2014-12-21 11:41:33 -05:00
<code><span class="cmd">filebot</span> <span class="option">-rename</span> <span class="argument">"1x01.avi"</span> <span class="option">--q</span> <span class="argument">"Dexter"</span> <span class="option">--db</span> <span class="argument">TheTVDB</span> <span class="option">--lang</span> <span class="argument">de</span></code>
2011-09-15 08:46:07 -04:00
Rename a single episode forcing the series name. Use German language episode info.
2011-09-14 19:44:52 -04:00
</p>
<p>
2014-12-21 11:41:33 -05:00
<code><span class="cmd">filebot</span> <span class="option">-rename</span> <span class="argument">"movie.avi"</span> <span class="option">--q</span> <span class="argument">"Avatar"</span> <span class="option">--db</span> <span class="argument">TheMovieDB</span></code>
2011-09-15 08:46:07 -04:00
Rename a single movie looking up movie info via file hash or using the given movie title.
2011-09-14 19:44:52 -04:00
</p>
2012-02-22 03:19:49 -05:00
<p class="suggestion">
Keep in mind that the CLI is <strong>strict by default</strong> so it will never mess up your files. In some cases you may need to enable <strong>-non-strict</strong> for more opportunistic matching like the GUI does.
</p>
<h3 id="subtitles">Fetch Subtitles</h3>
2011-09-14 19:44:52 -04:00
<p>
<code><span class="cmd">filebot</span> <span class="option">-get-missing-subtitles</span> <span class="argument">path/to/episodes</span></code>
Fetch subtitles that are missing for the given files. Lookup matching subtitles via file hash only.
2011-09-14 19:44:52 -04:00
</p>
<p>
2011-12-13 07:38:25 -05:00
<code><span class="cmd">filebot</span> <span class="option">-get-subtitles</span> <span class="argument">path/to/movie</span> <span class="option">--q</span> <span class="argument">"Avatar"</span> <span class="option">--lang</span> <span class="argument">zh</span> <span class="option">--output</span> <span class="argument">srt</span> <span class="option">--encoding</span> <span class="argument">utf8</span> <span class="option">-non-strict</span></code>
Fetch subtitles and force output format. Lookup subtitles via file hash or given search query.
2011-09-14 19:44:52 -04:00
</p>
<h3 id="verification">File Verification</h3>
2011-09-14 19:44:52 -04:00
<p>
<code><span class="cmd">filebot</span> <span class="option">-check</span> <span class="argument">path/to/files</span></code>
2011-09-15 08:46:07 -04:00
Compute SFV file and automatically determine output file.
2011-09-14 19:44:52 -04:00
</p>
<p>
<code><span class="cmd">filebot</span> <span class="option">-check</span> <span class="argument">path/to/files</span> <span class="option">--output</span> <span class="argument">checksum.md5</span></code>
2011-12-13 07:38:25 -05:00
Compute checksums and write to the given output file.
2011-09-14 19:44:52 -04:00
</p>
<p>
<code><span class="cmd">filebot</span> <span class="option">-check</span> <span class="argument">path/to/checksum.md5</span></code>
2011-10-16 10:41:58 -04:00
Check file integrity using the given checksum file.
2011-09-14 19:44:52 -04:00
</p>
<h3 id="scripting">Scripting</h3>
2011-10-16 10:21:38 -04:00
<p>
<code><span class="cmd">filebot</span> <span class="option">-extract</span> <span class="argument">"300.part01.rar"</span> <span class="option">--output</span> <span class="argument">path/to/folder</span></code></code>
Extract files from single-volume or multi-volume archives (e.g. rar).
</p>
<p>
2011-10-16 10:21:38 -04:00
<code><span class="cmd">filebot</span> <span class="option">-list</span> <span class="option">--db</span> <span class="argument">thetvdb</span> <span class="option">--q</span> <span class="argument">Dexter</span> <span class="option">--format</span> <span class="argument">"{s}x{e.pad(2)} {t}"</span></code>
Fetch episode list and print to console.
</p>
<p>
<code><span class="cmd">filebot</span> <span class="option">-mediainfo</span> <span class="argument">path/to/files</span> <span class="option">--format</span> <span class="argument">"{fn} {resolution} {vc} {af}"</span></code>
Read media info and print to console.
</p>
<p>
<code><span class="cmd">filebot</span> <span class="option">-script</span> <span class="argument">"path/to/script.groovy"</span> <span class="argument">args...</span></code>
2011-11-04 20:43:37 -04:00
Execute a given Groovy script. Find the manual on scripting <a href="script.html">here</a>.
</p>
2011-09-15 08:46:07 -04:00
2012-10-14 00:54:14 -04:00
2011-09-22 12:11:00 -04:00
<h2 class="reference" id="arguments">
2011-09-15 08:46:07 -04:00
Argument Reference
2014-04-19 03:03:52 -04:00
<a href="https://sourceforge.net/p/filebot/code/HEAD/tree/trunk/source/net/filebot/cli/ArgumentBean.java" class="source" target="_blank">source</a>
2011-09-15 08:46:07 -04:00
</h2>
2011-09-15 05:51:22 -04:00
<table class="reference cli">
2011-09-17 08:56:49 -04:00
<tr>
<th>Name</th>
<th>Description</th>
<th>Usage</th>
</tr>
<tr>
<td>-rename</td>
2014-12-21 11:41:33 -05:00
<td>rename media files</td>
<td>media folder or media file</td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>--db</td>
2014-12-21 11:41:33 -05:00
<td>media database</td>
2011-09-17 08:56:49 -04:00
<td>
<table>
<tr>
2014-12-21 11:41:33 -05:00
<td>TV Series mode: TheTVDB, TVRage, AniDB</td>
</tr>
<tr>
<td>Movie mode: TheMovieDB, OMDb</td>
2011-09-17 08:56:49 -04:00
</tr>
<tr>
2014-12-21 11:41:33 -05:00
<td>Music mode: AcoustID, ID3 Tags</td>
2011-09-17 08:56:49 -04:00
</tr>
</table>
</td>
</tr>
2012-02-20 10:40:49 -05:00
<tr>
<td>--order</td>
<td>episode numbering</td>
<td>airdate | absolute | dvd</td>
2012-02-20 10:40:49 -05:00
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>--format</td>
<td><a href="naming.html">naming scheme</a></td>
<td><a href="naming.html">movie or episode format expression</a></td>
2011-09-17 08:56:49 -04:00
</tr>
<tr>
<td>--action</td>
<td>rename action</td>
<td>move | copy | keeplink | symlink | hardlink</td>
</tr>
<tr>
<td>--conflict</td>
<td>conflict resolution</td>
<td>override | skip | fail</td>
</tr>
<tr>
<td>--filter</td>
<td>episode include rules</td>
<td>filter expression (e.g. &quot;y > 2000&quot;)</td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>-get-subtitles</td>
<td>fetch subtitles</td>
2014-12-21 11:41:33 -05:00
<td>media folder or media file</td>
</tr>
<tr>
<td>-get-missing-subtitles</td>
<td>fetch missing subtitles</td>
2014-12-21 11:41:33 -05:00
<td>media folder or media file</td>
2011-09-17 08:56:49 -04:00
</tr>
<tr>
<td>--q</td>
<td>search query</td>
<td>tv series or movie title</td>
</tr>
<tr>
<td>--lang</td>
2011-09-22 08:24:10 -04:00
<td><a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" target="_blank">2-letter language code</a></td>
2011-09-17 08:56:49 -04:00
<td>en, de, fr, es, ja, zh, etc</td>
</tr>
2011-11-25 14:43:24 -05:00
<tr>
<td>-non-strict</td>
<td>use advanced matching</td>
<td>
<table>
<tr>
<td>Rename mode: match multiple tv shows</td>
</tr>
<tr>
<td>Subtitle mode: match subtitles by name</td>
</tr>
</table>
</td>
</tr>
2012-07-20 03:38:50 -04:00
<tr>
<td>-r</td>
<td>handle folders recursively</td>
<td></td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>-check</td>
<td>create/check sfv file</td>
2011-09-17 08:56:49 -04:00
<td>folder or sfv file</td>
</tr>
<tr>
<td>-extract</td>
<td>extract archives</td>
<td>folder or archive file</td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>--output</td>
2014-12-21 11:41:33 -05:00
<td>output format or path</td>
2011-09-17 08:56:49 -04:00
<td>
<table>
<tr>
<td>Rename mode: output folder</td>
2011-09-17 08:56:49 -04:00
</tr>
<tr>
2011-12-07 00:41:44 -05:00
<td>Subtitle mode: srt <small class="comment">(re-encode subtitles)</small></td>
2011-09-17 08:56:49 -04:00
</tr>
<tr>
<td>Checksum mode: sfv, md5, sha1</td>
</tr>
2011-09-17 08:56:49 -04:00
</table>
</td>
</tr>
<tr>
<td>--encoding</td>
<td>output charset</td>
<td>UTF-8, windows-1252, GB18030, etc</td>
</tr>
2011-10-16 10:41:58 -04:00
<tr>
<td>-list</td>
<td>print episode list</td>
<td></td>
</tr>
<tr>
<td>-mediainfo</td>
<td>print media info</td>
<td></td>
</tr>
<tr>
<td>-script</td>
<td><a href="script.html">execute script</a></td>
<td></td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
<td>--log</td>
<td>log level</td>
<td>all, config, info, warning</td>
</tr>
<tr>
<td>-clear-cache</td>
<td>clear cache</td>
2011-09-22 08:24:10 -04:00
<td></td>
</tr>
<tr>
<td>-clear-prefs</td>
<td>reset application settings</td>
<td></td>
</tr>
2011-09-17 08:56:49 -04:00
<tr>
2011-10-16 10:21:38 -04:00
<td>-help</td>
2011-09-17 08:56:49 -04:00
<td>print help message</td>
<td></td>
</tr>
</table>
</div>
2011-11-16 12:24:14 -05:00
<p class="suggestion">
2014-10-21 00:39:01 -04:00
Need some help getting started? Check the <a href="https://www.filebot.net/forums/viewforum.php?f=4">forums</a>.
2011-11-16 12:24:14 -05:00
</p>
<div class="metrics">
</div>
2015-06-04 11:59:36 -04:00
<div class="footer">
2015-06-04 11:59:36 -04:00
<p>
2014-12-21 11:41:33 -05:00
Hosted on <a href="http://sourceforge.net/projects/filebot/">sourceforge.net</a> | Creative Commons License: Attribution-NonCommercial-ShareAlike © 2015
2015-06-04 11:59:36 -04:00
</p>
2011-09-14 19:44:52 -04:00
</div>
</div>
</div>
</body>
</html>