POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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.
Post Reply