POSTBUCKET - where random posts in unrelated topics go
Re: Automated Media Center
Re: Automated Media Center
Re: Automated Media Center
Tnx, the series format works like a charm!rednoah wrote:1. Very easy:1.1. A bit more complicated if you take multi-episode files into consideration as well:Code: Select all
{s.pad(2)}x{e.pad(2)}2. If there's only one movie file, {pi} will be undefined and unwind the whole {...} block. That's the difference between {" CD$pi"} and CD{pi} and if you use my examples it covers all these common cases.Code: Select all
{s.pad(2)}x{es.collect{ it.pad(2) }.join('-')}
But for the movie I can't figure out how to make it works, I can't find your examples. It's on this 3d?
J
Re: Automated Media Center
Maybe you mean this?
http://www.filebot.net/forums/viewtopic.php?f=5&t=806
Re: Automated Media Center
Btw, this's my actual movieformat
Film/{n} ({y}){\" Cd$pi\"}
So, I've one directory for all my movies.
My goal is, let assume that I've the film RED
So if I've one single file the name must be RED.avi
Else if I've 2 or more files the name must be RED - CD1.avi RED - CD2.avi ...
But I can't figure out how to do that
Re: Automated Media Center
2. Work perfectly:
Code: Select all
...
Parameter: movieFormat = Film/{n} ({y}){" Cd$pi"}
Input: D:\testdata\AMC-TEST\Green Snake.mp4
Input: D:\testdata\AMC-TEST\Red Cliff A.mp4
Input: D:\testdata\AMC-TEST\Red Cliff B.mp4
Green Snake.mp4 [series: null, movie: Green Snake (1993)]
Red Cliff A.mp4 [series: null, movie: Red Cliff (2008)]
Red Cliff B.mp4 [series: null, movie: Red Cliff (2008)]
Group: [tvs:null, mov:Green Snake (1993), anime:null] => [Green Snake.mp4]
Group: [tvs:null, mov:Red Cliff (2008), anime:null] => [Red Cliff A.mp4, Red Cliff B.mp4]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\testdata\AMC-TEST\Green Snake.mp4]
[COPY] Rename [D:\testdata\AMC-TEST\Green Snake.mp4] to [D:\output\Film\Green Snake (1993).mp4]
Processed 1 files
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\testdata\AMC-TEST\Red Cliff A.mp4]
Auto-detect movie from context: [D:\testdata\AMC-TEST\Red Cliff B.mp4]
[COPY] Rename [D:\testdata\AMC-TEST\Red Cliff A.mp4] to [D:\output\Film\Red Cliff (2008) Cd1.mp4]
[COPY] Rename [D:\testdata\AMC-TEST\Red Cliff B.mp4] to [D:\output\Film\Red Cliff (2008) Cd2.mp4]
...Re: Automated Media Center
I think that the problem is the double quotes, you said that must be escaped with \
so my movieformat is
movieFormat=Film/{n} ({y}){\" Cd$pi\"}
and the log is
Code: Select all
Parameter: seriesFormat = Serie Tv/{n}/{n} - {s.pad(2)}x{es.collect{ it.pad(2) }.join('-')} - {t}
Parameter: movieFormat = Film/{n} ({y}){" Cd"}
Argument: /home/jorman/Scrivania/da
Input: /home/jorman/Scrivania/da/red.avi
red.avi [series: Hong Ling Jin Xia, movie: Red (2010)]
Exclude Series: Hong Ling Jin Xia
Group: [tvs:null, mov:Red (2010), anime:null] => [red.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/home/jorman/Scrivania/da/red.avi]
[MOVE] Rename [/home/jorman/Scrivania/da/red.avi] to [/home/jorman/Scrivania/a/Film/Red (2010) Cd.avi]
Code: Select all
filebot -script fn:amc "$check_dir/" --output "$dest_dir" --action move --conflict override -non-strict --def music=n --log-file amc.log --def artwork=n --def "seriesFormat=Serie Tv/{n}/{n} - {s.pad(2)}x{es.collect{ it.pad(2) }.join('-')} - {t}" "movieFormat=Film/{n} ({y}){\" Cd$pi\"}" --lang itRe: Automated Media Center
Code: Select all
Parameter: movieFormat = Film/{n} ({y}){" Cd"}Re: Automated Media Center
Re: Automated Media Center
Re: Automated Media Center
Looks like need to set it to run a .bat file
Re: Automated Media Center
Re: Automated Media Center
Code: Select all
#!/bin/bash
filebot -script fn:amc --output "/media/" --log-file amc.log --action copy --conflict override -non-strict --def clean=y artwork=y "seriesFormat=HDD1/TV/{n}/{'S'+s}/{fn}" "movieFormat=HDD2/{n} ({y})/{n} ({y})" "musicFormat=HDD1/Music/{n}/{fn}" "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME"
Code: Select all
Parameter: clean = y
Parameter: artwork = y
Parameter: seriesFormat = HDD1/TV/{n}/{'S'+s}/{fn}
Parameter: movieFormat = HDD2/{n} ({y})/{n} ({y})
Parameter: musicFormat = HDD1/Music/{n}/{fn}
Parameter: ut_dir = /media/HDD2/DOWNLOADS/INCOMPLETE/The Gruffalo 2009 DVDRip
Parameter: ut_kind = multi
Parameter: ut_title = The Gruffalo 2009 DVDRip
Done ヾ(@⌒ー⌒@)ノ
My problem is that ut_title is populated by the variable $TR_TORRENT_NAME which is passed by transmission WITHOUT file extension. Is there any way around this?
I've tried looking for clues in https://trac.transmissionbt.com/wiki/Scripts but it would seem that there's no variable assigned by Transmission with the file extension type. I thought of modifying the script by searching for the file extension type first using something like
Code: Select all
echo "The Gruffalo 2009 DVDRip."* |awk -F . '{print $NF}'
Re: Automated Media Center
When I look at the log output it seems like FileBot can't find any files in the folder that is passed in:
Code: Select all
/media/HDD2/DOWNLOADS/INCOMPLETE/The Gruffalo 2009 DVDRipFor multi torrent files this should be the folder path. And for single files the exact path to the file.
Code: Select all
$TR_TORRENT_DIR/$TR_TORRENT_NAMERe: Automated Media Center
Tnx I'll tryrednoah wrote:This is what gets passed into to FileBot:Your shell is messing with the $name variables. You'll probably need to escape the \$ as well as the \"Code: Select all
Parameter: movieFormat = Film/{n} ({y}){" Cd"}
-
istvanszucs
- Posts: 3
- Joined: 31 Jul 2013, 16:25
Re: How about sharing our format expressions?
I want to do something very simple. I want filebot to download subtitles in Hungarian for all movies in the current directory, and name it the same as the file name of the movie. My problem is that by default it seems to add the three letter language identifier to the file name. How can I prevent this. I need an exact match to the file name.
Thanks,
Istvan
Re: How about sharing our format expressions?
1. Go to Rename panel
2. Drop subtitle files into the left list
3. Drop video files into the right list
4. Hit Rename!
PS: Completely wrong thread...
-
istvanszucs
- Posts: 3
- Joined: 31 Jul 2013, 16:25
Re: How about sharing our format expressions?
I have a command line interface.rednoah wrote:0. Download subtitles
1. Go to Rename panel
2. Drop subtitle files into the left list
3. Drop video files into the right list
4. Hit Rename!
PS: Completely wrong thread...
Re: POSTBUCKET - where random posts in unrelated topics go
Here's a filebot script for that:
http://www.filebot.net/forums/viewtopic ... &t=5#p2100
-
istvanszucs
- Posts: 3
- Joined: 31 Jul 2013, 16:25
Re: POSTBUCKET - where random posts in unrelated topics go
So I have to get it and rename it. I can't get it with the right name straight off.rednoah wrote:At this point it's most basic batch renaming. Any tool will do.
Here's a filebot script for that:
http://www.filebot.net/forums/viewtopic ... &t=5#p2100
Re: Automated Media Center
I found a little problem with "this settings", and I don't know how to resolve itChryses wrote:Tnx I'll tryrednoah wrote:This is what gets passed into to FileBot:Your shell is messing with the $name variables. You'll probably need to escape the \$ as well as the \"Code: Select all
Parameter: movieFormat = Film/{n} ({y}){" Cd"}
I've a script that launch filebot every time a movie file is created, but when I download a multi cd, the script make mistake!
Code: Select all
Parameter: movieFormat = Film/{n} ({y}){" Cd$pi"}Code: Select all
Input: /media/TwoTera/Download/vari/red cd1.avi
red cd1.avi [series: Hong Ling Jin Xia, movie: Red (2010)]
Exclude Series: Hong Ling Jin Xia
Group: [tvs:null, mov:Red (2010), anime:null] => [red cd1.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/TwoTera/Download/vari/red cd1.avi]
[MOVE] Rename [/media/TwoTera/Download/vari/red cd1.avi] to [/media/TwoTera/Multimedia/Film/Red (2010).avi]
Any chance that if, at the end of the filename it found cd1 etc etc, keep this information?
Re: POSTBUCKET - where random posts in unrelated topics go
Like this:
Code: Select all
{' CD'+pi}Re: POSTBUCKET - where random posts in unrelated topics go
Btw, not working
Code: Select all
Parameter: movieFormat = Film/{n} ({y}){' CD'+pi}Code: Select all
[MOVE] Rename [/media/TwoTera/Download/vari/red cd1.avi] to [/media/TwoTera/Multimedia/Film/Red (2010).avi]
Re: POSTBUCKET - where random posts in unrelated topics go
@see http://www.filebot.net/forums/viewtopic ... =806#p5169
Re: POSTBUCKET - where random posts in unrelated topics go
Do you have any ideas to do that?
I mean imagine this scenario:
one cron job configured to launch filebot and watch one directory. So ther's a possibility that a file is composed of several parts, so cd1 is available before cd2. If, in this period of time, the script parse the folder, the "problem" is created.
Any genial idea?
Re: POSTBUCKET - where random posts in unrelated topics go
You can do the Parse CD<i> from filename via fn.match() approach and hope that the multi-part movies are well-named with CD1 CD2 etc
Both solutions have pros/cons as described in the page above.
Re: POSTBUCKET - where random posts in unrelated topics go
Code: Select all
movieFormat=Film/{n} ({y}){' - '+fn.match(/(?i)cd+[0-9]/).toUpperCase()}{fn.match(/(?i)part +[0-9]of[0-9]/).toLowerCase()}Re: POSTBUCKET - where random posts in unrelated topics go
Code: Select all
{'Avatar Part 1of2'.match(/part\s*[0-9]of[0-9]/)}In the end I'd come up with something like this. Convert Part 1of2 to CD1
Code: Select all
{'CD'+fn.match(/part\s*(\d)of(\d)/)}Re: POSTBUCKET - where random posts in unrelated topics go
- ashfallen0
- Power User
- Posts: 32
- Joined: 14 Jan 2012, 10:44
Re: How about sharing our format expressions?
Here's my current TV expression:
Code: Select all
/home/user/tv/{n.replace(':',' -').replaceAll(/[?]/, '')}/{n.replace(':',' -').replaceAll(/[?]/, '')} - {episode.special ? 'S00E'+special.pad(2) : s00e00} - {t.replace(':',' -').replaceAll(/[?]/, '')} {[hpi]}{'['+resolution} {' '+vc}{'-'+ac+']'}Code: Select all
/home/user/anime/{(primaryTitle ?: n).replace(':',' -').replaceAll(/[?]/, '')}/{(primaryTitle ?: n).replace(':',' -').replaceAll(/[?]/, '')} - {episode.special ? "S"+special.pad(2) : absolute.pad(3)} - {t.replace(':',' -').replaceAll(/[?]/, '')} {[hpi]}{'['+resolution} {' '+vc}{'-'+ac+']'}
PHPBB3 hates me.Re: [SNIPPET] Put the "The" at the end
I tried it but it always results in filenames like " , .mkv"
my format string looks like this
Code: Select all
"/mnt/samba/movies/{n} ({y})/{n.replaceFirst(/^(?i)(The|A)\s(.+)/, /$2, $1/).space('.')}.({y}).{vf}"thanks
Faba
Re: [SNIPPET] Put the "The" at the end
But I guess you didn't think of escaping the $-sign so bash is resolving $1 and $2 to empty strings and not passing in the literal value of "$1" or "$2".
I don't see a reason why {y} wouldn't have a value. With {vf} u may wanna make sure libmediainfo is working correctly.
Re: [SNIPPET] Put the "The" at the end
so the results is actually " , (2007).720p.mkv".
I escaped the $ sign and now i is working like expected
Thanks!
Re: POSTBUCKET - where random posts in unrelated topics go
Code: Select all
filebot -script fn:amc --output "/media/WD1TB/Videos" --action copy --conflict override -non-strict --def artwork=n "seriesFormat=TV/{n}/Season {s.pad(2)}/{s00e00} - {t}" "movieFormat=Movies/{n} ({y}) {vf} {af}" "ut_dir=$TR_TORRENT_DIR/$TR_TORRENT_NAME" "ut_kind=multi" "ut_title=$TR_TORRENT_NAME" &> /etc/transmission-daemon/logCode: Select all
Parameter: artwork = n
Parameter: seriesFormat = TV/{n}/Season {s.pad(2)}/{s00e00} - {t}
Parameter: movieFormat = Movies/{n} ({y}) {vf} {af}
Parameter: ut_dir = /mnt/Downloads/My.Favourite.Linux.ISO.S01E01.PREAIR.DVDRip.XviD-CRX.avi
Parameter: ut_kind = multi
Parameter: ut_title = My.Favourite.Linux.ISO.S01E01.PREAIR.DVDRip.XviD-CRX.avi
Exception: Conflicting arguments: pass in either file arguments or ut_dir/ut_file parameters but not both
Failure (°_°)
In any case, to my mind, the error message doesn't seem to be describing what's going wrong. Any ideas?
Re: [CODE] Examples and Snippets
Re: [CODE] Examples and Snippets
Re: [DOCS] Exclude Blacklist & Series-Mappings
Code: Select all
Deleted.and.Extended.Scenes
Deleted.ScenesRe: [DOCS] Exclude Blacklist & Series-Mappings
I am trying to rename a "Law & Order SVU" episode (with the CLI), but Filebot ends up using the "Law & Order" episode info.
Re: [DOCS] Exclude Blacklist & Series-Mappings
But since Law & Order SVU since it does get the series options the lists here won't help. Check into --q and --filter cmdline options.
Re: Exclude Blacklist & Series-Mappings
Code: Select all
(?<=\b|_)(NCED|NCOP|(OP|ED)\p{Digit}\p{Alpha})(?=\b|_])Re: Thank You So Very Much & Happy Holidays
Re: Thank You So Very Much & Happy Holidays
More info can be found here: http://www.filebot.net/forums/viewtopic ... ilit=group
Re: [MANUAL] Configure OpenSubtitles and Sublight login
Figured it was probably worth the limit just so that I had the extra quota to play around with when testing this http://www.filebot.net/forums/viewtopic.php?f=3&t=1222
Their forums say non vip is limited to 200, but you're right - it's all over the place.
Not Logged In: Smallest Quota (seemed to be closer to 100, also seems to be more drop out prone)
Logged In As Free User: Moderate Quota (more reliable, but still iffy quota of about 200-300 depending on what you requested)
High Quota: VIP User @ 10 Euro / Year (large enough quota that it shouldn't ever really be an issue)
Edit: Just checked, and it was actually over 5000 subtitles I downloaded in the short window after upgrading to VIP >.<
Re: [MANUAL] Configure OpenSubtitles and Sublight login
Code: Select all
filebot -script osdb.statsRe: Exclude Blacklist & Series-Mappings
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Edit: Just realized that there's already a filter in the blacklist that should ignore this, but that doesn't seem to be working. I can't tell why, but removing that part from the folder name always works...
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Code: Select all
www[.][\w-.]+[.](com|net|tk|ro|cd|me|de)Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Yeah, I saw that after I posted. Really weird. Here is every instance I can find from the last week or so. In some cases it matches correctly, sometimes not:rednoah wrote:This will catch it:Give me the whole path and I'll have a look which token is messing with it.Code: Select all
www[.][\w-.]+[.](com|net|tk|ro|cd|me|de)
Code: Select all
Rename episodes using [TheTVDB]
Auto-detected query: [www, Top Chef, www Torrenting com Top Chef]
Fetching episode data for [Christopher Hitchens]
Fetching episode data for [Top Chef]
Fetching episode data for [Top Chef Suomi]
Fetching episode data for [Top Chef Canada]
Fetching episode data for [Top Chef France]
Fetching episode data for [Top Chef España]
[MOVE] Rename [C:\Users\User\Downloads\TV\www.Torrenting.com - Top.Chef.S11E12.HDTV.x264-PLAYNOW\Top.Chef.S11E12.HDTV.x264-PLAYNOW.mp4] to [C:\Users\User\TV\Top Chef\Season 11\Top Chef - 11x12 - Mississippi Mud Bugs.mp4]Code: Select all
Rename episodes using [TheTVDB]
Auto-detected query: [www]
Fetching episode data for [Christopher Hitchens]
Stripping invalid characters from new path: C:/Users/User/TV/Christopher Hitchens/Season 0/Christopher Hitchens - 0x02 - Debate: Frank Turek
[MOVE] Rename [C:\Users\User\Downloads\TV\www.Torrenting.com - Saturday.Night.Live.S39.Special.Best.of.this.Season.HDTV.x264-2HD\saturday.night.live.s39.special.best.of.this.season.hdtv.x264-2hd.mp4] to [C:\Users\User\TV\Christopher Hitchens\Season 0\Christopher Hitchens - 0x02 - Debate Frank Turek.mp4]Code: Select all
Rename episodes using [TheTVDB]
Auto-detected query: [www, www Torrenting com Pretty Little Liars]
Fetching episode data for [Christopher Hitchens]
Stripping invalid characters from new path: C:/Users/User/TV/Christopher Hitchens/Season 0/Christopher Hitchens - 0x05 - Debate: The Three New Commandments
[MOVE] Rename [C:\Users\User\Downloads\TV\www.Torrenting.com - Pretty.Little.Liars.S04E14.HDTV.x264-LOL\pretty.little.liars.414.hdtv-lol.mp4] to [C:\Users\User\TV\Christopher Hitchens\Season 0\Christopher Hitchens - 0x05 - Debate The Three New Commandments.mp4]Code: Select all
Rename episodes using [TheTVDB]
Auto-detected query: [www, brooklyn nine nine, www Torrenting com Brooklyn Nine Nine]
Fetching episode data for [Christopher Hitchens]
Fetching episode data for [Brooklyn Nine-Nine]
[MOVE] Rename [C:\Users\User\Downloads\TV\www.Torrenting.com - Brooklyn.Nine.Nine.S01E12.HDTV.x264-2HD\brooklyn.nine.nine.s01e12.hdtv.x264-2hd.mp4] to [C:\Users\User\TV\Brooklyn Nine-Nine\Season 1\Brooklyn Nine-Nine - 1x12 - Pontiac Bandit.mp4]Re: Add Blacklisted Terms and Improve Movie / Series Detecti
There's an anime names:[つまつま 人妻×人妻, WWW, Wife with Wife] which allows WWW to be part of the query, and it gets matched to names:[Christopher Hitchens, www.raydragon.com Presents...]
Try one of the latest revisions though. It works just fine despite those misleading query options.
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
*types it into Google*
... um, so.. yeah, in retrospect, that's exactly the kind of anime you'd expect a show called 'Wife with Wife' to be.
FYI: A josei anime it is not - NSFW :-/
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
That's... really interesting. What do you mean by latest revisions, though?rednoah wrote:Haha, this one is really bad luck!
There's an anime names:[つまつま 人妻×人妻, WWW, Wife with Wife] which allows WWW to be part of the query, and it gets matched to names:[Christopher Hitchens, www.raydragon.com Presents...]Maybe shitty data in the IMDb when that one was scraped.
Try one of the latest revisions though. It works just fine despite those misleading query options.
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Ah, I see. Didn't realize you were talking about the jar as opposed to the whole package. Thanks!rednoah wrote:FAQ -> Last Q
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
If you're running Windows, you can download/run this script that will download and swap out the jar file for you automatically:
http://www.filebot.net/forums/viewtopic.php?f=4&t=1225
Re: Automated Media Center
I want to use AMC script, but I also want to re-encode the downloaded subtitles to UTF8 (or other encoding). Is there a way to do it directly using AMC or i should modify it.
Thanks.
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
When i investigated this, I installed Aegisub and when i open some subtitle files it says "x-mac-cyrillic is not a supported character set". When i use open with "Open Subtitle with Charset" and choose "Windows 1256" Charset, the file works and then i can export it as .srt with the right Charset.
I was looking for a way to automate this part and re-encode all subtitles after downloading them. As you confirmed, currently AMC is rencoding to UTF-8, so i guess i want to re-encode to Windows-1256 instead.
Somehow, XBMC does not require that, i'm not sure why. I'm about to submit this issue to Plex as well in case they can add a fix.
Thanks,
TM
Re: POSTBUCKET - where random posts in unrelated topics go
Re: [CODE] Examples and Snippets
Code: Select all
cmd /c filebot -get-subtitles "%1" -non-strict --lang en --log-file context.log && filebot -get-subtitles "%1" -non-strict --lang da --log-file context.logYou can also read more about using multiple commands and conditional processing symbols in the official Microsoft documentation.
Re: [MANUAL] Configure OpenSubtitles and Sublight login
Code: Select all
>filebot -script fn:osdb.loginCode: Select all
>Enter OpenSubtitles username: XX
Enter OpenSubtitles password: XX
Testing OpenSubtitles... OK
Done ?(?????)?Code: Select all
>filebot -script osdb.statsCode: Select all
FileNotFoundException: osdb.stats
java.io.FileNotFoundException: osdb.stats
at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.g
etScriptLocation(ArgumentProcessor.java:195)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcess
or.java:106)
at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (░_░)
Launch4j: Failed to run the given command.
O sistema nπo pode encontrar o arquivo especificado.Re: [MANUAL] Configure OpenSubtitles and Sublight login
Re: [SNIPPET] Sort into A-Z folders
I have tried to modify this with sort to drives but with no success
I currently have The one with sort to drives set up but if I ever need to change paths I have to change them alll here it is just one.
Hope you understand what i mean
Re: Looking for testers on Synology NAS
Still failing to get FileBot to run on my ReadyNAS, I'm not 100% sure of all its features. When I first came to this site I was looking for a program that did a few things that I've now had to resort to several different programs to work out. I'll go through my workflow:rednoah wrote: * What do you think it should like like?
* What use-cases do you have? What workflow do you think would make sense?
* What features should be supported?
1a Movies downloads via Couchpotato
1b Movies are unrared and sorted via Couchpotato
(It's a good setup that doesn't need fixing.)
2a TV shows are downloaded via FlexGet
2b TV shows are unrared and moved to a "finished folder" once every day via pyexpand, this will unrar all folders in my download folder, no matter if it's been done on a previous day or not. TV shows that aren't rar:ed will fail to go to the next step because of a lack of copy-support in pyexpand, and I've found no other scripts that can do both.
2c Sickbeard renames and sorts the files in the finished folder.
Both FlexGet and Couchpotato uses Transmission for the downloads, and puts the downloads in seperate folders to make sure their scripts don't interfere with each other.
So as you can see, my step 2b really needs refinement, and that's what I hope can be found with FileBot, and since I don't use Sickbeard for its webui database of TV shows, only for its renamer, it would replace step 2c as well.
Unless you will be working on my 1a and 2a steps, those are the basic needs I have.
Re: Exclude Blacklist & Series-Mappings
-
JFMillerUSA
- Posts: 3
- Joined: 03 Apr 2014, 06:17
Re: [SNIPPET] Put the "The" at the end
Code: Select all
IF %1==11 (
IF /I %2==Television ("C:\Program Files\FileBot\filebot.exe" -rename %3 --db thetvdb --action move --conflict override -non-strict --output C:\Users\Jeremy\Videos\Television --format {n}\{n}.{s00e00}.{t})
IF /I %2==OldMovie ("C:\Program Files\FileBot\filebot.exe" -rename %3 --db imdb --action move --conflict override -non-strict --output "C:\Users\Jeremy\Videos\Old Movies" --format {n.replaceFirst^(/^^(?i^)^(The^)\s^(.+^)/, /$2, $1/^)[0]}\{n} ^({y}^){" CD$pi"})
PAUSE
)
PAUSE%2 is Label
%3 is Directory of torrent
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
thanks in advance
Re: Fetch all subtitles
rednoah wrote: Fetch subtitles for all folders:Options:Code: Select all
filebot -script fn:suball /path/to/media
--def maxAgeDays=7 set a max-age for files that will be processed, older files will be ignored
View Script:
https://github.com/filebot/scripts/blob ... all.groovy
Hi rednoah,
this script isn't working for me...
For some reason it thinks all the .mkv files I've tried it with already have subs, even the ones that neither MediaInfo, openelec or VLC can find any for.
I won't try to speculate why since I have no idea how getMediaInfo(file:f, format:'''{media.TextCodecList}''').isEmpty() works...
I've also tried to edit and run the script locally in order to rule out that it is the maxAgeDays part that is excluding the subs to be downloaded. Same result, see below.
Tried to find documentation on getMediaInfo and its parameters but with no luck.
Local code:
Code: Select all
// filebot -script fn:suball <options> <folder>
def lastModifiedLimit = tryQuietly{ System.currentTimeMillis() - (maxAgeDays.toLong() * 24 * 60 * 60 * 1000) }
def young = { f ->
// ignore files that are too old
if (lastModifiedLimit != null && f.lastModified() < lastModifiedLimit)
return false
return true
}
def unsubbed = { f ->
// ignore files that already have subtitles
if (getMediaInfo(file:f, format:'''{media.TextCodecList}''').isEmpty())
return false
return true
}
/*
* Get subtitles for all your media files
*/
args.eachMediaFolder {
def videos = it.listFiles{ it.isVideo() }
// ignore videos that are too old or already have embedded subtitles
videos = videos.findAll{
if (!young(it)) {
_log.finest "Too OLD: " + it.getName()
return false
}
if (!unsubbed(it)) {
_log.finest "Already SUBBED: " + it.getName()
return false
}
return true
}
getMissingSubtitles(file:videos)
}Code: Select all
C:\Program Files\FileBot>filebot -script "C:\Program Files\FileBot\suball.groovy
" "T:\TVserier\Xxxx\Season 01"
Already SUBBED: Xxxx - 1x01 - Pilot.mkv
Already SUBBED: Xxxx - 1x02 - Title02.mkv
...
Already SUBBED: Xxxx - 1x13 - Title13.mkv
No missing subtitles
Done ?(?????)?
C:\Program Files\FileBot>pause
Press any key to continue . . ./Hematot
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
I wasn't clear on the fact that some, but only some, of the .mkv's are missing embedded subs.
Re: POSTBUCKET - where random posts in unrelated topics go
Code: Select all
C:\testdata>filebot -script fn:suball .
Exclude: C:\testdata\evangelion 1.11 480p dual audio w-soft subs.mkv
Exclude: C:\testdata\Lawrence of Arabia (1962).mkv
Get [English] subtitles for 1 files
Looking up subtitles by filehash via OpenSubtitles
Matched [Revolution - S02E18 - Austin City Limits.mkv] to [Revolution.2012.S02E18.HDTV.x264-LOL] via filehash
Fetching [Revolution.2012.S02E18.HDTV.x264-LOL.srt]
Writing [Revolution.2012.S02E18.HDTV.x264-LOL.srt] to [Revolution - S02E18 - Austin City Limits.eng.srt]Re: POSTBUCKET - where random posts in unrelated topics go
Running the script via fn:suball which I believe always points to your current script?
If it's to any help, here's what MediaInfo reports for one of them:
Code: Select all
General
Unique ID : xxx (0xyyy)
Complete name : zzz
Format : Matroska
Format version : Version 2
File size : 995 MiB
Duration : 47mn 3s
Overall bit rate : 2 957 Kbps
Encoded date : UTC 2013-05-01 16:54:35
Writing application : mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Apr 19 2010 11:58:49
Writing library : libebml v0.7.7 + libmatroska v0.8.1
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 47mn 3s
Bit rate : 2 450 Kbps
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.111
Stream size : 825 MiB (83%)
Writing library : x264 core 130 r2273 b3065e6
Encoding settings : cabac=1 / ref=9 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=14 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language : English
Default : No
Forced : No
Matrix coefficients : BT.709
Audio
ID : 2
Format : AC-3
Format/Info : Audio Coding 3
Mode extension : CM (complete main)
Format settings, Endianness : Big
Codec ID : A_AC3
Duration : 47mn 3s
Bit rate mode : Constant
Bit rate : 448 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Bit depth : 16 bits
Compression mode : Lossy
Stream size : 151 MiB (15%)
Default : Yes
Forced : No
Rock on! /Hematot
Re: POSTBUCKET - where random posts in unrelated topics go
Have you tried checking from FileBot? Edit Format -> Variables (icon only) -> Select file and click table:
http://snag.gy/j3DwR.jpg
Also the fn:name always uses the latest, but only updates once a day, so you might wanna try doing -clear-cache once if I've updated the script less than a day before.
Re: POSTBUCKET - where random posts in unrelated topics go
So I cleared the cache and ran the script again and just as expected ALL files was identified as NOT having any subtitles.
The reversing of the logical test came through but the getMediaInfo function failed to discriminate between the videos with and without embedded subtitles as before.
It took a while to find the media info function in FileBot, even with your instruction (you've hidden that function quite well!), but after trying to run it an explanation of why getMediaInfo doesn't work might have presented itself!
The result after pressing the table button was an error message saying:
Unable to load 32-bit native library 'mediainfo'
Looking in C:\Program Files\FileBot there's a 'MediaInfo.dll'.
I've just recently installed 4.0 over whatever previous version I had (3.x).
filebot -version gives 'FileBot 4.0 (r2056) / Java(TM) SE Runtime Environment 1.7.0_51'
/H
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
Don't understand why FileBot worked at all though...
Thanks! /H
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
It downloads new ones and call them xxx.eng.srt.
Have I fiddled with some setting that I've forgot about?
/H
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
Suball hasn't changed either from what I can tell... (except the fix you did on sunday)
Sorry, I don't understand; latest revision of what?
/H
Re: POSTBUCKET - where random posts in unrelated topics go
Re: POSTBUCKET - where random posts in unrelated topics go
That did the trick.
/H
Re: Exclude Blacklist & Series-Mappings
*.!sync
They are from BitTotrrent Sync while syncing and renamed by BTSync when finished.
I'm not a regexp guru but it may look like this :
(\.!sync)+$
Thx
Re: Exclude Blacklist & Series-Mappings
Re: Exclude Blacklist & Series-Mappings
I didn't know that only video extensions were seen by filebot.
Here is a complete path of a .!sync file :
/data/download/NCIS.S11E01.Whiskey.Tango.Foxtrot.1080p.WEB-DL.DD5.1.H.264-CtrlHD.!sync
and that file becomes
/data/downloads/NCIS.S11E01.Whiskey.Tango.Foxtrot.1080p.WEB-DL.DD5.1.H.264-CtrlHD.mkv
when BitTorrent Sync finishes download.
I would like filebot to rename and move all .mkv files from /data/downloads/ to their final destination like that :
/data/TVShow/NCIS/NCIS - 11x01 - Whiskey Tango Foxtrot.mkv
but I don't want filebot to try rename and move .!syc files.
It's ok, just forget about my first request, filebot already works like I want.
Thank you for you amazing work.
Re: [MANUAL] Set OpenSubtitles Account
By running:
Code: Select all
filebot -script osdb.statsCode: Select all
FileNotFoundException: osdb.stats
java.io.FileNotFoundException: osdb.stats
at net.sourceforge.filebot.cli.ArgumentProcessor$DefaultScriptProvider.getScriptLocation(ArgumentProcessor.java:
195)
at net.sourceforge.filebot.cli.ArgumentProcessor.process(ArgumentProcessor.java:106)
at net.sourceforge.filebot.Main.main(Main.java:192)
Failure (░_░)
Launch4j: Failed to run the given command.Re: [MANUAL] Set OpenSubtitles Account
Code: Select all
filebot -script fn:osdb.stats-
Morgenstern72
- Donor
- Posts: 43
- Joined: 09 May 2014, 18:57
Re: How about sharing our format expressions?
Code: Select all
../{primarytitle}{' ('+net.filebot.WebServices.IMDb.scrape(imdbid, '''//SPAN[@class='title-extra']''').match('"(.+)"')+')'} ({y}){' ['+fn.replaceAll(/(?i)directors|theatrical|ultimate/,'$0 Cut').matchAll(/UNRATED|REMASTERED|EXTENDED|UNCUT|DIRECTORS.CUT|THEATRICAL.CUT|ULTIMATE.CUT|SPECIAL.EDITION/).join('][').upperInitial().lowerTrail()+']'} [{vf}] [{ac}{fn.match("-HD.MA.")+af}]/{primarytitle} ({y}) {vc}{" (CD$pi)"}{' '+lang}Code: Select all
../{primarytitle}{' ('+net.sourceforge.filebot.WebServices.....Ilike to have the original titles of movies, so I use the special scraper. I also like to have extended info like special editions, resolution and audio quality to search for.
Examples
Folder: EnglishTitle (2013) [1080p] [DTS-HD.MA.6ch]
Movie: EnglishTitle (2013) x264.mkv
Folder: EnglishTitle (OriginalTitle) (1998) [576p] [AC3]
Movie: EnglishTitle (1998) XviD.avi
Folder: EnglishTitle (2001) [Extended] [1080p] [AC3]
Movie: EnglishTitle (2001) XviD
Episodes (FB 4.1)
Code: Select all
../{n}{' ("'+net.filebot.WebServices.IMDb.scrape(imdbid, '''//SPAN[@class='title-extra']''').match('"(.+)"')+'")'} ({y})/{"Season ${s.pad(2)}"}/{n} {s00e00} {t} [{vf}]{' '+lang}Code: Select all
../{n}{' ("'+net.sourceforge.filebot.WebServices...Example
Folder: EnglishTitle\Season 1
Show: EnglishTitle.S01E01.ShowTitle.mkv
-
Pitbull_Raven
- Posts: 7
- Joined: 08 Jun 2014, 20:18
Re: Automated Media Center
Dude... I just found filebot and must say it's amazeballs! This script works. The only gripe I have with this is that it seems to be duplicating my files. I.e. it's downloading to the download folder, then copies the files and renames according to the rules set forth in script. But it also keeps the original file (I guess until ratio is reached?). Is there any way to get utorrent to "relocate" the file instead, leaving it to seed once relocated and renamed to correct folder?rednoah wrote:Overview:
Here's a script that you can use with µTorrent as "Run program when torrent finishes" command to automatically sort out your downloads. It'll fully automatically organize newly downloaded TV shows and movies and is smart enough to detect what is what.
Re: How about sharing our format expressions?
Re: Media Index CSV
rednoah wrote:Description:Usage:
- Write media info of all video files in the given folder and subfolders to an easily readable CSV file (e.g. open in Excel)
Download Script:Code: Select all
filebot -script fn:mi /path/to/media/ "MediaIndex.csv"
http://filebot.net/scripts/mi.groovy
thanks in advance!!
Seb
Re: POSTBUCKET - where random posts in unrelated topics go
Re: Exclude Blacklist & Series-Mappings
tvs-poi = Person of Interest:
poid 1080p S03E13
&
tvs-poi-dd51-ded-dl-18p-ithd-avc-313
Season 03 Episode 13
Arrow ( TVDB ID: 257655 )
tvp-arrow-s02e11-1080p
&
tvs-arrow-dd51-ded-dl-18p-ithd-avc-211
Season 02 Episode 11
Marvel's Agents of S.H.I.E.L.D. ( TVDB ID: 263365 ):
tvp-shield-sXXeXX-1080p
&
tvs-agents of shield-dd51-ded-dl-18p-ithd-avc-122
Season 01 Episode 22
THX
Re: Exclude Blacklist & Series-Mappings
EDIT: Fixed with r2286
Re: Exclude Blacklist & Series-Mappings
i edit my previous post - these 2 releases ( TVP and TVS ) are the most used in German ( maybe with 720 instead of 1080 )
i hope u can work with it
Thx again for the great work
Re: How about sharing your CLI scripts?
I'm new to filebot and to scripts. I have a massive media library and I'm learning a lot of information trying to make a big job easier on myself.
I've managed to get the following script running well on my system:
call filebot -script fn:amc "T:\Unorganised" --output "T:/Organised" --action move --conflict override -non-strict --def music=y subtitles=en artwork=y
This successfully takes the media in the first directory, renames it, moves it into the new directory organised by show/season or movie or Artist/Album and so on. It's really great. Massive time saver so far.
I need a little help though, messing around and learning how this works I "tested"with a bunch of files. Now I'm ready to take it live and organise my library I have an issue. Any files that have been through the organisation script previously seem to be omitted. It leaves a number of files behind I have to sort manually which is a little annoying.
There's two ideas I have but I don't know how to do either; 1. Write into the script a command to ignore the logs from previous executions or 2. Reset/delete or something the file that holds the data for which files have been through the process before and should be excluded from future scans.
Any help is hugely appreciated.
I am also open to any improvements to the script that might do something cool and/or useful.
Re: POSTBUCKET - where random posts in unrelated topics go
In the call you posted you're NOT setting excludeList (which is bad) but you describe behaviour excludeList being set (that is good, you MUST set excludeList).