mirror of
				https://github.com/owntone/owntone-server.git
				synced 2025-10-29 15:55:02 -04:00 
			
		
		
		
	add smart-playlist evaluation to mp3 adder. Arguably deserves to go in db_add
This commit is contained in:
		
							parent
							
								
									2fde2c1250
								
							
						
					
					
						commit
						9eb513bfa8
					
				| @ -34,6 +34,7 @@ | ||||
| #include "db-memory.h" | ||||
| #include "err.h" | ||||
| #include "mp3-scanner.h" | ||||
| #include "playlist.h" | ||||
| 
 | ||||
| /*
 | ||||
|  * Typedefs | ||||
| @ -352,6 +353,7 @@ int scan_foreground(char *path) { | ||||
| 		    if(!scan_gettags(mp3file.path,&mp3file) &&  | ||||
| 		       !scan_getfileinfo(mp3file.path,&mp3file)) { | ||||
| 			db_add(&mp3file); | ||||
| 			pl_eval(&mp3file); | ||||
| 		    } else { | ||||
| 			DPRINTF(ERR_INFO,"Skipping %s\n",de.d_name); | ||||
| 		    } | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user