@@ -156,33 +156,29 @@ public double Score
156156
157157#region
158158
159- public bool IsScanResult { get ; private init ; }
160-
161- [ CBN ]
162- private Url m_thumbnail ;
159+ public bool IsCloned { get ; private init ; }
163160
164161 [ CBN ]
162+ [ field: CBN ]
165163 public Url Thumbnail
166164 {
167- get => m_thumbnail ;
165+ get ;
168166 internal set
169167 {
170- if ( SetField ( ref m_thumbnail , value ) ) {
168+ if ( SetField ( ref field , value ) ) {
171169 OnPropertyChanged ( nameof ( HasThumbnail ) ) ;
172170 }
173171 }
174172 }
175173
176174 [ CBN ]
177- private ISImage m_thumbnailImage ;
178-
179- [ CBN ]
175+ [ field: CBN ]
180176 public ISImage ThumbnailImage
181177 {
182- get => m_thumbnailImage ;
178+ get ;
183179 internal set
184180 {
185- if ( SetField ( ref m_thumbnailImage , value ) ) {
181+ if ( SetField ( ref field , value ) ) {
186182 OnPropertyChanged ( nameof ( HasThumbnail ) ) ;
187183 }
188184 }
@@ -266,7 +262,7 @@ public SearchResultItem CloneWithUrl(Url s)
266262 Site = Site ,
267263 Source = Source ,
268264 Time = Time ,
269- IsScanResult = true ,
265+ IsCloned = true ,
270266 } ;
271267 }
272268
@@ -285,7 +281,7 @@ public SearchResultItem CloneWithUrl(Url s)
285281 var str = await sr.ReadToEndAsync(ct);
286282
287283 var hp = new HtmlParser();
288- var urls = ImageScanner.GetImageUrls (str, Url);
284+ var urls = ImageScanner.ParseImageUrls (str, Url);
289285 using var doc = await hp.ParseDocumentAsync(str);
290286 var sriNews = new ConcurrentBag<SearchResultItem>();
291287
@@ -345,7 +341,7 @@ public async ValueTask<bool> ScanAsync2(CancellationToken ct = default)
345341 var str = await sr . ReadToEndAsync ( ct ) ;
346342
347343 var hp = new HtmlParser ( ) ;
348- var urls = ImageScanner . GetImageUrls ( str , Url ) ;
344+ var urls = ImageScanner . ParseImageUrls ( str , Url ) ;
349345 using var doc = await hp . ParseDocumentAsync ( str ) ;
350346 var sriNews = new ConcurrentBag < SearchResultItem > ( ) ;
351347
0 commit comments