mirror of
				https://github.com/ytdl-org/youtube-dl.git
				synced 2025-11-01 09:26:45 -07:00 
			
		
		
		
	[ynet] Use compat_urllib_parse_unquote_plus
This commit is contained in:
		@@ -5,7 +5,7 @@ import re
 | 
			
		||||
import json
 | 
			
		||||
 | 
			
		||||
from .common import InfoExtractor
 | 
			
		||||
from ..compat import compat_urllib_parse
 | 
			
		||||
from ..compat import compat_urllib_parse_unquote_plus
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class YnetIE(InfoExtractor):
 | 
			
		||||
@@ -34,7 +34,7 @@ class YnetIE(InfoExtractor):
 | 
			
		||||
        video_id = self._match_id(url)
 | 
			
		||||
        webpage = self._download_webpage(url, video_id)
 | 
			
		||||
 | 
			
		||||
        content = compat_urllib_parse.unquote_plus(self._og_search_video_url(webpage))
 | 
			
		||||
        content = compat_urllib_parse_unquote_plus(self._og_search_video_url(webpage))
 | 
			
		||||
        config = json.loads(self._search_regex(r'config=({.+?})$', content, 'video config'))
 | 
			
		||||
        f4m_url = config['clip']['url']
 | 
			
		||||
        title = self._og_search_title(webpage)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user