Various fix
This commit is contained in:
		
							parent
							
								
									e9a79d39c5
								
							
						
					
					
						commit
						de1dacc837
					
				
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@ -10,3 +10,4 @@ build/**
 | 
			
		||||
**/*.nef
 | 
			
		||||
**/*.rw2
 | 
			
		||||
env/**
 | 
			
		||||
/tags
 | 
			
		||||
 | 
			
		||||
@ -312,7 +312,6 @@ def _update(album, location, time, title, paths, debug):
 | 
			
		||||
            media.set_album(album, current_file)
 | 
			
		||||
            updated = True
 | 
			
		||||
 | 
			
		||||
        import ipdb; ipdb.set_trace()
 | 
			
		||||
        # Updating a title can be problematic when doing it 2+ times on a file.
 | 
			
		||||
        # You would end up with img_001.jpg -> img_001-first-title.jpg ->
 | 
			
		||||
        # img_001-first-title-second-title.jpg.
 | 
			
		||||
 | 
			
		||||
@ -651,6 +651,7 @@ class FileSystem(object):
 | 
			
		||||
 | 
			
		||||
        # If source and destination are identical then
 | 
			
		||||
        #  we should not write the file. gh-210
 | 
			
		||||
        # TODO Allow this for update?
 | 
			
		||||
        if(_file == dest_path):
 | 
			
		||||
            print('Final source and destination path should not be identical')
 | 
			
		||||
            return
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user