Search found 25 matches

by Arion
14 Aug 2017, 12:40
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

So you're using the command-line to try format expressions? No, actually I'm trying to write these names to the file so that if there are more than 1 files processed by Filebot, it'll write all the filenames into a single message and fwd it to me. Regarding that... I was wondering, is there a way I...
by Arion
13 Aug 2017, 04:11
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

Hey, just wanted to let you know I figured it out by a series of trial and errors:

This works:

Code: Select all

echo "{quote("$n - ${any{episode; s00e00 + ' - ' + t}{movie}}")}" | Out-File TestFile.txt -append
by Arion
12 Aug 2017, 18:30
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

Oh yeah, the logs say this:
Execute: echo "" | Out-File TestFile.txt -append
for:

Code: Select all

echo "{quote ("$n") (${any{episode; s00e00 + ' - ' + t}{movie}})}" | Out-File TestFile.txt -append
which is because of the error. nothing is being parsed into the powershell.
by Arion
12 Aug 2017, 15:53
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

I've tried this: echo "{quote ("$n") (${any{episode; s00e00 + ' - ' + t}{movie}})}" | Out-File TestFile.txt -append with the error given above. I can't really put this into powershell manually and try to fix it since it'll be treated as a single string and print as it is. When I ...
by Arion
12 Aug 2017, 06:41
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

I tried this: echo "{quote ("$n") (${any{episode; s00e00 + ' - ' + t}{movie}})}" | Out-File TestFile.txt -append But keep getting this error: The string is missing the terminator: ". + CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException + FullyQualifiedErr...
by Arion
12 Aug 2017, 05:30
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

But I guess it's not possible? the `quote` function is either glitchy or I dunno how to use it, I believe it's the latter.
by Arion
11 Aug 2017, 12:05
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

I'm using echo {quote n} - {s00e00} - {t} which gives that output with the dashes. Upon trying echo "{quote {n} {s00e00} {t}}" | Out-File TestFile.txt -append to write the names to a text file, I still get the same Sherlock S01E01 A Study in Pink Sherlock S01E02 The Blind Banker Sherlock S...
by Arion
09 Aug 2017, 17:56
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

I'm sorry but I have a minor query. Using your solution above, the program prints Sherlock - S01E01 - A Study in Pink Sherlock - S01E02 - The Blind Banker Sherlock - S01E03 - The Great Game As you can see, it prints each word on a new line. I'd like all of it to be condensed to a single line. Can yo...
by Arion
05 Aug 2017, 16:05
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Re: Find out how many inputs are taken by Filebot and carry out different functions

Can you guide me on how I can write the names of the files Filebot processes (in {s00e00} - n - t or {n} - {y} format) to a text file after filebot is done processing them? Especially when it renames more than 1 file. Also, can I use the --def exec hook more than once to run two or multiple programs?
by Arion
30 Jul 2017, 16:36
Forum: Scripting and Automation
Topic: Find out how many inputs are taken by Filebot and carry out different functions
Replies: 16
Views: 6190

Find out how many inputs are taken by Filebot and carry out different functions

I currently use a self-made notification system to notify me about the files processed by Filebot. The only con of the system is that for every input file taken by filebot, it generates a separate message, unlike the default notification system provided by FileBot where all the processed files are b...
by Arion
23 May 2016, 18:26
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

Hey! So I figured it out this weekend. For Pushbullet, I'm using an unofficial CLI tool built by dendory [https://github.com/dendory/pushbullet_cli]. I added the pushbullet.exe I got from the repo to my System32 folder. Using --def "exec=@Path/to/args.txt" I don't need to mess around with ...
by Arion
18 May 2016, 19:32
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

I'm not lazy man, I just need some time to figure things out. I got this far solely from your AMC threads and cmdline manuals, I just need to figure out the proper syntax. You didn't mention anywhere about the {movie; 'Movie'}{episode; 'Episode'} line in your man pages so I had no way of knowing it ...
by Arion
18 May 2016, 19:27
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

I'm using this for testing movies: --def "exec=pushbullet -apikey \"apikey\" -title \"{movie; {ny}}{episode; 'Episode'} is here! \" -message \"{movie; {ny}}{episode; 'Episode'}has been downloaded\"" And it's returning this error: SyntaxError: Ambiguous express...
by Arion
18 May 2016, 12:52
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

So I can set it to send me a push like "The movie/episode has been downloaded" but I want it to contain the filename as well like I mentioned in the OP: If episode- -title "[Filebot] New episode of {n} is here! " -message "{s00e00} - {t} has been downloaded." If movie- ...
by Arion
18 May 2016, 12:21
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

In your above script, whatever's inside the single quotes {movie; 'movie'} is pushed as it is and doesn't work with the filebot parameters. How do I make it work?

I need a different messages pushed depending on whether the content is tv series/movie.
by Arion
18 May 2016, 10:47
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

Re: [AMC]Find whether content is TV Series or Movie from cmd

Is this how I use it?

Code: Select all

--def "exec={movie; 'pushbullet -apikey \"apikey\" -title \"The movie {n} has been downloaded!\" -message \"Ready to be watched.\"'}"
It doesn't seem to work so I guess I'm on the wrong track here.
by Arion
18 May 2016, 06:50
Forum: Help and Support
Topic: [AMC]Find whether content is TV Series or Movie from cmdline
Replies: 12
Views: 5272

[AMC]Find whether content is TV Series or Movie from cmdline

I wanted to change the way filebot sent Pushbullet notifications so I used a CLI tool for pushbullet and used this hook to send me notifications: --def "exec=pushbullet -apikey \"apikey\" -title \"[Filebot] New episode of {n} is here! \" -message \"{s00e00} - {t} has be...
by Arion
11 May 2016, 19:58
Forum: Help and Support
Topic: [AMC] Variable name assigned to a file after renaming?
Replies: 5
Views: 3291

Re: [AMC] Variable name assigned to a file after renaming?

Hey! I figured it out! I used an unofficial CLI tool built by dendory [https://github.com/dendory/pushbullet_cli]. I added the pushbullet.exe to my System32 folder. Then I added this hook to my AMC cmdline arguments: --def "exec=pushbullet -apikey \"apikey\" -title \"[Filebot] {n...
by Arion
11 May 2016, 17:49
Forum: Help and Support
Topic: [AMC] Variable name assigned to a file after renaming?
Replies: 5
Views: 3291

Re: [AMC] Variable name assigned to a file after renaming?

Thanks for your help! I don't have the money so I can't donate and get this done,unfortunately. But, I'm grateful for all the help you provide on this forum and the program you've built. I'll focus on your second point. I'm reading about using curl to send pushes to pushbullet right now. If I figure...
by Arion
11 May 2016, 17:10
Forum: Help and Support
Topic: [AMC] Variable name assigned to a file after renaming?
Replies: 5
Views: 3291

Re: [AMC] Variable name assigned to a file after renaming?

I tried replacing "ut_title" in the below line in the AMC Script with "exec" after adding the exec command you gave above to the CLI def getNotificationMessage = { prefix = '• ', postfix = '\n' -> tryQuietly{ exec } ?: (input.any{ !it.isSubtitle() } ? input.findAll{ !it.isSubtitl...
by Arion
11 May 2016, 15:14
Forum: Help and Support
Topic: [AMC] Variable name assigned to a file after renaming?
Replies: 5
Views: 3291

[AMC] Variable name assigned to a file after renaming?

Before renaming the file, we get the file name by the variable "ut_file" in the AMC Script. I was wondering what variable is assigned to it after it is renamed. If there isn't, please guide me on how I could declare such a variable myself. I've inspected the AMC script in the past few days...
by Arion
05 May 2016, 18:37
Forum: Scripting and Automation
Topic: Customize Pushbullet Notification
Replies: 4
Views: 3331

Re: Customize Pushbullet Notification

Hey rednoah!

I couldn't find the name of the variable you assign to the "New Name" of the file after renaming it in the amc.groovy script.

I'm sorry for replying on this old issue but I though it'd be better than making a new post about something like this.
by Arion
29 Apr 2016, 07:59
Forum: Windows
Topic: Make AMC organize only finished torrents.
Replies: 2
Views: 4117

Re: Make AMC organize only finished torrents.

Hey! if you read my post again, I've resolved it! Thanks though!
by Arion
29 Apr 2016, 04:01
Forum: Windows
Topic: Make AMC organize only finished torrents.
Replies: 2
Views: 4117

Make AMC organize only finished torrents.

So I'm downloading 2/3 torrents at once. I'm using qBittorrent and have it execute the AMC script once a torrent is finished downloading. The problem is, in one of my TV Series torrents, 2-5 files are finished downloading, and when I'm downloading a single episode/movie separately, once it finishes ...