POSTBUCKET - where random posts in unrelated topics go
Re: Automated Media Center
Sorry I see what you were referring to now,
This is strange, it works from the command line directly though? I'll try this change thanks for pointing it out.
P
This is strange, it works from the command line directly though? I'll try this change thanks for pointing it out.
P
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Movie detection failed in:
[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv
that is detected as 'Machete 2011 LiFE M'
I suppose it's the fault of:
LiFE
[M@HD]
Can you add these terms to the blacklist?
EDIT:
The year isn't recognized too in v3.6...can you look into this?
[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv
that is detected as 'Machete 2011 LiFE M'
I suppose it's the fault of:
LiFE
[M@HD]
Can you add these terms to the blacklist?
EDIT:
The year isn't recognized too in v3.6...can you look into this?
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Added.
But even without it does get it right:
But even without it does get it right:
Code: Select all
Parameter: ut_kind = multi
Parameter: ut_dir = D:\testdata\AMC-TEST
Parameter: ut_title = AMC-TEST
Input: D:\testdata\AMC-TEST\[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv
[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv [series: LiFE, movie: Machete (2010)]
Exclude Series: LiFE
Group: [tvs:null, mov:Machete (2010), anime:null] => [[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\testdata\AMC-TEST\[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv]
[COPY] Rename [D:\testdata\AMC-TEST\[BluRay Rip 1080p - ITA-ENG DTS-AC3-SUB] Machete (2011) LiFE [M@HD].mkv] to [D:\output\Movies\Machete (2010)\Machete (2010).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Movie Machete (2010)
www.imdb.com/title/tt0985694
6min TV Series Machete (2011)
http://www.imdb.com/title/tt2112196/
I'm pretty sure we're taking about Machete (2010) here. Works as expected. Better than even.
www.imdb.com/title/tt0985694
6min TV Series Machete (2011)
http://www.imdb.com/title/tt2112196/
I'm pretty sure we're taking about Machete (2010) here. Works as expected. Better than even.

Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Yes I was talking about the film...and yes now is working...I'm a little confused about that xD
I don't know why before posting my report the software didn't recognized the film.
Thanks a lot for the support xD
I don't know why before posting my report the software didn't recognized the film.
Thanks a lot for the support xD
-
- Posts: 6
- Joined: 02 May 2013, 05:49
-
- Posts: 6
- Joined: 02 May 2013, 05:49
Re: How about sharing your CLI scripts?
On "Rename All Media Folder by Folder":
1. The script is not renaming the media files inside folders for me.
2. Some titles get renamed to their English equivalent, some don't (even when available).
e.g. "Kasi az gorbehaye irani khabar nadareh" doesn't rename to "No One Knows About Persian Cats" (http://www.imdb.com/title/tt1426378/)
I'm using IMDB as source.
1. The script is not renaming the media files inside folders for me.
2. Some titles get renamed to their English equivalent, some don't (even when available).
e.g. "Kasi az gorbehaye irani khabar nadareh" doesn't rename to "No One Knows About Persian Cats" (http://www.imdb.com/title/tt1426378/)
I'm using IMDB as source.
Re: [SNIPPET] Put the "The" at the end
Code: Select all
--format "your/format/anything"
Re: How about sharing your CLI scripts?
1. It's not supposed to. Just run it twice if you first wanna rename folders and then files. If you restructure your stuff you'd normally define a format for that and move everything into the new structure rather then renaming files in place.
2. Depends on the database you're using. TMDB respects the --lang option. With IMDb you'll get what you get regardless of your prefs.
2. Depends on the database you're using. TMDB respects the --lang option. With IMDb you'll get what you get regardless of your prefs.
Re: Automated Media Center
You are a life saver! XD
Thank you so much!
Thank you so much!
Re: Automated Media Center
I have been using this successfully to rename and move my downloads to a specific location. It was working well, and it still is when i download a torrent manually. however, it no longer works with my RSS feed. When a torrent is downloaded through my feed into the same place as a manual torrent, the filebot script runs but it does not rename or move the file. I'm not sure what is going on. any thoughts? I'm using utorrent. Thanks.
Re: Automated Media Center
Definitely doesn't have anything to do with RSS feeds or whatnot. It's a simple cmdline tool that processes files.*** If you need help start a new thread and always include cmdline output! ***
-
- Posts: 6
- Joined: 12 May 2013, 16:29
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
How about allowing the user to add user defined blacklist terms? I'm imagining that in a local "user-query-blacklist.txt". That way, filebot could be tailored to individual system infrastructures. On my NAS, e.g., I keep the unprocessed files in folders à la "_to_be_sorted_SERIES" or "_to_be_sorted_MOVIES", and filebot tries to match the "to" of that folder name, which leads to a whole bunch of utterly unwanted matches. Easy workaround: Get rid of the underscores. There's no "tobesortedXXX" available in the movie / series DBs, so it doesn't try to match those. But still, I'd be quite happy if I could tinker with the settings on my end in this case, as I don't see it would be much use to include this highly individual path name choice in the general public rules.
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Added to.be.sorted pattern.
You can always override the *.properties files in the jar and then use your own data files. But it's already full of individual stuff. However wierd it may be, I'm sure there's lots of other people that use the same naming. So I don't mind adding things like this. Makes sense to me.
You can always override the *.properties files in the jar and then use your own data files. But it's already full of individual stuff. However wierd it may be, I'm sure there's lots of other people that use the same naming. So I don't mind adding things like this. Makes sense to me.
-
- Posts: 6
- Joined: 12 May 2013, 16:29
Re: Add Blacklisted Terms and Improve Movie / Series Detecti
Somehow doesn't seem "clean" to me, but it's your baby, and if it works for me, I won't complain 
Anyway, all the superspeedy and HELPFUL support convinced me to make a donation. Keep up the good work!

Anyway, all the superspeedy and HELPFUL support convinced me to make a donation. Keep up the good work!
-
- Posts: 6
- Joined: 12 May 2013, 16:29
Transmission on Synology NAS
Hint for Synology users: The transmission installation sets up a user "transmission" with his own home dir. This home dir is "/usr/local/transmission/var", thus the config files can be found there:
This will work only if logged in as root. As admin, you'll have to prefix that with sudo, as most linux users will already know (sudo requires some extra setup on Synology though, you'll have to google for that or pm me).
@rednoah: If you think this is the wrong place for this extra info, feel free to move or delete the posting.
Code: Select all
vi /usr/local/transmission/var/settings.json
@rednoah: If you think this is the wrong place for this extra info, feel free to move or delete the posting.
Re: How about sharing your CLI scripts?
http://filebot.net/scripts/artwork.tmdb.groovy
I have all my movies in one folder. I am trying to modify the script to work with my setup but am failing horribly. I also only want the XML information and a single poster for each both (named the same as the movie just with .xml and .jpg extensions.)
I have all my movies in one folder. I am trying to modify the script to work with my setup but am failing horribly. I also only want the XML information and a single poster for each both (named the same as the movie just with .xml and .jpg extensions.)
Re: How about sharing your CLI scripts?
The artwork.* scripts define mostly how the folder structure is traversed and how movie/series detection works. The actual artwork downloading and naming is all in the lib/htpc include.
Best thing to do is to organize each movie into it's own folder.
Best thing to do is to organize each movie into it's own folder.
Re: How about sharing your CLI scripts?
I can read the scripts no problem I just can't write changes very well as my Java is weak and Groovy is non existent.
Where is sortBySimilarity defined? Does it.name really need the { and } around it?
Code: Select all
options = options.sortBySimilarity(query, { it.name })
Re: How about sharing your CLI scripts?
Here's the stuff I pre-define:
https://sourceforge.net/p/filebot/code/ ... force=True
The { ... } is the toString function used for comparison. It's passing in a function, not a value. So you need the { ... }
https://sourceforge.net/p/filebot/code/ ... force=True
The { ... } is the toString function used for comparison. It's passing in a function, not a value. So you need the { ... }
Re: How about sharing your CLI scripts?
Code: Select all
args.getFiles{ it.isVideo() }
.each{
def movieName = detectMovie(it, false)
def movieInfo = TheMovieDB.searchMovie(movieName.name, _args.locale).sortBySimilarity(movieName.name, {it.name})[0]
println movieInfo
}
Re: How about sharing your CLI scripts?
You first have filebot correctly detect it as Kiss Kiss Bang Bang (2005) via detectMovie(), then you go on and take only the movie name Kiss Kiss Bang Bang and do another search, that is completely useless btw, at best giving you the same result, at worst a different movie.
You only need detectMovie() and it'll get you the best-guess movie object with name/year/tmdbid.
You only need detectMovie() and it'll get you the best-guess movie object with name/year/tmdbid.
Re: How about sharing your CLI scripts?
Code: Select all
args.getFiles{ it.isVideo() }
.each{
def movieName = detectMovie(it, false)
println movieName
def movieInfo = TheMovieDB.searchMovie(movieName.name, _args.locale)
println movieInfo
println movieInfo.sortBySimilarity(movieName.toString(), {it.name})
}
sortBySimilarity is not working movieName.toString() is exactly "Kiss Kiss Bang Bang (2005)" yet it does not move it to the front of array.Kiss Kiss Bang Bang (2005)
[Kiss Kiss... Bang Bang (1966), Kiss Kiss Bang Bang (2005), Kiss Kiss (Bang Bang) (2001)]
[Kiss Kiss... Bang Bang (1966), Kiss Kiss Bang Bang (2005), Kiss Kiss (Bang Bang) (2001)]
Re: How about sharing your CLI scripts?
It's sorting by the text similarity of movieName.toString() and it.name, since the ... is ignored both match equally by name, and since you do it.name you specifically make sure the year part is not part of the equasion. Just do sortBySimilarity(string) and let it use the default toString function for the comparison value.
Also, detectMovie already gives you the best result. If you use detectMovie it's a complete waste to do a TMDb.searchMovie afterwards. It's probably called internally as part of detectMovie already anyway, relevance sorting as well.
Also, detectMovie already gives you the best result. If you use detectMovie it's a complete waste to do a TMDb.searchMovie afterwards. It's probably called internally as part of detectMovie already anyway, relevance sorting as well.
Re: How about sharing your CLI scripts?
I am doing TMDb.searchMovie() because I would like to pull a couple more details but I think I will just write the movie name to file then use a more reasonable language to do the rest like I had originally planned.
Thanks for all the help and fast replies
Edit: I just realized detectMovie gets the tmdbId so I can just use TheMovieDB.getMovie() lol
Code: Select all
import groovy.json.JsonBuilder
args.getFiles{ it.isVideo() }.each{
def f = new File(it.name[0..-5] + '.json')
if (f.exists())
return
def m = detectMovie(it, false)
f.write(new JsonBuilder(m).toPrettyString())
}
Edit: I just realized detectMovie gets the tmdbId so I can just use TheMovieDB.getMovie() lol