mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-30 22:25:19 +00:00 
			
		
		
		
	Improve URL extraction
This commit is contained in:
		| @@ -5,7 +5,6 @@ import re | ||||
|  | ||||
| from .common import InfoExtractor | ||||
| from .generic import GenericIE | ||||
| from ..compat import compat_str | ||||
| from ..utils import ( | ||||
|     determine_ext, | ||||
|     ExtractorError, | ||||
| @@ -15,6 +14,7 @@ from ..utils import ( | ||||
|     unified_strdate, | ||||
|     xpath_text, | ||||
|     update_url_query, | ||||
|     url_or_none, | ||||
| ) | ||||
| from ..compat import compat_etree_fromstring | ||||
|  | ||||
| @@ -100,7 +100,7 @@ class ARDMediathekIE(InfoExtractor): | ||||
|                 quality = stream.get('_quality') | ||||
|                 server = stream.get('_server') | ||||
|                 for stream_url in stream_urls: | ||||
|                     if not isinstance(stream_url, compat_str) or '//' not in stream_url: | ||||
|                     if not url_or_none(stream_url): | ||||
|                         continue | ||||
|                     ext = determine_ext(stream_url) | ||||
|                     if quality != 'auto' and ext in ('f4m', 'm3u8'): | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․