@@ -457,10 +457,10 @@ def __init__(self,
457457 self .authors : List [str ] = authors # 作者
458458
459459 # 有的 album 没有章节,则自成一章。
460- episode_list : List [Tuple [str , str , str ]]
460+ episode_list : List [Tuple [str , str , str , Optional [ str ] ]]
461461 if len (episode_list ) == 0 :
462- # photo_id, photo_index, photo_title
463- episode_list = [(album_id , "1" , name )]
462+ # photo_id, photo_index, photo_title, photo_pub_date
463+ episode_list = [(album_id , "1" , name , None )]
464464 else :
465465 episode_list = self .distinct_episode (episode_list )
466466
@@ -486,7 +486,7 @@ def id(self):
486486 def distinct_episode (episode_list : list ):
487487 """
488488 去重章节
489- photo_id, photo_index, photo_title
489+ photo_id, photo_index, photo_title, photo_pub_date
490490 """
491491 episode_list .sort (key = lambda e : int (e [1 ])) # 按照photo_index排序
492492 ret = [episode_list [0 ]]
@@ -505,7 +505,7 @@ def create_photo_detail(self, index) -> JmPhotoDetail:
505505 raise IndexError (f'photo index out of range for album-{ self .album_id } : { index } >= { length } ' )
506506
507507 # ('212214', '81', '94 突然打來', '2020-08-29')
508- pid , pindex , pname = self .episode_list [index ]
508+ pid , pindex , pname , _ = self .episode_list [index ]
509509
510510 photo = JmModuleConfig .photo_class ()(
511511 photo_id = pid ,
0 commit comments