import requests
from bs4 import BeautifulSoup


class AniGamerComTwAnimeVideo:
    def getData(self, url):
        text = requests.get(url).text
        soup = BeautifulSoup(text, 'html.parser')
        data = {}

        data['episodes'] = len(soup.find('section', {'class': 'season'}).find('ul').findAll('li'))

        return data

@@ -219,31 +219,17 @@
     
-data%5B'episodes'%5D = len(
+season = 
 soup
@@ -265,16 +265,132 @@
 eason'%7D)
+%0A        if season is None:%0A            data%5B'episodes'%5D = 1%0A        else:%0A            data%5B'episodes'%5D = len(season
 .find('u

FIx season