@@ -203,15 +203,15 @@ await _apiLib.DownloadReportAsync(
203203 {
204204 ReportCurrent ( "Posters" , current , total , cancellationToken . IsCancellationRequested ) ;
205205 string filePath = Path . Combine ( dir , $ "{ item . Id } -{ index . ToString ( "000" ) } .jpg") ;
206- await Utils . DownloadFileAsync ( filePath , p . Link , Program . GetWebProxy ( ) ) ;
206+ await Utils . DownloadFileAsync ( filePath , p . Link , _apiLib . WebProxy ) ;
207207 current ++ ;
208208 index ++ ;
209209 }
210210 foreach ( var p in data . Posters . Backdrops )
211211 {
212212 ReportCurrent ( "Posters" , current , total , cancellationToken . IsCancellationRequested ) ;
213213 string filePath = Path . Combine ( dir , $ "{ item . Id } -{ index . ToString ( "000" ) } .jpg") ;
214- await Utils . DownloadFileAsync ( filePath , p . Link , Program . GetWebProxy ( ) ) ;
214+ await Utils . DownloadFileAsync ( filePath , p . Link , _apiLib . WebProxy ) ;
215215 current ++ ;
216216 index ++ ;
217217 }
@@ -246,7 +246,7 @@ await _apiLib.DownloadReportAsync(
246246 ReportCurrent ( "Images" , currentIndex , total , cancellationToken . IsCancellationRequested ) ;
247247 string filePath = Path . Combine ( dir , $ "{ Utils . RenameToPhisicalName ( img . Title ) } .jpg") ;
248248 string url = img . Image ;
249- await Utils . DownloadImageAsync ( filePath , url , Program . GetWebProxy ( ) ) ;
249+ await Utils . DownloadImageAsync ( filePath , url , _apiLib . WebProxy ) ;
250250 currentIndex ++ ;
251251 }
252252
@@ -271,7 +271,7 @@ await _apiLib.DownloadReportAsync(
271271 video . Url ,
272272 new ProgressData ( progress => ReportCurrent ( $ "Trailer", progress . Current , progress . Total , cancellationToken . IsCancellationRequested , true ) ) ,
273273 cancellationToken ,
274- Program . GetWebProxy ( ) ) ;
274+ _apiLib . WebProxy ) ;
275275
276276 if ( trailerBytes != null )
277277 {
0 commit comments