mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[facebook] Don't recommend to report the issue if the video is private.
This commit is contained in:
		@@ -102,10 +102,11 @@ class FacebookIE(InfoExtractor):
 | 
				
			|||||||
        if not m:
 | 
					        if not m:
 | 
				
			||||||
            m_msg = re.search(r'class="[^"]*uiInterstitialContent[^"]*"><div>(.*?)</div>', webpage)
 | 
					            m_msg = re.search(r'class="[^"]*uiInterstitialContent[^"]*"><div>(.*?)</div>', webpage)
 | 
				
			||||||
            if m_msg is not None:
 | 
					            if m_msg is not None:
 | 
				
			||||||
                err_msg = u'The video is not available, Facebook said: "%s"' % m_msg.group(1)
 | 
					                raise ExtractorError(
 | 
				
			||||||
 | 
					                    u'The video is not available, Facebook said: "%s"' % m_msg.group(1),
 | 
				
			||||||
 | 
					                    expected=True)
 | 
				
			||||||
            else:
 | 
					            else:
 | 
				
			||||||
                err_msg = u'Cannot parse data'
 | 
					                raise ExtractorError(u'Cannot parse data')
 | 
				
			||||||
            raise ExtractorError(err_msg)
 | 
					 | 
				
			||||||
        data = dict(json.loads(m.group(1)))
 | 
					        data = dict(json.loads(m.group(1)))
 | 
				
			||||||
        params_raw = compat_urllib_parse.unquote(data['params'])
 | 
					        params_raw = compat_urllib_parse.unquote(data['params'])
 | 
				
			||||||
        params = json.loads(params_raw)
 | 
					        params = json.loads(params_raw)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user