mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Auto format
This commit is contained in:
		
							parent
							
								
									fd3d4f5fcf
								
							
						
					
					
						commit
						6290cfaeb1
					
				| @ -145,15 +145,15 @@ function extractEpisodeData(item) { | ||||
| 
 | ||||
|   if (item.enclosure?.[0]?.['$']?.url) { | ||||
|     enclosure = item.enclosure[0]['$'] | ||||
|   } else if(item['media:content']?.find(c => c?.['$']?.url && (c?.['$']?.type ?? "").startsWith("audio"))) { | ||||
|     enclosure = item['media:content'].find(c => (c['$']?.type ?? "").startsWith("audio"))['$'] | ||||
|   } else if (item['media:content']?.find((c) => c?.['$']?.url && (c?.['$']?.type ?? '').startsWith('audio'))) { | ||||
|     enclosure = item['media:content'].find((c) => (c['$']?.type ?? '').startsWith('audio'))['$'] | ||||
|   } else { | ||||
|     Logger.error(`[podcastUtils] Invalid podcast episode data`) | ||||
|     return null | ||||
|   } | ||||
| 
 | ||||
|   const episode = { | ||||
|     enclosure: enclosure, | ||||
|     enclosure: enclosure | ||||
|   } | ||||
| 
 | ||||
|   episode.enclosure.url = episode.enclosure.url.trim() | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user