POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
zicoz
Posts: 3
Joined: 08 Jul 2013, 14:21

Re: Automated Media Center

Post by zicoz »

If I don't want it to rename movies, do I just add --def movies=n ?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

Nope, with the AMC script you can't not rename movies. Unless you modify the script yourself.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Automated Media Center

Post by Chryses »

rednoah wrote:1. Very easy:

Code: Select all

{s.pad(2)}x{e.pad(2)}
1.1. A bit more complicated if you take multi-episode files into consideration as well:

Code: Select all

{s.pad(2)}x{es.collect{ it.pad(2) }.join('-')}
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.
Tnx, the series format works like a charm!

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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

I don't know the issue with your movie format. What you seem to describe can't happen.

Maybe you mean this?
http://www.filebot.net/forums/viewtopic.php?f=5&t=806
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Automated Media Center

Post by Chryses »

I never see that 3d :)

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 :)
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

1. What 3D? The default format has no special handling for 3D movies.

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]
...
Did you read and understand http://www.filebot.net/forums/viewtopic.php?f=5&t=806 where it says all movie parts must be in the same input set?
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Automated Media Center

Post by Chryses »

3d was refered to the post :D

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]
This's my full string, maybe I made another error :)

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 it
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

This is what gets passed into to FileBot:

Code: Select all

Parameter: movieFormat = Film/{n} ({y}){" Cd"}
Your shell is messing with the $name variables. You'll probably need to escape the \$ as well as the \"
:idea: Please read the FAQ and How to Request Help.
Xen
Posts: 4
Joined: 12 Jul 2013, 13:37

Re: Automated Media Center

Post by Xen »

Is the line the same for qBittorrent on Windows as uTorrrent?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

Probably not. You'll have to check the qBittorrent docs on how to call external programs on download complete.
:idea: Please read the FAQ and How to Request Help.
Xen
Posts: 4
Joined: 12 Jul 2013, 13:37

Re: Automated Media Center

Post by Xen »

Maybe, I should use Deluge for windows then. I see instructions for Linux, Mac what about the windows version?

Looks like need to set it to run a .bat file
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

For that you'd have to port (rewrite) the Linux bash script to a Windows CMD bat script.
:idea: Please read the FAQ and How to Request Help.
zipmaster
Posts: 1
Joined: 20 Jul 2013, 16:54

Re: Automated Media Center

Post by zipmaster »

Hey guys I'm having a little problem that I can't wrap my mind around. I'm automatizing the file renaming with Transmission, this is the script I am using:

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"
Which unfortunately isn't doing anything for me. The log reads as such:

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 ヾ(@⌒ー⌒@)ノ
Which is the standard output whenever filebot simply cannot find the file in question. Playing around by operating the script manually, I realized I can get filebot to work if I pass the proper file extension to ut_title i.e. "Parameter: ut_title = The Gruffalo 2009 DVDRip.mp4".

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}'
but I feel that would get complicated too quickly if there are other files witht he same name in the folder (ex: "The Gruffalo 2009 DVDRip.nfo"). Any ideas?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Automated Media Center

Post by rednoah »

ut_title is completely ignored when looking up input files and is completely optional. It's used as email title for notifications and nothing else.


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 DVDRip
ut_dir should be a folder, but if it's a path to a single video file amc will work with that as well.


For 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_NAME
If $TR_TORRENT_NAME doesn't give you the filename for single torrent files then I don't know neither. I guess at this point we need transmission-remote and the torrent hash to grab all the info. Not just that useless stuff that is passed in via the environment.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Automated Media Center

Post by Chryses »

rednoah wrote:This is what gets passed into to FileBot:

Code: Select all

Parameter: movieFormat = Film/{n} ({y}){" Cd"}
Your shell is messing with the $name variables. You'll probably need to escape the \$ as well as the \"
Tnx I'll try :D
istvanszucs
Posts: 3
Joined: 31 Jul 2013, 16:25

Re: How about sharing our format expressions?

Post by istvanszucs »

Hi all,

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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: How about sharing our format expressions?

Post by rednoah »

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...
:idea: Please read the FAQ and How to Request Help.
istvanszucs
Posts: 3
Joined: 31 Jul 2013, 16:25

Re: How about sharing our format expressions?

Post by istvanszucs »

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...
I have a command line interface.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

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
:idea: Please read the FAQ and How to Request Help.
istvanszucs
Posts: 3
Joined: 31 Jul 2013, 16:25

Re: POSTBUCKET - where random posts in unrelated topics go

Post by istvanszucs »

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
So I have to get it and rename it. I can't get it with the right name straight off.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Automated Media Center

Post by Chryses »

Chryses wrote:
rednoah wrote:This is what gets passed into to FileBot:

Code: Select all

Parameter: movieFormat = Film/{n} ({y}){" Cd"}
Your shell is messing with the $name variables. You'll probably need to escape the \$ as well as the \"
Tnx I'll try :D
I found a little problem with "this settings", and I don't know how to resolve it :?

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]
In this example, I download first the 1st cd and then the 2nd, but filebot, when will finish, the script will overwrite the file.

Any chance that if, at the end of the filename it found cd1 etc etc, keep this information?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

If you don't know how bash works and that $ specifies variables i recommend writing your format in way that doesn't need $

Like this:

Code: Select all

{' CD'+pi}
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Chryses »

You're right, I mean, I can say that is a kind of miracle that all works!

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]
J
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

If you want {pi} to work you need to pass in both movie part files or the folder, not just -rename part1.avi

@see http://www.filebot.net/forums/viewtopic ... =806#p5169
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Chryses »

ok, tnx for the info.

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?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Yep, there is no solution for this case, esp if you're set on doing cron jobs. Best is to have the download app hand things over to filebot after all related files have been completed.

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.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Chryses »

So, something like this

Code: Select all

movieFormat=Film/{n} ({y}){' - '+fn.match(/(?i)cd+[0-9]/).toUpperCase()}{fn.match(/(?i)part +[0-9]of[0-9]/).toLowerCase()}
Any advice or ideas?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Look how I'd test that:

Code: Select all

{'Avatar Part 1of2'.match(/part\s*[0-9]of[0-9]/)}
You can prototype all of that quickly in the GUI.

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)/)}
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Chryses »

Ok, tnx, I'll try some combinations :)
User avatar
ashfallen0
Power User
Posts: 32
Joined: 14 Jan 2012, 10:44

Re: How about sharing our format expressions?

Post by ashfallen0 »

I'm not the greatest at REGEX, so I've had to more or less slave over my expressions(and to make them CLI/XBMC/Anidb/TVDB friendly :roll: )

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+']'}
Here's my current Anime expression:

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+']'}
Image PHPBB3 hates me.
Faba
Posts: 6
Joined: 03 Sep 2013, 08:09

Re: [SNIPPET] Put the "The" at the end

Post by Faba »

Hy,

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}"
Any idea what I am doing wrong?

thanks

Faba
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [SNIPPET] Put the "The" at the end

Post by rednoah »

The format looks good.

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.
:idea: Please read the FAQ and How to Request Help.
Faba
Posts: 6
Joined: 03 Sep 2013, 08:09

Re: [SNIPPET] Put the "The" at the end

Post by Faba »

sorry the {y} and {vf} work correctly

so the results is actually " , (2007).720p.mkv".

I escaped the $ sign and now i is working like expected

Thanks!
SatNav
Posts: 1
Joined: 23 Sep 2013, 21:54

Re: POSTBUCKET - where random posts in unrelated topics go

Post by SatNav »

Hi, I'm having a bit of trouble getting the amc script to work. It's been working fine for a few months, and just started playing up the last couple of days. I have a script called from transmission. It is as follows:

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/log
But recently it has failed with this in the log:

Code: 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 (°_°)
I'm not sure why it's just started failing in this way. The only recent change is that I moved the location of my downloads folder from '/home/mark/Downloads' to '/mnt/Downloads', but I don't see how that could make a difference.

In any case, to my mind, the error message doesn't seem to be describing what's going wrong. Any ideas?
nitewulf
Posts: 6
Joined: 23 Aug 2013, 18:50

Re: [CODE] Examples and Snippets

Post by nitewulf »

Can these be incorporated as filebot arguments from the command line? I'm trying to integrate the script to override series auto-detect into my utorrent post processing.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [CODE] Examples and Snippets

Post by rednoah »

That doesn't make sense. You can incorporate things your own way by putting together your own script. In your own script you can of course script whatever you want.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DOCS] Exclude Blacklist & Series-Mappings

Post by rednoah »

Added entries to exclude-blacklist:

Code: Select all

Deleted.and.Extended.Scenes
Deleted.Scenes
:idea: Please read the FAQ and How to Request Help.
Twain32
Posts: 4
Joined: 23 Nov 2013, 23:58

Re: [DOCS] Exclude Blacklist & Series-Mappings

Post by Twain32 »

Hi. How are those lists working ? Do we need to download them manually or is there an auto updating system included in the Filebot main application ?

I am trying to rename a "Law & Order SVU" episode (with the CLI), but Filebot ends up using the "Law & Order" episode info.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DOCS] Exclude Blacklist & Series-Mappings

Post by rednoah »

It's all auto-updated.

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.
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added exclude rules for Anime OP/EDs:

Code: Select all

(?<=\b|_)(NCED|NCOP|(OP|ED)\p{Digit}\p{Alpha})(?=\b|_])
:idea: Please read the FAQ and How to Request Help.
Ambroisie
Supporter
Posts: 19
Joined: 06 Dec 2013, 22:08

Re: Thank You So Very Much & Happy Holidays

Post by Ambroisie »

I would like to know the way to make it find the release groups. Could you pm it to me... ?
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Thank You So Very Much & Happy Holidays

Post by Ithiel »

Hi Ambroisie, the code for release groups is {group}

More info can be found here: http://www.filebot.net/forums/viewtopic ... ilit=group
There can be only one Power² User
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Post by Ithiel »

I donated 10 euro, and once upgraded to a VIP (the account upgrade is manually verified by them so it takes a few hours), I was able to download about 4000+ subtitles in a few hours before I hit the limit.

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 >.<
There can be only one Power² User
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Post by rednoah »

This should list your download limits:

Code: Select all

filebot -script osdb.stats
:idea: Please read the FAQ and How to Request Help.
Ambroisie
Supporter
Posts: 19
Joined: 06 Dec 2013, 22:08

Re: Exclude Blacklist & Series-Mappings

Post by Ambroisie »

You should add TBBT for The Big Bang theory
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added.
:idea: Please read the FAQ and How to Request Help.
Akki
Posts: 16
Joined: 27 Jun 2013, 21:16

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Akki »

Can you add "www.Torrenting.com" to the blacklist? It's in the folder name and for some reason always matches Christopher Hitchens.... Would be nice if there was an easy way to have a local blacklist, or at least have the script ignore the folder name for matching and always use the filename. Strict matching doesn't really work for my purposes, unfortunately...

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...
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by rednoah »

This will catch it:

Code: Select all

www[.][\w-.]+[.](com|net|tk|ro|cd|me|de)
Give me the whole path and I'll have a look which token is messing with it.
:idea: Please read the FAQ and How to Request Help.
Akki
Posts: 16
Joined: 27 Jun 2013, 21:16

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Akki »

rednoah wrote:This will catch it:

Code: Select all

www[.][\w-.]+[.](com|net|tk|ro|cd|me|de)
Give me the whole path and I'll have a look which token is messing with it.
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:

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]
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by rednoah »

Haha, this one is really bad luck! :D

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...] :D 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.
:idea: Please read the FAQ and How to Request Help.
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Ithiel »

*"Wife with Wife?", Ithiel thought to himself, "That's odd, I've never heard of that anime before... wonder what that's about?"*
*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 :-/
There can be only one Power² User
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by rednoah »

hahaha, never bothered to actually look it up Wife with Wife - Absolutely Not For Children :lol:
:idea: Please read the FAQ and How to Request Help.
Akki
Posts: 16
Joined: 27 Jun 2013, 21:16

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Akki »

rednoah wrote:Haha, this one is really bad luck! :D

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...] :D 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.
That's... really interesting. What do you mean by latest revisions, though?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by rednoah »

FAQ -> Last Q
:idea: Please read the FAQ and How to Request Help.
Akki
Posts: 16
Joined: 27 Jun 2013, 21:16

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Akki »

rednoah wrote:FAQ -> Last Q
Ah, I see. Didn't realize you were talking about the jar as opposed to the whole package. Thanks!
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by Ithiel »

As rednoah is pretty much always making tweaks, fixes, or improvements (generally in response to forum requests), the jar file is normally updated every couple of days. If you ever notice a strange bug, the first thing to try is updating your jar to see if he's already fixed it, lol. :-)

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
There can be only one Power² User
tmThEMaN
Donor
Posts: 8
Joined: 12 Jan 2014, 19:15

Re: Automated Media Center

Post by tmThEMaN »

First of all, Thanks a million man. This app rocks big time when using the scripts. I just witnessed magic happening here.

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.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Why do you think it's not doing that already? Cause it is, by default, and you can't change that.
:idea: Please read the FAQ and How to Request Help.
tmThEMaN
Donor
Posts: 8
Joined: 12 Jan 2014, 19:15

Re: POSTBUCKET - where random posts in unrelated topics go

Post by tmThEMaN »

I'm using Mac, some subtitles when downloaded are not being displayed on Plex, but XBMC can display them.

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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

You'd have to modify the script to re-encode into Windows-1256, probably easier to just do a post processing script that turns UTF-8 into Win-1256, though any text file really should be in UTF-8, that would safe the world a lot of trouble.
:idea: Please read the FAQ and How to Request Help.
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: [CODE] Examples and Snippets

Post by Ithiel »

Here's an example of running two commands in a single command line:

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.log
The above example is for a context menu option to download subtitles in two languages at once. If you want to string multiple commands together on a single line, simply use &&

You can also read more about using multiple commands and conditional processing symbols in the official Microsoft documentation.
There can be only one Power² User
neriox
Posts: 18
Joined: 04 Feb 2013, 02:14

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Post by neriox »

I try this command:

Code: Select all

>filebot -script fn:osdb.login
and I got this >>

Code: Select all

>Enter OpenSubtitles username: XX
Enter OpenSubtitles password: XX
Testing OpenSubtitles... OK
Done ?(?????)?
But when I try this>

Code: Select all

>filebot -script osdb.stats
I got this >>

Code: 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.
What can be happened?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Configure OpenSubtitles and Sublight login

Post by rednoah »

For that one you need to use the latest build, the 3.8 release is too old.
:idea: Please read the FAQ and How to Request Help.
Zerelah
Posts: 23
Joined: 18 Feb 2014, 16:22

Re: [SNIPPET] Sort into A-Z folders

Post by Zerelah »

Can this be changed to work with ABCD folder instead so movies beginning with a-d goes in ABCD ?
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
Nordh
Posts: 5
Joined: 09 Dec 2013, 12:12

Re: Looking for testers on Synology NAS

Post by Nordh »

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?
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:

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.
igcr
Posts: 1
Joined: 17 Mar 2014, 11:31

Re: Exclude Blacklist & Series-Mappings

Post by igcr »

Can you add 'TWD' for The Walking Dead?
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Added.
:idea: Please read the FAQ and How to Request Help.
JFMillerUSA
Posts: 3
Joined: 03 Apr 2014, 06:17

Re: [SNIPPET] Put the "The" at the end

Post by JFMillerUSA »

trying to make a batch file for uTorrent and my movie IF doesn't seem to work but the Television does any ideas

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
%1 is Status
%2 is Label
%3 is Directory of torrent
jsmitty
Posts: 1
Joined: 03 Apr 2014, 15:02

Re: Add Blacklisted Terms and Improve Movie / Series Detecti

Post by jsmitty »

rednoah, can you please add ddlvalley.net to the blacklist? it matches everything to the tv show 'the net'

thanks in advance
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: Fetch all subtitles

Post by Hematot »

rednoah wrote: Fetch subtitles for all folders:

Code: Select all

filebot -script fn:suball /path/to/media
Options:
--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 . . .
Cheerio
/Hematot
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Looks like the condition was the wrong way around. Should be fixed now.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

But then it thinks that none of the .mkv files I've tried it with have subs...
I wasn't clear on the fact that some, but only some, of the .mkv's are missing embedded subs.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Make sure to use the latest script. Works fine now:

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]
The first two have embedded subtitles, thus get ignored. That last episode doesn't have a subtitle track, so it'll fetch subtitles.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Well, for me the files with no embedded subtitles still gets identified as having them.
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
For now I'll just use the getMissingSubtitles and switch to the embedded if need be!
Rock on! /Hematot
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

According to MediaInfo this file does not contain subtitles.

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.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Exactly, it doesn't contain any subtitles but was identified as having it. Just as the ones actually having subtitles...

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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Read the FAQ. You're probably running a 32-bit JVM when you should be running a 64-bit JVM. You can also check with the sysinfo script if everything is working correctly.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Installed the 32-bit FileBot, that did the trick!
Don't understand why FileBot worked at all though...
Thanks! /H
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

FileBot is all Java code, which is then run by a JVM, doesn't matter if it's the 32-bit or 64-bit one. Though once external native libraries, e.g. MediaInfo.dll, get linked into the process architecture must match, or the library will be ignored, that's just how programs work.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

I get a little bit of a deja vu feeling asking this: can the getMissingSubtitles function that is called from suball recognize my existing external subtitles that are named xxx.en.srt?
It downloads new ones and call them xxx.eng.srt.
Have I fiddled with some setting that I've forgot about?
/H
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Nope, currently only checks for matching 3-letter codes. But you can try the latest revision which should work for what you're trying to do.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Well, I installed "FileBot_4.0_x86.msi" yesterday, is there a newer revision?
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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Latest revision of FileBot. See FAQ.
:idea: Please read the FAQ and How to Request Help.
Hematot
Posts: 17
Joined: 31 Mar 2012, 11:33

Re: POSTBUCKET - where random posts in unrelated topics go

Post by Hematot »

Thanks rednoah!
That did the trick.
/H
aztazt
Posts: 3
Joined: 24 Apr 2014, 21:28

Re: Exclude Blacklist & Series-Mappings

Post by aztazt »

Can you add a filter to exclude/blacklist files that match this pattern :

*.!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
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Those !sync files don't have video extensions right? So it's already excluded from the start. Give me the complete path of one of these !sync files and how you think it affects matching in a negative way (with logs or examples).
:idea: Please read the FAQ and How to Request Help.
aztazt
Posts: 3
Joined: 24 Apr 2014, 21:28

Re: Exclude Blacklist & Series-Mappings

Post by aztazt »

Those .!sync files don't have video extension, right.
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.
adamp
Posts: 1
Joined: 29 May 2014, 11:35

Re: [MANUAL] Set OpenSubtitles Account

Post by adamp »

I'm using v4.0.

By running:

Code: Select all

filebot -script osdb.stats
I got:

Code: 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.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [MANUAL] Set OpenSubtitles Account

Post by rednoah »

Code: Select all

filebot -script fn:osdb.stats
:idea: Please read the FAQ and How to Request Help.
Morgenstern72
Donor
Posts: 43
Joined: 09 May 2014, 18:57

Re: How about sharing our format expressions?

Post by Morgenstern72 »

Movies (Filebot 4.1)

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}
Movies (Filebot 4.0)

Code: Select all

../{primarytitle}{' ('+net.sourceforge.filebot.WebServices.....
I store my movies all in a seperate folder, to be able to navigate and extraxt as mauch info as possible when I have no tool for that (I use XBMC as media center). This makes it easy for me to search for low quality, special editions, etc.
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}
Episodes (FB 4.0)

Code: Select all

../{n}{' ("'+net.sourceforge.filebot.WebServices...
This script is quite simple except the original title part at the beginning. Since I have some german tv shows I like to get correct titels for them. Rest is just standard. I do not use extended info here, because I want all shows in one folder per season.

Example
Folder: EnglishTitle\Season 1
Show: EnglishTitle.S01E01.ShowTitle.mkv
Pitbull_Raven
Posts: 7
Joined: 08 Jun 2014, 20:18

Re: Automated Media Center

Post by Pitbull_Raven »

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.
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?
dlskins
Posts: 2
Joined: 10 Jun 2014, 16:18

Re: How about sharing our format expressions?

Post by dlskins »

Is there an option to rename The Show as Show, The?
tekwarp
Posts: 4
Joined: 12 Jun 2014, 02:07

Re: Media Index CSV

Post by tekwarp »

rednoah wrote:Description:
  1. Write media info of all video files in the given folder and subfolders to an easily readable CSV file (e.g. open in Excel)
Usage:

Code: Select all

filebot -script fn:mi /path/to/media/ "MediaIndex.csv"
Download Script:
http://filebot.net/scripts/mi.groovy

:?: I am new to groovy so not familiar with the syntax at all. How would you modify the above script to also retrieve the movie genre and IMDB or TMDB Rating?

thanks in advance!!

Seb
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

You can't. The mi script does not cross-reference your files with any database.
:idea: Please read the FAQ and How to Request Help.
tekwarp
Posts: 4
Joined: 12 Jun 2014, 02:07

Re: POSTBUCKET - where random posts in unrelated topics go

Post by tekwarp »

Thanks!
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

hey, can u please add this to the blacklist:

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 :)
Last edited by schimi2k on 28 Jun 2014, 08:56, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Exclude Blacklist & Series-Mappings

Post by rednoah »

Please post the filenames that are not matched correctly so I can figure out what to do about it.

EDIT: Fixed with r2286
:idea: Please read the FAQ and How to Request Help.
schimi2k
Posts: 4
Joined: 28 Jun 2014, 08:31

Re: Exclude Blacklist & Series-Mappings

Post by schimi2k »

WOW Thats fast buddy :)
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
Meph88
Donor
Posts: 35
Joined: 29 Jun 2014, 15:46

Re: How about sharing your CLI scripts?

Post by Meph88 »

Hey,

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.
User avatar
rednoah
The Source
Posts: 24646
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: POSTBUCKET - where random posts in unrelated topics go

Post by rednoah »

Note that if you call this script in intervals every hour or every day you must set --def excludeList or you will get banned.

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).
:idea: Please read the FAQ and How to Request Help.
Post Reply