mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-03 16:15:14 +00:00 
			
		
		
		
	[vidto] Minor fixes
1. import order 2. fatal is already True in helper functions
This commit is contained in:
		@@ -1,9 +1,9 @@
 | 
				
			|||||||
# coding: utf-8
 | 
					# coding: utf-8
 | 
				
			||||||
from __future__ import unicode_literals
 | 
					from __future__ import unicode_literals
 | 
				
			||||||
 | 
					
 | 
				
			||||||
from .common import InfoExtractor
 | 
					 | 
				
			||||||
import time
 | 
					import time
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					from .common import InfoExtractor
 | 
				
			||||||
from ..utils import encode_dict
 | 
					from ..utils import encode_dict
 | 
				
			||||||
from ..compat import (
 | 
					from ..compat import (
 | 
				
			||||||
    compat_urllib_request,
 | 
					    compat_urllib_request,
 | 
				
			||||||
@@ -60,10 +60,10 @@ class VidtoIE(InfoExtractor):
 | 
				
			|||||||
        time.sleep(7)
 | 
					        time.sleep(7)
 | 
				
			||||||
        post_result = self._download_webpage(
 | 
					        post_result = self._download_webpage(
 | 
				
			||||||
            req, video_id,
 | 
					            req, video_id,
 | 
				
			||||||
            note='Proceed to video...', errnote='unable to proceed', fatal=True)
 | 
					            note='Proceed to video...', errnote='unable to proceed')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        file_link_regex = r'file_link\s*=\s*\'(https?:\/\/[0-9a-zA-z.\/\-_]+)'
 | 
					        file_link_regex = r'file_link\s*=\s*\'(https?:\/\/[0-9a-zA-z.\/\-_]+)'
 | 
				
			||||||
        file_link = self._search_regex(file_link_regex, post_result, 'file_link', fatal=True)
 | 
					        file_link = self._search_regex(file_link_regex, post_result, 'file_link')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        return {
 | 
					        return {
 | 
				
			||||||
            'id': video_id,
 | 
					            'id': video_id,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user