title: Is there a way to retrieve an episode count & dates from an actor that played multiple roles?
body: <p>To be clearer : I would like to retrieve in how many episodes <em>of a serie</em> an actor appeared (with the dates) as it's displayed in IMDB.</p>
  <p><a href="https://www.imdb.com/title/tt0436992/" rel="nofollow noreferrer">I'm using the Doctor Who page as an example</a></p>
  <p><a href="https://i.stack.imgur.com/mPZRK.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/mPZRK.png" alt="Cast for Doctor Who" /></a></p>
  <p>In this case, I would like to know that Matt Smith appeared in 46 episodes, from 2010 to 2020.</p>
  <p>IMDB does perfectly that on a character object, with currentRole, and it's notes attribute</p>
  <pre class="lang-py prettyprint-override"><code>from imdb import IMDb
  
  ia = IMDb()
  movie = ia.get_movie('0436992') # id for Doctor Who
  cast = movie['cast']
  print(&quot;Actor name :&quot;, cast[0]['name'])
  print(&quot;Role :&quot;, cast[0].currentRole)
  print(&quot;Notes :&quot;, cast[0].notes)
  </code></pre>
  <p>Displays</p>
  <pre><code>Actor name : Matt Smith
  Role : The Doctor
  Notes : (58 episodes, 2010-2020)
  </code></pre>
  <p><em>(weirdly, the episode count is wrong, as there is 46 written on the website, and 54 episodes shown if you click on it, but this is not my point)</em></p>
  <p>However, other actors played multiple characters in this serie, <code>Character.currentRole</code> returns then a list. I changed my code to get it correctly :</p>
  <pre class="lang-py prettyprint-override"><code>
  from imdb import IMDb
  
  ia = IMDb()
  movie = ia.get_movie('0436992')
  cast = movie['cast']
  
  for i in range(2):
  
      print(&quot;Actor name :&quot;, cast[i]['name'])
  
      if isinstance(cast[i].currentRole, list):
          print(&quot;Roles :&quot;)
          for role in cast[i].currentRole:
              print(&quot; - &quot;, role, &quot; (Note :&quot; + role.notes + &quot;)&quot;)
  
      else:
          print(&quot;Role :&quot;, cast[i].currentRole)
      print(&quot;Notes :&quot;, cast[i].notes)
      print(&quot;&quot;)
  </code></pre>
  <p>But the result is :</p>
  <pre><code>Actor name : Matt Smith
  Role : The Doctor
  Notes : (58 episodes, 2010-2020)
  
  Actor name : David Tennant
  Roles :
   -  The Doctor  (Note :)
   -  ...  (Note :)
  Notes :
  </code></pre>
  <p>I can't retrieve informations I would like here, and all of the &quot;notes&quot; are empty. I tried digging up in the Person and Character objects from imdbpy while debugging, couldn't find what I need.</p>
  <p>It seems that it occurs only for actors playing multiple characters, is there a way to retrieve this with imdbpy, and not an external parser ?</p>
  <p>Any idea is appreciated</p>