[Logo] Jaikoz and SongKong Forums
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
The never ending rename mask story (maybe sometimes i will understand, still trying)  XML
Forum Index -> Jaikoz Questions
Author Message
Tagger Joe

Pro
[Avatar]

Joined: 25/11/2010 22:26:53
Messages: 23
Location: Munich Music Museum
Offline

Hi Again,

i want:
rename folderstructure from tags to:

U2/1980 - Boy

where U2 comes from Albumartist first, else from Artist, if Year is not emty

with compilations

Various/Album [CD1]

use CD (instead of Disc) if the mediatype is emty, use cd01 (with a leading 0) if the Disc Total is greater than 9)

rename filename from tags:

Artist - 01 - Title

where Artist comes from Albumartist first, else from Artist

and alternative:

Artist - Album - 01 - Title


rename filename from tags if compilation is true:

01 - Artist - Title

use Artist else Albumartist


hopefully i was precise enogh

...isnt it possible to build an interpreter that translates:
"Albumartist,Artist/Year - Album" to the f.... "code"? [sorry im only dreaming]

can we "non-porgrammers" have a topic for "example code"
i have fond some here in the depth of the forum, but to understand what it does it often is needed to copy that example-code to prefs, cause in the forumposts often does not have the resulting, renamed structure shown.

i realy tried to understand that (idonteveneknowwhatitis) i was able to handle the "old" sysstem" but sorry the new is not my world, yet... me>50yrs from german,

and please feel free to tell me how i can donate your work....

just one more thing:
is it somehow possible to write a "1" instead of the word "true" in isCompilation: set value ?

"tag my day"
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7361
Offline

Tagger Joe wrote:

rename folderstructure from tags to:
U2/1980 - Boy
where U2 comes from Albumartist first, else from Artist, if Year is not emty
 

Code:
  ifnotempty2(albumartist,artist,folderseparator) + ifnotempty(year,' - ')  + ifnotempty(album,folderseparator)
 


with compilations
Various/Album [CD1]
use CD (instead of Disc) if the mediatype is emty, use cd01 (with a leading 0) if the Disc Total is greater than 9)
 

Compilations are not necessarily Various Artists, you can also have Single Artist compilations, so what do yo want to do ?


rename filename from tags:
Artist - 01 - Title
where Artist comes from Albumartist first, else from Artist
and alternative:
Artist - Album - 01 - Title
 

Code:
 if(artist=albumartist)
 {
     ifnotempty2(albumartist,artist,' - ') + ifnotempty(pad(trackno,2),' - ') + title
 }
 else
 {
     ifnotempty2(albumartist,artist,' - ') + ifnotempty(album,' - ') + ifnotempty(pad(trackno,2),' - ') + title
 }
 



rename filename from tags if compilation is true:
01 - Artist - Title
use Artist else Albumartist
 

Code:
     ifnotempty2(albumartist,artist,' - ') + ifnotempty(pad(trackno,2),' - ') + title
 



...isnt it possible to build an interpreter that translates:
"Albumartist,Artist/Year - Album" to the f.... "code"? [sorry im only dreaming]
 

Possibly, but we did have a simpler naming criteria but it just wasnt flexible enough.

can we "non-porgrammers" have a topic for "example code"
i have fond some here in the depth of the forum, but to understand what it does it often is needed to copy that example-code to prefs, cause in the forumposts often does not have the resulting, renamed structure shown.

i realy tried to understand that (idonteveneknowwhatitis) i was able to handle the "old" sysstem" but sorry the new is not my world, yet... me>50yrs from german,
 

I will create a new Forum if others respond to favourably to your idea. The one good thing about the new system is that it is actually pure [b]Javascript[b/] so it should be easy for someone to phrase their question as a Javascript question and post it on a site like http://stackoverflow.com/ and get a quick answer.


and please feel free to tell me how i can donate your work....
 

Thankyou, you can use the button on this page to make additional donations http://www.jthink.net/jaudiotagger/donate.jsp

just one more thing:
is it somehow possible to write a "1" instead of the word "true" in isCompilation: set value ? 

thanks Paul (Administrator)
husker

Enthusiast

Joined: 16/01/2016 23:09:52
Messages: 15
Offline

I second the vote to have a forum of programming examples. I'm no programmer, and really need to spend too much time fumbling around.
paultaylor

Pro
[Avatar]

Joined: 21/08/2006 09:21:27
Messages: 7361
Offline

What I really need to do is bring Jaikoz up to the level of SongKong, SongKong comes with a large number of predefined masks, plus Javascript functions are kept separate from the masks.

I suppose in the meantime you could use SongKong (trial) as a learning tool for creating masks in Jaikoz, there a reonly a couple of minor differences the most significant being that Jaikoz has a separate subfolder and filename mask, whereas it is combined in SongKong

I recently added a SongKong example to the blog showing how you can limit the path length that could easily be adapted for Jaikoz

http://blog.jthink.net/2016/01/an-even-easier-way-to-shorten-audio.html

and I think the blog is the place to add additonal examples.

thanks Paul (Administrator)
husker

Enthusiast

Joined: 16/01/2016 23:09:52
Messages: 15
Offline

That would be helpful for more examples, thank you.
 
Forum Index -> Jaikoz Questions
Go to:   
Powered by JForum 2.1.6 © JForum Team