mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 23:57:06 -05:00 
			
		
		
		
	[safari] Use postdata_urlencode (#7465)
This commit is contained in:
		@@ -6,12 +6,12 @@ import re
 | 
			
		||||
from .common import InfoExtractor
 | 
			
		||||
from .brightcove import BrightcoveLegacyIE
 | 
			
		||||
 | 
			
		||||
from ..compat import compat_urllib_parse
 | 
			
		||||
from ..utils import (
 | 
			
		||||
    ExtractorError,
 | 
			
		||||
    sanitized_Request,
 | 
			
		||||
    smuggle_url,
 | 
			
		||||
    std_headers,
 | 
			
		||||
    urlencode_postdata,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -57,7 +57,7 @@ class SafariBaseIE(InfoExtractor):
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        request = sanitized_Request(
 | 
			
		||||
            self._LOGIN_URL, compat_urllib_parse.urlencode(login_form), headers=headers)
 | 
			
		||||
            self._LOGIN_URL, urlencode_postdata(login_form), headers=headers)
 | 
			
		||||
        login_page = self._download_webpage(
 | 
			
		||||
            request, None, 'Logging in as %s' % username)
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user