This commit is contained in:
Reinhard Pointner 2011-12-25 04:28:09 +00:00
parent 0aeea04062
commit 187e330131
8 changed files with 70 additions and 12 deletions

View File

@ -171,7 +171,7 @@ public class Main {
Properties properties = new Properties();
NodeList fields = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new ByteBufferInputStream(data)).getFirstChild().getChildNodes();
for (int i = 0; i < fields.getLength(); i++) {
properties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent());
properties.setProperty(fields.item(i).getNodeName(), fields.item(i).getTextContent().trim());
}
return properties;
} catch (Exception e) {

View File

@ -2,9 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Product">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="rename tv series, rename episode, rename movie, download subtitles, file verification, check sfv md5 sha1" />
<meta name="keywords" content="rename tv series, rename tv episodes with info from TVRage or AniDB or TheTVDB, rename movies, download subtitles from OpenSubtitles or Sublight, check sfv or md5 or sha1 files, command-line, Windows, Linux, Mac OSX" />
<title>FileBot CLI</title>
<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." />
<link rel="stylesheet" href="base.css" type="text/css" />
<link rel="stylesheet" href="code.css" type="text/css" />
<link rel="icon" href="favicon.png" />

View File

@ -22,10 +22,9 @@ def fetchBanner(outputFile, series, bannerType, bannerType2, season = null) {
def fetchNfo(outputFile, series) {
TheTVDB.getSeriesInfo(series, Locale.ENGLISH).applyXmlTemplate('''
<tvshow xmlns:gsp='http://groovy.codehaus.org/2005/gsp'>
TheTVDB.getSeriesInfo(series, Locale.ENGLISH).applyXmlTemplate('''<tvshow xmlns:gsp='http://groovy.codehaus.org/2005/gsp'>
<title>$name</title>
<year>$firstAired.year</year>
<year>${firstAired?.year}</year>
<rating>$rating</rating>
<votes>$ratingCount</votes>
<plot>$overview</plot>
@ -34,7 +33,7 @@ def fetchNfo(outputFile, series) {
<genre>${genre.size() > 0 ? genre.get(0) : ''}</genre>
<id>$id</id>
<thumb>$bannerUrl</thumb>
<premiered>$firstAired.year</premiered>
<premiered>$firstAired</premiered>
<status>$status</status>
<studio>$network</studio>
<gsp:scriptlet> actors.each { </gsp:scriptlet>
@ -78,7 +77,7 @@ def jobs = args.getFolders().findResults { dir ->
def sxe = videos.findResult{ parseEpisodeNumber(it) }
if (query == null) {
query = dir.name
query = dir.dir.hasFile{ it.name =~ /Season.\d+/ } ? dir.dir.name : dir.name
println "Failed to detect series name from video files -> Query by $query instead"
}
@ -92,7 +91,7 @@ def jobs = args.getFolders().findResults { dir ->
def series = options[0]
// auto-detect structure
def seriesDir = similarity(dir.dir.name, series.name) > 0.8 ? dir.dir : dir
def seriesDir = [dir.dir, dir].sort{ a, b -> similarity(b.name, series.name).compareTo(similarity(a.name, series.name)) }[0]
def season = sxe && sxe.season > 0 ? sxe.season : 1
return { fetchSeriesBannersAndNfo(seriesDir, dir, series, season) }

View File

@ -7,7 +7,7 @@ def movieDir = "V:/in/Movies"
def movieFormat = "V:/out/Movies/{movie}/{movie}"
// ignore chunk, part, par and hidden files
def incomplete(f) { f.name =~ /[.]chunk|[.]part$|[.]par$/ || f.isHidden() }
def incomplete(f) { f.name =~ /[.]chunk|[.]part\d{0,3}$|[.]par$/ || f.isHidden() }
// run cmdline unrar (require -trust-script) on multi-volume rar files

View File

@ -2,10 +2,12 @@
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Product">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="rename tv series, rename episode, rename movie, download subtitles, file verification, check sfv md5 sha1" />
<meta name="keywords" content="rename tv series, rename tv episodes with info from TVRage or AniDB or TheTVDB, rename movies, download subtitles from OpenSubtitles or Sublight, check sfv or md5 or sha1 files, command-line, Windows, Linux, Mac OSX" />
<link rel="alternate" type="application/rss+xml" title="RSS" href="http://twitter.com/statuses/user_timeline/filebot_renamer.rss" />
<title>FileBot - The ultimate tv renamer / subtitle downloader / sfv validator</title>
<meta name="description=" content="FileBot is the ultimate tool for renaming your tv shows and downloading subtitles. It's streamlined for simplicity and it just works. FileBot supports Windows, Linux and Mac, plus there's a full-featured command-line interface for all sorts of automation." />
<link rel="stylesheet" href="base.css" type="text/css" />
<link rel="icon" href="favicon.png" />

View File

@ -2,9 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Product">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="rename tv series, rename episode, rename movie, download subtitles, file verification, check sfv md5 sha1" />
<meta name="keywords" content="rename tv series, rename tv episodes with info from TVRage or AniDB or TheTVDB, rename movies, download subtitles from OpenSubtitles or Sublight, check sfv or md5 or sha1 files, command-line, Windows, Linux, Mac OSX" />
<title>Episode Format Expression</title>
<meta name="description=" content="Define your own naming scheme and customize it to your liking. FileBot format expressions give you ultimate control over how FileBot will rename and move your media files. Anything is possible." />
<link rel="stylesheet" href="base.css" type="text/css" />
<link rel="stylesheet" href="code.css" type="text/css" />
<link rel="icon" href="favicon.png" />

View File

@ -2,9 +2,11 @@
<html xmlns="http://www.w3.org/1999/xhtml" itemscope itemtype="http://schema.org/Product">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="keywords" content="rename tv series, rename episode, rename movie, download subtitles, file verification, check sfv md5 sha1" />
<meta name="keywords" content="rename tv series, rename tv episodes with info from TVRage or AniDB or TheTVDB, rename movies, download subtitles from OpenSubtitles or Sublight, check sfv or md5 or sha1 files, command-line, Windows, Linux, Mac OSX" />
<title>Scripts and Automation</title>
<meta name="description=" content="FileBot scripting allows to easily write scripts for any kind of automation in Groovy. There is no limits. Extract archives, download subtitles, rename episodes, fetch artwork and banners and delete left-behind clutter. All in one go." />
<link rel="stylesheet" href="base.css" type="text/css" />
<link rel="stylesheet" href="code.css" type="text/css" />
<link rel="icon" href="favicon.png" />

51
website/sitemap.xml Normal file
View File

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sitemaps.org/schemas/sitemap/0.9 http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">
<url>
<loc>http://filebot.sourceforge.net/</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/naming.html</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/cli.html</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/script.html</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=3&t=7</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=3&t=7</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=7&t=25</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=3&t=13</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=5&t=2</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/forums/viewtopic.php?f=4&t=5</loc>
<changefreq>weekly</changefreq>
</url>
<url>
<loc>http://filebot.sourceforge.net/data/shell/</loc>
<changefreq>weekly</changefreq>
</url>
</urlset>