Page 1 of 1

[RESOLVED] Gallery build A string for [ANYTHING-HERE].mp3

Posted: Sun Aug 05, 2012 3:06 pm
by brincher
I need a string, but I don't know if it exists on Flashgot.
Let's suppose I have this structure on a website:

website.com/directory1/530/directory3/file_A.mp3
website.com/directory1/526/directory3/file_B.mp3

Only the names of the 2nd level subdirectory AND the mp3 file change. Is it possible to use something like:

website.com/directory1/526/directory3/[ANYTHING-HERE].mp3

Is there a string I can use to represent something like "[ANYTHING-HERE]"?
I'm using ".mp3" as an example, but I was actually thinking about any file extension.

Sorry for my bad english and thanks in advance.

Re: [gallery building] A string for [ANYTHING-HERE].mp3

Posted: Wed Aug 08, 2012 8:47 pm
by GµårÐïåñ
I haven't tried it but I was under the impression that RegEx and Glob methods are both valid in this case and can be used. Giorgio?
But as far as you are saying, you can't just have the program grab ANYTHING at the end of a directory, it has to have a filename and it can't just magically come up with it. If the directory is readable, which most are not nowadays, then ok, it can parse them, but otherwise, you can't expect the program to blindly know the names, you need to provide it. Now if you know the format, yeah, you can give it the format and it will grab them using that structure, but without something, it can't just grab EVERYTHING at a root/ of a directory without knowing what the filename is.

Re: [gallery building] A string for [ANYTHING-HERE].mp3

Posted: Wed Aug 08, 2012 9:03 pm
by Giorgio Maone
Unfortunately the Build Gallery feature is agnostic about the actual existence of the files whose names it can generate.
Either you know how to produce the [ANYTHING-HERE] replacement (even algorithmically, since JavaScript snippets are supported) or you're out of luck, sorry.

Re: [gallery building] A string for [ANYTHING-HERE].mp3

Posted: Wed Aug 08, 2012 9:05 pm
by GµårÐïåñ
Thank you for confirming Giorgio, that's what I said and what I thought.

Re: [gallery building] A string for [ANYTHING-HERE].mp3

Posted: Sat Aug 18, 2012 1:50 am
by brincher
thanks for the effective and quick answer, guys!
:D

Re: [gallery building] A string for [ANYTHING-HERE].mp3

Posted: Sat Aug 18, 2012 3:10 am
by GµårÐïåñ
You are very welcome.