mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 08:17:08 -05:00 
			
		
		
		
	[soundcloud:search] Fix non-ASCII searches
This commit is contained in:
		@@ -14,6 +14,7 @@ from ..compat import (
 | 
				
			|||||||
    compat_urllib_parse,
 | 
					    compat_urllib_parse,
 | 
				
			||||||
)
 | 
					)
 | 
				
			||||||
from ..utils import (
 | 
					from ..utils import (
 | 
				
			||||||
 | 
					    encode_dict,
 | 
				
			||||||
    ExtractorError,
 | 
					    ExtractorError,
 | 
				
			||||||
    int_or_none,
 | 
					    int_or_none,
 | 
				
			||||||
    unified_strdate,
 | 
					    unified_strdate,
 | 
				
			||||||
@@ -506,7 +507,7 @@ class SoundcloudSearchIE(SearchInfoExtractor, SoundcloudIE):
 | 
				
			|||||||
        for i in itertools.count():
 | 
					        for i in itertools.count():
 | 
				
			||||||
            if not next_url:
 | 
					            if not next_url:
 | 
				
			||||||
                query['offset'] = i * results_per_page
 | 
					                query['offset'] = i * results_per_page
 | 
				
			||||||
                data = compat_urllib_parse.urlencode(query)
 | 
					                data = compat_urllib_parse.urlencode(encode_dict(query))
 | 
				
			||||||
                next_url = '{0}{1}?{2}'.format(
 | 
					                next_url = '{0}{1}?{2}'.format(
 | 
				
			||||||
                    self._API_V2_BASE, endpoint, data)
 | 
					                    self._API_V2_BASE, endpoint, data)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user