#102 ✓resolved
rudra

total no of episodes in a season

Reported by rudra | September 7th, 2016 @ 07:27 AM

How to get total no of episodes in a season . is there an api exposed.

Comments and changes to this ticket

  • dbr/Ben

    dbr/Ben September 7th, 2016 @ 11:00 PM

    • State changed from “new” to “resolved”

    Each season is just a dictionary where each key is an episode.. so you just need to call len() on it

    Something this should work:

    t = tvdb_api.Tvdb()
    season = t['Scrubs'][1]
    print(len(season))
    

    Same with number of seasons,

    print(len(t['Scrubs']))
    

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Pages