mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[gorillavid] Encode fields
This commit is contained in:
		@@ -10,6 +10,7 @@ from ..compat import (
 | 
				
			|||||||
)
 | 
					)
 | 
				
			||||||
from ..utils import (
 | 
					from ..utils import (
 | 
				
			||||||
    ExtractorError,
 | 
					    ExtractorError,
 | 
				
			||||||
 | 
					    encode_dict,
 | 
				
			||||||
    int_or_none,
 | 
					    int_or_none,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@@ -88,7 +89,7 @@ class GorillaVidIE(InfoExtractor):
 | 
				
			|||||||
            if countdown:
 | 
					            if countdown:
 | 
				
			||||||
                self._sleep(countdown, video_id)
 | 
					                self._sleep(countdown, video_id)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            post = compat_urllib_parse.urlencode(fields)
 | 
					            post = compat_urllib_parse.urlencode(encode_dict(fields))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            req = compat_urllib_request.Request(url, post)
 | 
					            req = compat_urllib_request.Request(url, post)
 | 
				
			||||||
            req.add_header('Content-type', 'application/x-www-form-urlencoded')
 | 
					            req.add_header('Content-type', 'application/x-www-form-urlencoded')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user