1.
Get each gallery name into a list: (eg: ['photogallery-ss-0,'photogallery-hh-0'])
2.
parse a gallery page (eg: photogallery-ss-0) and grab the thumbnail urls
(eg: http://i.imdb.com/Photos/Events/2405/th-DeniseRich_Grani_2115853_400.jpg)
& the amount of images left in the gallery (eg: grab 36 from html source of
gallery: >36 more</a>)
The first thumbnail page's url always ends with 0. 0 being the first page of the thumb gallery.
Each thumbnail page has a max of 12 thumbs per page. to get to the next page of thumbs, you
add 12 to the page number, 0, so the url is now: photogallery-ss-12 (page 2 of the gallery).
The next page would be photogallery-ss-24 (page 3 of the gallery) and so on. A full example
of a gallery url: http://www.imdb.com/title/tt0315824/photogallery-ss-0
If I grab the amount of images left after page 0, I can devide it by 12 to get the number of
pages left, in this case there would be 3 more pages of thumbs for that gallery.
3.
Create a function that will go to each gallery (eg: photogallery-ss-0,'photogallery-hh-0) for
the selected movie and:
- Grab the thumbs from the first page(s) of each gallery as well as grab the amount of images
left from each gallery
- Devide the amount of images left by 12 to get the amount of pages left (eg: 36/12=3, so their
are 3 pages left in the gallery)
- Go to each gallery page and return all possible thumbs, from all available pages, gallery into
their own lists, have the thumbnail names copied over like: Thumbs_0.jpg, Thumbs_1.jpg,
Thumbs_2.jpg, etc.