YAMJ / yamj-v2

Yet Another Movie Jukebox (YAMJ) v2
GNU General Public License v3.0
28 stars 11 forks source link

Failing to get cast from IMDB #2803

Closed GabrieleGiuseppini closed 6 years ago

GabrieleGiuseppini commented 6 years ago

It seems the IMDB plugin is now unable to retrieve the cast, at least from recent movies (e.g. https://www.imdb.com/title/tt5360996/?ref_=nv_sr_1).

This is the structure of the HTML in the actor block:

<td class="primary_photo"><a href="/name/nm1913734/?ref_=ttfc_fc_cl_i1"><img height="44" width="32" alt="Rooney Mara" title="Rooney Mara" src="https://m.media-amazon.com/images/G/01/imdb/images/nopicture/32x44/name-2138558783._CB470041625_.png" class="loadlate hidden " loadlate="https://m.media-amazon.com/images/M/MV5BMTM2NDE3MDk1OF5BMl5BanBnXkFtZTcwNjI1MDY0Nw@@._V1_UX32_CR0,0,32,44_AL_.jpg" /></a> </td> <td><a href="/name/nm1913734/?ref_=ttfc_fc_cl_t1"> Rooney Mara</a> </td> <td class="ellipsis"> ... </td> <td class="character"> <a href="/title/tt5360996/characters/nm1913734?ref_=ttfc_fc_cl_t1" >Mary Magdalene</a> </td> </tr>

GabrieleGiuseppini commented 6 years ago

...and these are the actor blocks extracted:

<a href="/name/nm0252230/?ref_=ttfc_fc_cl_i3"><img height="44" width="32" alt="Chiwetel Ejiofor" title="Chiwetel Ejiofor" src="https://m.media-amazon.com/images/G/01/imdb/images/nopicture/32x44/name-2138558783._CB470041625_.png" class="loadlate hidden " loadlate="https://m.media-amazon.com/images/M/MV5BNzA5MDEyMTY3Nl5BMl5BanBnXkFtZTgwODQ0MjcxMDE@._V1_UX32_CR0,0,32,44_AL_.jpg" /></a> </td> <td><a href="/name/nm0252230/?ref_=ttfc_fc_cl_t3"> Chiwetel Ejiofor</a> </td> <td class="ellipsis"> ... </td> <td class="character"> Peter </td>

Clearly there's no "itemprop=name" span anymore.

GabrieleGiuseppini commented 6 years ago

Fixed.