Renaming into Waiting...

All your suggestions, requests and ideas for future development
Post Reply
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Renaming into Waiting...

Post by Chryses »

Hi, maybe is normal maybe not, but sometimes in renaming phase filebot rename, series tv or movies, in a strange maner, rename the file like that

Code: Select all

[esp.fenomeni.paranormali._s.rogerson_j.riedinger_.dvdrip._by.d3n.avi] => [Waiting... (2005).avi]
[L.Evocazione.2013.iTALiAN.MD.R6.XviD_BmA.CD2.avi] => [Waiting... (2005) - CD2.avi]
[L.Evocazione.2013.iTALiAN.MD.R6.XviD_BmA.CD1.avi] => [Waiting... (2005) - CD1.avi]
[Th3 M4tr1x.mkv] => [Waiting... (2005).mkv]
[Th3 M4tr1x R3l04d3d.mkv] => [Waiting... (2005).mkv]
[Th3 M4tr1x R3v0lut10ns.mkv] => [Waiting... (2005).mkv]
Maybe I do something wrong?

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

Re: Renaming into Waiting...

Post by rednoah »

I guess the folder is called Waiting (or something) and since the filename doesn't make any sense that's all it got.

Give me the full paths, and I can add that to the black list, so it'll at least just abort and do nothing

PS: Haha! Not even google can make sense of Th3 M4tr1x R3l04d3d ... that's officially too messed up then.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

:D :D :D

Code: Select all

Parameter: pushover = ***
Parameter: music = n
Parameter: artwork = n
Parameter: seriesFormat = Serie Tv/{n}/{n} - {s.pad(2)}x{es.collect{ it.pad(2) }.join('-')} - {t}
Parameter: movieFormat = Film/{n} ({y}){' - '+fn.match(/(?i)cd+[0-9]/).toUpperCase()}{' - '+fn.match(/(?i)cd +[0-9]/).toUpperCase()}
Argument: /media/TwoTera/Download/vari/La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi
Input: /media/TwoTera/Download/vari/La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi
La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi [series: null, movie: Waiting... (2005)]
Group: [tvs:null, mov:Waiting... (2005), anime:null] => [La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [/media/TwoTera/Download/vari/La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi]
[MOVE] Rename [/media/TwoTera/Download/vari/La.Maledizione.Di.Chucky.2013.ITALiAN.Dvdrip.XviD.COP.Strstreamita.net.avi] to [/media/TwoTera/Multimedia/Film/Waiting... (2005).avi]
Processed 1 files
Sending Pushover notification
Done ヾ(@⌒ー⌒@)ノ
Ps it's possible to modify the pushover notification?
So when filebot process one file, push is something like that
Filebot has just complete a process
from AAA
to BBB

Of if the renaming process is aborted, send that the file AAA can't be renamed
Make sense? Pushover has a 500 char limit, but auto cut off all message that exceed that limit.

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

Re: Renaming into Waiting...

Post by rednoah »

1.
Added "vari" to the blacklist.

I'd have worked if somebody had entered the Italian title into the TheMovieDB. That's your job now. ;)
http://www.themoviedb.org/movie/167032-curse-of-chucky

2.
Can't pushover limit is too small. That being said you can modify the script and do whatever you want and see if it works. There is in fact a thread somewhere on how to make this mod. In fact, I tried this for a while, and didn't like it, so didn't keep it. Use email if u want full info.

Error notifications is a good point. I don't really have time for these things though.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

Tnx for blacklist. :)

I don't think that edit your script, locally, is a great idea :D Because every time you update your script every mod go to hell 8-)

500 char don't seems to be soo small, think about an SMS :)
Btw, is only up to you, but think about to send one notify for each file converted, but maybe in this case is better that everyone set the personal key, so you don't exceed the 7500 message per month.

What do you think?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

Yep, the PushOver system where I have to "pay" for messages is stupid. So far it doesn't look like it's every gonna be exhausted. But if it sent 20 messages instead of 1 per person this might be an issue. Personal key would work, but then it's extra setup again, not out-of-the-box at all, might as well modify the script. :P
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

:D

What about a "double" config?

If I put my personal key and I activate the pushover, the program send a push notification for each files

If I don't put my personal key and I activate the pushover, the program send a push notification like now

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

Re: Renaming into Waiting...

Post by rednoah »

That's pretty much the definition of making your own mod. :D

I could always do another --def mypushover=ABCDXYZ but I'll probably only do that after I hit the 7500 limit with people. Actually not many people using amc with pushover.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

Maybe because the pushover function is pretty useless in that manner, I do not want to offend, I think yours is the best script in circulation! The only reason that I want to know the name before and after the renaming phase is because it's a program, and sometimes rename wrong the files, so I remember that I put one file in download, but I can't find it! :D :D :D Only the history function can tell me what happened to the file!

You're right for the mod, but here is not git hub, and I can fork and merge your beautiful script 8-)
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

Well, it takes 2min to implement, 20min to test. Most of the work is playing with it until you get it right. Everything just looks shitty on a small phone, and u can't use tables or anything.

Email just works much better, but if you come up with a good solution for pushover I can merge that in. ;)

Like I said, I did it, didn't like it, removed it again.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

You're right! Unfortunately I'm no able to do that neither in 20 days :lol:

But I've one idea!
It's possible to use the history function to get only the last renamed files?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

It'll give you the files that have been renamed during this filebot run. And it can give you the complete history of all files ever.

That's predefined. But if you wanna read the history.xml there's timestamps as well.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

So, with only the script I can't see only the last job, right?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

You can only see the current job.

You can have:
1. in-memory history
2. in-memory history + persistent from history.xml data
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

It's normal?

Code: Select all

Parameter: music = n
Parameter: artwork = n
Parameter: seriesFormat = Serie Tv/{n}/{n} - {s.pad(2)}x{es.collect{ it.pad(2) }.join('-')} - {t}
Parameter: movieFormat = Film/{n} ({y}){' - '+fn.match(/(?i)cd+[0-9]/).toUpperCase()}{' - '+fn.match(/(?i)cd +[0-9]/).toUpperCase()}
Argument: /media/TwoTera/Download/vari/Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv
Input: /media/TwoTera/Download/vari/Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv
NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
        at net.sourceforge.filebot.web.TMDbClient.searchMovie(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection.queryMovieByFileName(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection.detectMovie(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection$detectMovie.call(Unknown Source)
        at Script2.detectMovie(Script2.groovy:237)
        at Script2.detectMovie(Script2.groovy)
        at Script3$_run_closure33.doCall(Script3.groovy:136)
        at Script3.run(Script3.groovy:121)
        at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
        at net.sourceforge.filebot.Main.main(Unknown Source)
Failure (°_°)
For the push notification I made a workaround :D

Code: Select all

#!/bin/bash

From=$(grep -oP '(?<=from=").*(?=" to)' /home/xbmc/.filebot/history.xml)
To=$(grep -oP '(?<=to="/media/TwoTera/Multimedia/).*(?="/>)' /home/xbmc/.filebot/history.xml)

FromLast=$(echo "$From" | tail -1)
ToLast=$(echo "$To" | tail -1)

if [[ "$(tail -1 /home/xbmc/.filebot/logs/amc.log)" == *Fail* ]]
then
        text to push in case of failure;
else
        push command with echo "Filebot successfully renamed: $FromLast --> $ToLast"
fi
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

Can u reproduce that? With the latest revision?

Works for me:

Code: Select all

Argument: D:\workspace\testdata\AMC-TEST
Input: D:\workspace\testdata\AMC-TEST\Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv
Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv [series: Elysium, movie: Elysium (2013)]
Exclude Series: Elysium
Group: [tvs:null, mov:Elysium (2013), anime:null] => [Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv]
Rename movies using [TheMovieDB]
Auto-detect movie from context: [D:\workspace\testdata\AMC-TEST\Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv]
[COPY] Rename [D:\workspace\testdata\AMC-TEST\Elysium.2013.iTALiAN.MD.720p.WEBRip.x264-REv.mkv] to [D:\workspace\output\Movies\Elysium (2013)\Elysium (2013).mkv]
Processed 1 files
Done ヾ(@⌒ー⌒@)ノ
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

Maybe is the vari blacklisted?
How to replicate it?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

Has nothing to do with the vari blacklist thing, but TheMovieDB sending illegal response data. BUT I think I already fixed that a few weeks ago.

Are you using 3.62? Try the latest revision.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

Yep, reinstallated

Code: Select all

Preparing to replace filebot 3.62 (using filebot_3.62_i386.deb) ...

Code: Select all

NullPointerException: java.lang.NullPointerException
java.lang.NullPointerException
        at net.sourceforge.filebot.web.TMDbClient.searchMovie(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection.queryMovieByFileName(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection.detectMovie(Unknown Source)
        at net.sourceforge.filebot.media.MediaDetection$detectMovie.call(Unknown Source)
        at Script2.detectMovie(Script2.groovy:237)
        at Script2.detectMovie(Script2.groovy)
        at Script3$_run_closure33.doCall(Script3.groovy:136)
        at Script3.run(Script3.groovy:121)
        at net.sourceforge.filebot.cli.ScriptShell.evaluate(Unknown Source)
        at net.sourceforge.filebot.cli.ScriptShell.runScript(Unknown Source)
        at net.sourceforge.filebot.cli.ArgumentProcessor.process(Unknown Source)
        at net.sourceforge.filebot.Main.main(Unknown Source)
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

You're using the "old" release then. Rest assured that this issues has been fixed for a while. Wait for next release or grab the latest revision.
:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

ok, but, how to grab the latest?
I downloaded the deb from download list, is wrong?
User avatar
rednoah
The Source
Posts: 23930
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Renaming into Waiting...

Post by rednoah »

:idea: Please read the FAQ and How to Request Help.
Chryses
Posts: 66
Joined: 26 Aug 2012, 19:11

Re: Renaming into Waiting...

Post by Chryses »

Oups, Tnx, now works!
Post Reply