Page 1 of 1

[Resolved] Build Gallery ... help wanted

Posted: Thu Jan 31, 2013 9:42 pm
by pdpotter
I have revised this post many times, in order to escape the dreaded spam filter in the posting editor. If I have left you without enough information, I will be happy to supply nore. I am trying to build a gallery to download a list of files. Each file is named like this (links are added by the posting editor):

http://select.nytimes.com/premium/xword/2012/12/[b]01[/b]/Dec0112.puz

with sequential files stored in sequential directories. The last two parts of the URL are named for the day of the month and the file name. The next file would be the same, except the last two sections, which would be /02/Dec0212.puz. Each directory has only one file in it. The emboldened text is the only part of the URL that changes for each file. My best attempt of a gallery so far is:

http://select.nytimes.com/premium/xword/[2012-2012;1]/[12-12;1]/[01-05;1]/Dec[01-05;1]12.puz

This gallery cycles through all the puzzles for each day, then moves to the next day and cycles through the puzzles there. Unfortunately, there is only one file for each day.

Can anyone help me create a gallery that will change the last two sections so that I get these files:
.../01/Dec0112.puz
.../02/Dec0212.puz
.../03/Dec0312.puz
.../04/Dec0412.puz
.../05/Dec0512.puz
etc.

Phil from Coralville

Re: Build Gallery ... help wanted

Posted: Fri Feb 01, 2013 12:36 am
by therube
See if this has got it:

Code: Select all

http://select.nytimes.com/premium/xword/[2012-2012;1]/[12-12;1]/[01-05;1]/Dec[$03]12.puz
http://flashgot.net/features#build_gallery
http://flashgot.net/screenshots#build_gallery
http://flashgot.net/faq#qa5_2

Code: Select all

http://select.nytimes.com/premium/xword/2012/12/01/Dec0112.puz
http://select.nytimes.com/premium/xword/2012/12/02/Dec0212.puz
http://select.nytimes.com/premium/xword/2012/12/03/Dec0312.puz
http://select.nytimes.com/premium/xword/2012/12/04/Dec0412.puz
http://select.nytimes.com/premium/xword/2012/12/05/Dec0512.puz

Re: Build Gallery ... help wanted

Posted: Fri Feb 01, 2013 1:52 am
by pdpotter
Thank you, therube. Your code produced the right list on the Preview side, but only the first file was listed on the Content side. Puzzling, because if I hover over each link at that site, I see exactly what is in the Preview list for each file. The files get downloaded, but they are not recognized by the app (Across Lite). Your included links are helpful; I will study them further to see if I can figure it out.

Side note: I did not have this problem until recently. I suspect the site has a different structure than before, and that is exacerbating my problem.

Re: Build Gallery ... help wanted

Posted: Fri Feb 01, 2013 2:13 am
by pdpotter
therube wrote:See if this has got it:

Code: Select all

http://select.nytimes.com/premium/xword/[2012-2012;1]/[12-12;1]/[01-05;1]/Dec[$03]12.puz
http://flashgot.net/features#build_gallery
http://flashgot.net/screenshots#build_gallery
http://flashgot.net/faq#qa5_2

Code: Select all

http://select.nytimes.com/premium/xword/2012/12/01/Dec0112.puz
http://select.nytimes.com/premium/xword/2012/12/02/Dec0212.puz
http://select.nytimes.com/premium/xword/2012/12/03/Dec0312.puz
http://select.nytimes.com/premium/xword/2012/12/04/Dec0412.puz
http://select.nytimes.com/premium/xword/2012/12/05/Dec0512.puz
On second thought, therube, your code worked. I hadn't used the Synchronize ranges buttons. That $nn feature is one that I hadn't read about before.

When I pasted your code into the Preview window at the top, then clicked the down arrow for Synchronize ranges, I got the correct code in the Content window, and the files were listed correctly in the bottom Preview window. Better yet, the files were downloaded and opened successfully. When I used the FlashGot All command, the files were listed in sentence form, one after the other. Earlier (months ago), the files were listed one below the other. No biggie.

I don't remember having to synchronize the ranges, but it worked, so I will do it in the future. Thanks much for your help.