mirror of
				https://github.com/advplyr/audiobookshelf.git
				synced 2025-10-27 11:18:14 +01:00 
			
		
		
		
	Misnamed variable and cumulative length
This commit is contained in:
		
							parent
							
								
									34b340f179
								
							
						
					
					
						commit
						cadef9b023
					
				| @ -115,12 +115,12 @@ function generateParsedChapters(includedAudioFiles, cleanedOverdriveMediaMarkers | ||||
|     cleanedOverdriveMediaMarkers[track_index].forEach((chapter) => { | ||||
|       let timeParts = chapter.Time.split(':') | ||||
|       // add seconds
 | ||||
|       time = parseFloat(timeParts.pop()) | ||||
|       if (parts.length) { | ||||
|       time = length + parseFloat(timeParts.pop()) | ||||
|       if (timeParts.length) { | ||||
|         // add minutes
 | ||||
|         time += parseFloat(timeParts.pop()) * 60 | ||||
|       } | ||||
|       if (parts.length) { | ||||
|       if (timeParts.length) { | ||||
|         // add hours
 | ||||
|         time += parseFloat(timeParts.pop()) * 3600 | ||||
|       } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user