T O P I C R E V I E W |
Hei |
Posted - 20 May 2012 : 07:34:13 Hello everybody. I am trying to find a way to rename my files as I usually manually do but through XMM. Sorry about my english, I usually speak french. With other friends who do not use movie manager we use this way of rename scheme : <TITLE> (YEAR).[GENRE.SUBGENRE1.SUBGENRE2.SUBGENREX.FILESRC1.FILELANG1.FILESUBT1].<EXTENSION> Which would give someting like these examples :
My summer movie (2011).[Bio.Fam.HDCam].avi The Amazing Spider-Man (2012).[Act.Adv.Fan.TS.MD.VO].mkv Avatar (2009).[Act.Adv.Fan.BDRIP.1080p.DTS].mkv Spider-Man (2002).[Act.Adv.Fan.DVDRIP].avi Wrong Turn (2004).[Hor.Thr.DVDRIP].avi Flight of the Navigator (1986).[Fam.Adv.Sci.VHSRIP].avi
So they can easily keep them in a folder and see what kind of movie it is and a few more info... I know that people have already asked about filename scan features to fill XMM field.
For now, I have moded the IMDB (Complete) Script to generate the first category part of the filename. I have manually filled the MEDIA field. And I have used the renamer tool with this scheme : <TITLE> (YEAR).[<CUSTOM4>.<MEDIA>] I have used MEDIA field to store DVDRIP or other source name...
I have checked this page: http://xmm.a.wiki-site.com/index.php/MagicScript_Technology_Programmer%27s_Guide#TAKEXXX I haven't found function to retrieve the FILENAME1 value through its field.
I wish to get this possibility : #GETMOVIEVAR#=#??#=#FILENAME1VALUE# for the filename1 field so I could retrieve filename keywords and manipulate it by using MagicScript.
A few more totaly free CUSTOM field accessible via the renamer tool, so we do not use already reserved field. At least a CUSTOM12 for a personnal renaming string container so I could let the Custom4 to the default Repository field.
For information, here is the moded part of IMDB (Complete) default script which fill the CUSTOM4 field for my need: I don't know why but when I have used TAKECUSTOM4 in a loop to get the categories, it putted undesired exta space between each retrieved value even with TRIM. So I change it for an other method to get "CAT.SUB.SUB.SUB" and not "CAT .SUB .SUB .SUB".
#CUSTOM4#
#RESTOREMAIN#
#STARTREADWEB#
#FINDLINE#=<h4 class="inline">Genres:</h4>#12##ONERROR#=*STOP*
#PUT#=0#01#
#PUT#=#14#
:REPEATCUSTOM4
#READNEXTLINE#=1
#FIND#=</div>#12# #ONERROR#=*OK*
#IF# #12#<>#00#
#GOTO#=ENDCUSTOM4
#ENDIF#
#RESETCURSOR#
:JC4LINE
#FIND#=>#11# #ONERROR#=*OK*
#IF# #11#==#00#
#READNEXTLINE#=1
#GOTO#=JC4LINE
#ENDIF#
#FIND#=<#12# #ONERROR#=*OK*
#PUT#=3#12#
#TAKEWORDLEN#=#13#,#11#,#12#
#CHECKVARIABLE#=#13#
#STARTDELETETAGS#
#STARTSUBSTITUTETAGS#
#CLEARTAGS#
#TRIM#
#IF# #01#<>#00#
#STRING#=#13#=.#13#
#ENDIF#
#IF# #01#==#00#
#PUT#=1#01#
#ENDIF#
#STRING#=#14#=#14##13#
#GOTO#=REPEATCUSTOM4
:ENDCUSTOM4
#TAKECUSTOM4#=#14#
#ENDCUSTOM4#
Regards |
2 L A T E S T R E P L I E S (Newest First) |
Hei |
Posted - 23 May 2012 : 19:53:15 quote: I mean, why you want use the filename in the script? Scripts are only used to grab information from Internet.
Yes, it is. We could use Magicscript to rename file too. I could use it at least to prepare a CUSTOM field to be used with your renamer tool. I could make a script included in a chainscript just after your IMDB.com to retrieve the three first characters of each genre for exemple or I could make a standalone script which retrieve information from internet and scanned keywords from filename : Title (YEAR).[KEYWORD.KEYWORD.KEYWORD.KEYWORD].ext Short keywords could be : VFF, VFB, VFQ, VO, VHSRiP, DVDRiP, BDRiP, 1080p, 360p, MD, R5, AC3, MP3, H264, etc... Keywords could be scanned and be stored automaticaly and not manualy as we do because no website use them as we do.
Perhaps that you could add a Magicscript manager to the actual renamer file tool instead ? This let us scan file and retrieve info from both filename and from XMM fields through #GETMOVIEVAR# infos retrieved with Internet Script "only" . This would be for more advanced user too who would need <LEFT(GENRE,3)> or <LEN(GENRE,0,3)> instead of <GENRE>. I could use #TAKEWORDLEN#=#13#,#11#,#12# and more #XXXVALUE# or %XXX% variables. It could be use to rename filename and fill a few desired XMM field. XMM users are already used to MagicScript so it won't disturb them.
With friends, we always use IMDB.com first as reference for genre and subgenre to avoid duplicate movie filename.
Perhaps that I'm still not clear and this could be due to the fact that i am still not used to MagicScript. If I am not wrong GETMOVIEVAR is be used to retrieve value from XMM Field through %title%, CUSTOM4 through #CUSTOM4VALUE#. So could it be the same for others fields as FILENAME1 through #FILENAME1# or #FILENAME1VALUE# or %filename1% ?
Regards |
Alessio Viti |
Posted - 23 May 2012 : 18:16:43 Hello and sorry for my late reply!
If I have understand correctly you want rename your files, but what I have not understand is why you want this function:
#GETMOVIEVAR#=#??#=#FILENAME1VALUE#
I mean, why you want use the filename in the script? Scripts are only used to grab information from Internet.
Please let me know.
Alessio |
|
|