@@ -318,10 +318,12 @@ def __init__(self,
318318
319319 # 有的 album 没有章节,则自成一章。
320320 if len (episode_list ) == 0 :
321- # photo_id, photo_index_of_album, photo_title, photo_pub_date
322- episode_list = [(album_id , 0 , title , pub_date )]
321+ # photo_id, photo_index, photo_title, photo_pub_date
322+ episode_list = [(album_id , 1 , title , pub_date )]
323+ else :
324+ episode_list = self .distinct_episode (episode_list )
323325
324- self .episode_list : List [Tuple ] = self . distinct_episode ( episode_list )
326+ self .episode_list : List [Tuple ] = episode_list
325327
326328 def create_photo_detail (self , index ) -> Tuple [JmPhotoDetail , Tuple ]:
327329 # 校验参数
@@ -332,15 +334,15 @@ def create_photo_detail(self, index) -> Tuple[JmPhotoDetail, Tuple]:
332334
333335 # episode_info: ('212214', '81', '94 突然打來', '2020-08-29')
334336 episode_info : tuple = self .episode_list [index ]
335- photo_id , photo_index_of_album , photo_title , photo_pub_date = episode_info
337+ photo_id , photo_index , photo_title , photo_pub_date = episode_info
336338
337339 photo = JmPhotoDetail (
338340 photo_id = photo_id ,
339341 scramble_id = self .scramble_id ,
340342 title = photo_title ,
341343 keywords = '' ,
342344 series_id = self .album_id ,
343- sort = episode_info [ 1 ] if len ( self ) != 1 else 1 ,
345+ sort = photo_index ,
344346 author = self .author ,
345347 from_album = self ,
346348 page_arr = None ,
0 commit comments