fix MediaType

This commit is contained in:
jxxghp
2023-07-07 15:41:53 +08:00
parent 89f2b60e7c
commit 39165a92f0
3 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ async def create_subscribe(
"""
# 类型转换
if subscribe_in.type:
mtype = MediaType.TV if subscribe_in.type == "电视剧" else MediaType.MOVIE
mtype = MediaType(subscribe_in.type)
else:
mtype = None
# 标题转换