POSTBUCKET - where random posts in unrelated topics go

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