mirror of
				https://github.com/KrumpetPirate/AAXtoMP3.git
				synced 2025-10-30 19:10:42 +01:00 
			
		
		
		
	Added big FAT metadata to DEBUG output.
This commit is contained in:
		
							
								
								
									
										12
									
								
								AAXtoMP3
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								AAXtoMP3
									
									
									
									
									
								
							| @@ -83,6 +83,16 @@ debug() { | ||||
|   fi | ||||
| } | ||||
|  | ||||
| # debug dump contents of a file to STDOUT | ||||
| debug_file() { | ||||
|   if [ $DEBUG == 1 ] ; then | ||||
|     echo "$(date "+%F %T%z") DEBUG" | ||||
|     echo "================================================================================" | ||||
|     cat "${1}" | ||||
|     echo "================================================================================" | ||||
|   fi | ||||
| } | ||||
|  | ||||
| # log | ||||
| log() { | ||||
|     echo "$(date "+%F %T%z") ${1}" | ||||
| @@ -96,6 +106,8 @@ save_metadata() { | ||||
|     local media_file | ||||
|     media_file="$1" | ||||
|     ffprobe -i "$media_file" 2> "$metadata_file" | ||||
|     debug "Metadata file $metadata_file" | ||||
|     debug_file "$metadata_file" | ||||
| } | ||||
|  | ||||
| get_metadata_value() { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user