@@ -18,7 +18,7 @@ def download_album(jm_album_id, option=None):
18
18
jm_debug ('album' ,
19
19
f'本子获取成功: [{ album .id } ], '
20
20
f'作者: [{ album .author } ], '
21
- f'章节数: [{ len (album )} ]'
21
+ f'章节数: [{ len (album )} ], '
22
22
f'标题: [{ album .title } ], '
23
23
)
24
24
@@ -30,11 +30,14 @@ def download_photo(photo: JmPhotoDetail,
30
30
jm_debug (debug_topic ,
31
31
f'开始下载章节: { photo .id } ({ photo .album_id } [{ photo .index } /{ len (album )} ]), '
32
32
f'标题: [{ photo .title } ], '
33
- f'图片数为[{ len (photo )} ]' )
33
+ f'图片数为[{ len (photo )} ]'
34
+ )
34
35
35
36
download_by_photo_detail (photo , option )
36
37
37
- jm_debug (debug_topic , f'章节下载完成: { photo .id } ({ photo .album_id } [{ photo .index } /{ len (album )} ])' )
38
+ jm_debug (debug_topic ,
39
+ f'章节下载完成: { photo .id } ({ photo .album_id } [{ photo .index } /{ len (album )} ])'
40
+ )
38
41
39
42
thread_pool_executor (
40
43
iter_objs = album ,
@@ -98,7 +101,8 @@ def download_image(index, image: JmImageDetail, debug_topic='image'):
98
101
# 已下载过,缓存命中
99
102
if use_cache is True and file_exists (img_save_path ):
100
103
jm_debug (debug_topic ,
101
- f'图片已存在: { debug_tag } ← [{ img_save_path } ]' )
104
+ f'图片已存在: { debug_tag } ← [{ img_save_path } ]'
105
+ )
102
106
return
103
107
104
108
# 开始下载
@@ -109,7 +113,8 @@ def download_image(index, image: JmImageDetail, debug_topic='image'):
109
113
)
110
114
111
115
jm_debug (debug_topic ,
112
- f'图片下载完成: { debug_tag } , [{ image .img_url } ] → [{ img_save_path } ]' )
116
+ f'图片下载完成: { debug_tag } , [{ image .img_url } ] → [{ img_save_path } ]'
117
+ )
113
118
114
119
length = len (photo_detail )
115
120
# 根据图片数,决定下载策略
0 commit comments