mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	Merge pull request #2365 from dalf/fix-soundcloud
[fix] soundclound: accept result without content
This commit is contained in:
		
						commit
						13d3004703
					
				@ -91,7 +91,7 @@ def response(resp):
 | 
				
			|||||||
    for result in search_res.get('collection', []):
 | 
					    for result in search_res.get('collection', []):
 | 
				
			||||||
        if result['kind'] in ('track', 'playlist'):
 | 
					        if result['kind'] in ('track', 'playlist'):
 | 
				
			||||||
            title = result['title']
 | 
					            title = result['title']
 | 
				
			||||||
            content = result['description']
 | 
					            content = result['description'] or ''
 | 
				
			||||||
            publishedDate = parser.parse(result['last_modified'])
 | 
					            publishedDate = parser.parse(result['last_modified'])
 | 
				
			||||||
            uri = quote_plus(result['uri'])
 | 
					            uri = quote_plus(result['uri'])
 | 
				
			||||||
            embedded = embedded_url.format(uri=uri)
 | 
					            embedded = embedded_url.format(uri=uri)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user