Quodlibet publishes duration information as decimal with fractional part.
This commit is contained in:
		
							parent
							
								
									ca3b5eee3c
								
							
						
					
					
						commit
						3dfdc20272
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -198,7 +198,7 @@ class MusicTrackListener(GObject.GObject):
 | 
			
		|||
        info.title = props.get('title', None)
 | 
			
		||||
        info.album = props.get('album', None)
 | 
			
		||||
        info.artist = props.get('artist', None)
 | 
			
		||||
        info.duration = int(props.get('~#length', 0))
 | 
			
		||||
        info.duration = float(props.get('~#length', 0))
 | 
			
		||||
        return info
 | 
			
		||||
 | 
			
		||||
    def get_playing_track(self):
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue