POSTBUCKET - where random posts in unrelated topics go

Any questions? Need some help?
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [Anime] Convert Absolute to SxE numbers

Post by rednoah »

If you're using FileBot Node, then you're effectively using the amc script, which means you can force TV Show mode, set order and format options, which means you can apply the techniques mentioned in the OP.

:arrow: If you have trouble with that, please make a new thread in the Synology section and include screenshots / console output with what you've tried so far.
:idea: Please read the FAQ and How to Request Help.
JStrach
Posts: 5
Joined: 22 Jan 2019, 20:39

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by JStrach »

I implemented the changes that I described above, taking the code that was in the if statement out and moving to after the statement, then changing the if statement to a while false statement to wait for the package to truly be finished. It worked as expected. I included a log in the while statement to see how many times it ran through before clearing, and it ran ~38k times over the course of a few seconds. Putting in a wait of one second in the while loop would limit this, but I don't think this is really an issue. Here's the revised version I'm using for the "Package Finished" trigger (I believe the only thing that would need changing would be the script path for non-Windows environments):

Code: Select all

var script = JD_HOME + '/jdownloader-postprocess.cmd'

var path = package.getDownloadFolder()
var name = package.getName()
var label = package.getComment() ? package.getComment() : 'N/A'
var links = package.getDownloadLinks() ? package.getDownloadLinks() : []

function isReallyFinished() {
    for (var i = 0; i < links.length; i++) {
        if (links[i].getArchive() != null && links[i].getExtractionStatus() != "SUCCESSFUL" || !package.isFinished()) {
            return false
        }
    }
    return true
}

while (!isReallyFinished()) {}


var command = [script, path, name, label, 'PACKAGE_FINISHED']
log(command)
log(callSync(command))
I believe that when using this script, the "Archive Extracted" trigger is unnecessary.
Kopernikus
Posts: 29
Joined: 03 Feb 2019, 20:07

Re: Plex Naming Schemes

Post by Kopernikus »

Hi,

If I use:

Code: Select all

{plex.derive {" [$vf.$vc.$ac]"}}
I get

Code: Select all

/volume1/video/Movies/xXx (2002)/xXx (2002) [480p.x264.AC3].mkv
but how to I get

Code: Select all

/volume1/video/Movies/xXx (2002) [480p.x264.AC3]/xXx (2002) [480p.x264.AC3].mkv
or

Code: Select all

/volume1/video/Movies/xXx (2002) [480p.x264.AC3]/xXx (2002).mkv
I want to use the Plex format, but to now the video format so I now for example when I replace a SD by HD version of the same movie.

Thx
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Plex Naming Schemes

Post by rednoah »

There's no convenience method for this particular use case.

You'll either have to
(A) write your own custom format without using the {plex} binding at all, or
(B) write your own custom format using bits and pieces of the {plex} binding as necessary.

e.g.

Code: Select all

Movies/{plex[1]}{" [$vf.$vc.$ac]"}/{plex[2]}{" [$vf.$vc.$ac]"}

:!: Either way, you'll no longer be strictly adhering to the Plex naming scheme, although it'll probably work.
:idea: Please read the FAQ and How to Request Help.
gkalc
Posts: 1
Joined: 05 Aug 2018, 01:33

Re: [DEB] Debian package

Post by gkalc »

APT repo problem?

Code: Select all

# bash -xu <<< "$(curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/installer/deb.sh)"
+ curl -fsSL https://raw.githubusercontent.com/filebot/plugins/master/gpg/maintainer.pub
+ sudo apt-key add -
OK
+ echo 'deb [arch=amd64] https://get.filebot.net/deb/ stable main'
+ sudo tee /etc/apt/sources.list.d/filebot.list
deb [arch=amd64] https://get.filebot.net/deb/ stable main
+ sudo apt-get update
Ign:1 https://get.filebot.net/deb stable InRelease
Hit:2 http://ftp.ca.debian.org/debian buster InRelease              
Hit:3 https://get.filebot.net/deb stable Release                    
Hit:4 http://security.debian.org/debian-security buster/updates InRelease
Hit:5 http://ppa.launchpad.net/papirus/papirus/ubuntu bionic InRelease
Err:6 https://get.filebot.net/deb stable Release.gpg
  Signed file isn't valid, got 'NODATA' (does the network require authentication?)
Reading package lists... Done
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https://get.filebot.net/deb stable Release: Signed file isn't valid, got 'NODATA' (does the network require authentication?)
W: Failed to fetch https://get.filebot.net/deb/dists/stable/Release.gpg  Signed file isn't valid, got 'NODATA' (does the network require authentication?)
W: Some index files failed to download. They have been ignored, or old ones used instead.
+ sudo apt-get install filebot
Reading package lists... Done
Building dependency tree       
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

Maybe just a temporary issue of some kind? The repository files are all there as far as I can see, and fetch works for the URLs that seem to have an issue in your log:
https://get.filebot.net/deb/dists/
:idea: Please read the FAQ and How to Request Help.
mrpengy
Posts: 1
Joined: 11 Feb 2019, 18:36

Re: [DEB] Debian package

Post by mrpengy »

Just curious, will you put an arm package in the Deb repo? Would make upgrading much easier.

Thanks!
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [DEB] Debian package

Post by rednoah »

Yes, there will be a noarch package:
viewtopic.php?f=6&t=9535
:idea: Please read the FAQ and How to Request Help.
mouzzampk2014
Posts: 15
Joined: 07 Jan 2019, 00:49

Re: --mode interactive

Post by mouzzampk2014 »

I like it :)
User avatar
DaVoodoo
Posts: 10
Joined: 07 Jul 2017, 12:28

Re: Choose Java Swing Look-and-Feel (e.g. Dark Mode)

Post by DaVoodoo »

@rednoah, more detailed windows instructions for a noob please. :roll:
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Choose Java Swing Look-and-Feel (e.g. Dark Mode)

Post by rednoah »

  1. Open Start Menu and search for Set Environment Variables
  2. Click on New
    Name:

    Code: Select all

    FILEBOT_OPTS
    Value:

    Code: Select all

    -Dnet.filebot.theme=Darcula
  3. Click OK and then relaunch FileBot.

:!: Note that you'll need the latest revision (i.e. r6135 or higher) for any of this to work. The FileBot (platform) launcher is using the Darcula theme by default now as well.
:idea: Please read the FAQ and How to Request Help.
User avatar
DaVoodoo
Posts: 10
Joined: 07 Jul 2017, 12:28

Re: Choose Java Swing Look-and-Feel (e.g. Dark Mode)

Post by DaVoodoo »

Thanks rednoah. Much appreciated. :D
shreyas1122
Posts: 2
Joined: 19 Apr 2017, 01:31

Re: MediaInfo Inspector

Post by shreyas1122 »

I would like to use {video[0].frameRate} in an IF condition, I'm not able to figure out how to do it.
i tried printing the framerate on the gui and then comparing as float num and string, but it always returns a 'false' : {video[0].frameRate > 1.0 }

Any help ??
Thanks (Y)
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: MediaInfo Inspector

Post by rednoah »

You'll need to convert the String value to a Number before can compare it numerically:

Code: Select all

video[0].frameRate.toFloat() > 1.0
:idea: Please read the FAQ and How to Request Help.
devster
Posts: 391
Joined: 06 Jun 2017, 22:56

Re: Discord / Slack / IRC Channel

Post by devster »

The Slack channel seems to require an @filebot.net email account to sign up.
Is it still active?
I only work in black and sometimes very, very dark grey. (Batman)
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Discord / Slack / IRC Channel

Post by rednoah »

Discord Channel is the way to go. I'll update the OP.
:idea: Please read the FAQ and How to Request Help.
JustOneOfMany
Posts: 3
Joined: 09 Apr 2019, 10:02

Change from Upper case to Lower Case a part of s00e00

Post by JustOneOfMany »

HI,

I am new to Filebot and I am trying to figure out how to manipulate the output:

my preset is {n} {y} {s00e00} {t} which gives me the following output

MyName 2019 S01E01 First Try

but I would like to have the resulting output

MyName 2019 S01e01 First Try

Tried lower() etc to no avail. I am certainly missing something.

What is the fastest way of obtaining S01e01 instead of S01E01

Thank you in advance
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Presets

Post by rednoah »

This will do:

Code: Select all

s00e00.replace('E', 'e')
:idea: Please read the FAQ and How to Request Help.
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Discord / Slack / IRC Channel

Post by rednoah »

Discord is actively being used by a handful of people.
:idea: Please read the FAQ and How to Request Help.
GrEaTwArRiOr
Posts: 4
Joined: 07 Sep 2017, 05:15

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GrEaTwArRiOr »

hi, i am new here i try to do automation with jDownloader first i trying to understand the code...
i am a purchased user
here is my log below

Code: Select all

Locking C:\Users\WAVE111\AppData\Roaming\FileBot\logs\amc.log
Run script [fn:amc] at [Sun Apr 14 14:08:00 AEST 2019]
Parameter: skipExtract = y
Parameter: unsorted = y
Parameter: music = n
Parameter: artwork = n
Parameter: excludeList = excludes.txt
Parameter: ut_dir =
Parameter: ut_kind = multi
Parameter: ut_title =
Parameter: ut_label =
Argument[0]: D:\jDownload\extracted\test
Use excludes: D:\test\excludes.txt
Input: D:\jDownload\extracted\test\tests.mp4
xattr: [test.mp4] => [WWW - 2019x123 - April 2, 2019]
Group: [Series:test] => [test.mp4]
Rename episodes using [TheTVDB]
the thing that i need is i would like to use TMDB instead of TVDB also i just need to rename the file i dont need any subfolders.

please advise

thanks and regards,
Gr
Last edited by GrEaTwArRiOr on 14 Apr 2019, 04:23, edited 1 time in total.
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

The amc script does not allow you to use TheMovieDB as Episode Data Source, so you're plain out-of-luck here (unless you fork your own amc script).
:idea: Please read the FAQ and How to Request Help.
GrEaTwArRiOr
Posts: 4
Joined: 07 Sep 2017, 05:15

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GrEaTwArRiOr »

ok thanks, if there is any luck for without folder?
GrEaTwArRiOr
Posts: 4
Joined: 07 Sep 2017, 05:15

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by GrEaTwArRiOr »

ok thanks, if there is any luck for without folder?
User avatar
rednoah
The Source
Posts: 19340
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: [JDownloader] Setup for Windows, Linux and Mac OS X

Post by rednoah »

What does "without folder" mean in the context of running the amc script?
:idea: Please read the FAQ and How to Request Help.
Vartikanshi579
Posts: 1
Joined: 02 May 2019, 11:51

Re: [Anime] Convert Absolute to SxE numbers

Post by Vartikanshi579 »

I agree with rednoah.
Post Reply