mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-03 23:14:13 +00:00 
			
		
		
		
	use import configuration for media downloads in notes importer
				
					
				
			This commit is contained in:
		
							parent
							
								
									b3d2cd65aa
								
							
						
					
					
						commit
						eef8a9e24c
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -626,7 +626,7 @@ export class ImportNotesProcessorService {
 | 
			
		|||
 | 
			
		||||
						if (!exists) {
 | 
			
		||||
							try {
 | 
			
		||||
								await this.downloadService.downloadUrl(videos[0].url, filePath);
 | 
			
		||||
								await this.downloadUrl(videos[0].url, filePath);
 | 
			
		||||
							} catch (e) { // TODO: 何度か再試行
 | 
			
		||||
								this.logger.error(e instanceof Error ? e : new Error(e as string));
 | 
			
		||||
							}
 | 
			
		||||
| 
						 | 
				
			
			@ -651,7 +651,7 @@ export class ImportNotesProcessorService {
 | 
			
		|||
 | 
			
		||||
						if (!exists) {
 | 
			
		||||
							try {
 | 
			
		||||
								await this.downloadService.downloadUrl(file.media_url_https, filePath);
 | 
			
		||||
								await this.downloadUrl(file.media_url_https, filePath);
 | 
			
		||||
							} catch (e) { // TODO: 何度か再試行
 | 
			
		||||
								this.logger.error(e instanceof Error ? e : new Error(e as string));
 | 
			
		||||
							}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue