mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-10-29 09:26:20 -07:00 
			
		
		
		
	[utils] Fix match_str for boolean meta fields
This commit is contained in:
		| @@ -2574,8 +2574,8 @@ def _match_one(filter_part, dct): | ||||
|         return op(actual_value, comparison_value) | ||||
|  | ||||
|     UNARY_OPERATORS = { | ||||
|         '': lambda v: v is not None, | ||||
|         '!': lambda v: v is None, | ||||
|         '': lambda v: (v is True) if isinstance(v, bool) else (v is not None), | ||||
|         '!': lambda v: (v is False) if isinstance(v, bool) else (v is None), | ||||
|     } | ||||
|     operator_rex = re.compile(r'''(?x)\s* | ||||
|         (?P<op>%s)\s*(?P<key>[a-z_]+) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user