fix typing

This commit is contained in:
Simon 2023-07-28 09:35:56 +07:00
parent 5777e13e40
commit 88c35e57cf
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ class Show:
"""get ta channel metadata""" """get ta channel metadata"""
episodes: list[JFEpisode] = self._get_all_episodes(limit=1) episodes: list[JFEpisode] = self._get_all_episodes(limit=1)
if not episodes: if not episodes:
return return None
episode: JFEpisode = episodes[0] episode: JFEpisode = episodes[0]
youtube_id: str = os.path.split(episode["Path"])[-1][9:20] youtube_id: str = os.path.split(episode["Path"])[-1][9:20]
path = f"/video/{youtube_id}" path = f"/video/{youtube_id}"