mirror of
https://github.com/mitb-archive/filebot
synced 2024-11-18 07:15:07 -05:00
* update docs for CLI.getMissingSubtitles
This commit is contained in:
parent
98349be576
commit
3762d4f392
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<div class="twitter" style="position:relative; top:3px;">
|
<div class="twitter" style="position:relative; top:3px;">
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/"></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<div class="plusone" style="position:relative; left:25px; top:1px">
|
<div class="plusone" style="position:relative; left:25px; top:1px">
|
||||||
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
||||||
@ -101,12 +101,12 @@
|
|||||||
</p>
|
</p>
|
||||||
<h3 id="subtitles">Fetch Subtitles</h3>
|
<h3 id="subtitles">Fetch Subtitles</h3>
|
||||||
<p>
|
<p>
|
||||||
<code><span class="cmd">filebot</span> <span class="option">-get-subtitles</span> <span class="argument">path/to/episodes</span></code>
|
<code><span class="cmd">filebot</span> <span class="option">-get-missing-subtitles</span> <span class="argument">path/to/episodes</span></code>
|
||||||
Fetch subtitles for the given files. Lookup matching subtitles via file hash.
|
Fetch subtitles that are missing for the given files. Lookup matching subtitles via file hash only.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
<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></code>
|
<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></code>
|
||||||
Fetch subtitles and force output format. Lookup subtitles via file hash and given search query.
|
Fetch subtitles and force output format. Lookup subtitles via file hash or given search query.
|
||||||
</p>
|
</p>
|
||||||
<h3 id="verification">File Verification</h3>
|
<h3 id="verification">File Verification</h3>
|
||||||
<p>
|
<p>
|
||||||
@ -174,6 +174,11 @@
|
|||||||
<td>fetch subtitles</td>
|
<td>fetch subtitles</td>
|
||||||
<td>media folder or episode/movie file</td>
|
<td>media folder or episode/movie file</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>-get-missing-subtitles</td>
|
||||||
|
<td>fetch missing subtitles</td>
|
||||||
|
<td>media folder or episode/movie file</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>--q</td>
|
<td>--q</td>
|
||||||
<td>search query</td>
|
<td>search query</td>
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<div class="twitter" style="position:relative; top:3px;">
|
<div class="twitter" style="position:relative; top:3px;">
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/"></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<div class="plusone" style="position:relative; left:25px; top:1px">
|
<div class="plusone" style="position:relative; left:25px; top:1px">
|
||||||
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])" href="http://filebot.sourceforge.net/"></g:plusone>
|
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])" href="http://filebot.sourceforge.net/"></g:plusone>
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<div class="twitter" style="position:relative; top:3px;">
|
<div class="twitter" style="position:relative; top:3px;">
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/"></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<div class="plusone" style="position:relative; left:25px; top:1px">
|
<div class="plusone" style="position:relative; left:25px; top:1px">
|
||||||
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
|
|
||||||
<div class="social">
|
<div class="social">
|
||||||
<div class="twitter" style="position:relative; top:3px;">
|
<div class="twitter" style="position:relative; top:3px;">
|
||||||
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/">Tweet</a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
<a href="https://twitter.com/share" class="twitter-share-button" data-count="horizontal" data-via="filebot_renamer" data-url="http://filebot.sourceforge.net/"></a><script type="text/javascript" src="//platform.twitter.com/widgets.js"></script>
|
||||||
</div>
|
</div>
|
||||||
<div class="plusone" style="position:relative; left:25px; top:1px">
|
<div class="plusone" style="position:relative; left:25px; top:1px">
|
||||||
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
<g:plusone callback="_gaq.push(['_trackEvent','Social networking','Google Plus One',document.title])"></g:plusone>
|
||||||
@ -97,7 +97,7 @@
|
|||||||
<h3 id="examples">Example Scripts</h3>
|
<h3 id="examples">Example Scripts</h3>
|
||||||
<div class="description">
|
<div class="description">
|
||||||
<pre><code>args.<span class="method">eachMediaFolder</span> {
|
<pre><code>args.<span class="method">eachMediaFolder</span> {
|
||||||
<span class="method">getSubtitles</span>(<span class="property">folder</span>:it)
|
<span class="method">getMissingSubtitles</span>(<span class="property">folder</span>:it)
|
||||||
<span class="method">rename</span>(<span class="property">folder</span>:it)
|
<span class="method">rename</span>(<span class="property">folder</span>:it)
|
||||||
<span class="method">compute</span>(<span class="property">file</span>:it.<span class="method">listFiles</span>().<span class="method">findAll</span>{ it.<span class="method">isVideo</span>() })
|
<span class="method">compute</span>(<span class="property">file</span>:it.<span class="method">listFiles</span>().<span class="method">findAll</span>{ it.<span class="method">isVideo</span>() })
|
||||||
}</code></pre>Fetch subtitles, rename and compute checksums for all media folders in the file hierarchy.</div>
|
}</code></pre>Fetch subtitles, rename and compute checksums for all media folders in the file hierarchy.</div>
|
||||||
@ -139,7 +139,11 @@
|
|||||||
<div class="documentation">
|
<div class="documentation">
|
||||||
<h4>Fetch subtitles for media files</h4>
|
<h4>Fetch subtitles for media files</h4>
|
||||||
<pre><span class="return">File[]</span> <span class="method">getSubtitles</span>(<span class="property">folder</span>|<span class="property">file</span>, <span class="property">query</span>, <span class="property">lang</span>, <span class="property">output</span>, <span class="property">encoding</span>, <span class="property">strict</span>)</pre>
|
<pre><span class="return">File[]</span> <span class="method">getSubtitles</span>(<span class="property">folder</span>|<span class="property">file</span>, <span class="property">query</span>, <span class="property">lang</span>, <span class="property">output</span>, <span class="property">encoding</span>, <span class="property">strict</span>)</pre>
|
||||||
<div class="text">Download subtitles for the given files. Lookup subtitles via hash or match by filename.</div>
|
<div class="text">
|
||||||
|
Download subtitles for the given files. Lookup subtitles via hash or match by filename. If you only want to download
|
||||||
|
missing subtitles you should use <pre style="font-size:inherit;display:inline"><span class="method">getMissingSubtitles</span></pre>
|
||||||
|
so subtitles that have already been downloaded will not be downloaded again overridding existing subtitle files.
|
||||||
|
</div>
|
||||||
<dl>
|
<dl>
|
||||||
<dt>Parameters:</dt>
|
<dt>Parameters:</dt>
|
||||||
<dd><span class="property">folder</span> - process media files in this folder</dd>
|
<dd><span class="property">folder</span> - process media files in this folder</dd>
|
||||||
|
Loading…
Reference in New Issue
Block a user