mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[spankwire] Use compat_urllib_parse_unquote
This commit is contained in:
		@@ -4,7 +4,7 @@ import re
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
from .common import InfoExtractor
 | 
					from .common import InfoExtractor
 | 
				
			||||||
from ..compat import (
 | 
					from ..compat import (
 | 
				
			||||||
    compat_urllib_parse,
 | 
					    compat_urllib_parse_unquote,
 | 
				
			||||||
    compat_urllib_parse_urlparse,
 | 
					    compat_urllib_parse_urlparse,
 | 
				
			||||||
    compat_urllib_request,
 | 
					    compat_urllib_request,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
@@ -68,7 +68,7 @@ class SpankwireIE(InfoExtractor):
 | 
				
			|||||||
            webpage, 'comment count', fatal=False))
 | 
					            webpage, 'comment count', fatal=False))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        video_urls = list(map(
 | 
					        video_urls = list(map(
 | 
				
			||||||
            compat_urllib_parse.unquote,
 | 
					            compat_urllib_parse_unquote,
 | 
				
			||||||
            re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*(?:encodeURIComponent\()?["\']([^"\']+)["\']', webpage)))
 | 
					            re.findall(r'playerData\.cdnPath[0-9]{3,}\s*=\s*(?:encodeURIComponent\()?["\']([^"\']+)["\']', webpage)))
 | 
				
			||||||
        if webpage.find('flashvars\.encrypted = "true"') != -1:
 | 
					        if webpage.find('flashvars\.encrypted = "true"') != -1:
 | 
				
			||||||
            password = self._search_regex(
 | 
					            password = self._search_regex(
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user