POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some 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: 22923
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: 22923
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: 22923
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: 22923
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: 22923
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: 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.
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: 22923
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: 22923
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: 22923
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.
Post Reply