mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 03:07:07 -05:00 
			
		
		
		
	[atresplayer] Don't include f4m formats if they are protected by DRM (fixes #4705)
This commit is contained in:
		@@ -107,7 +107,14 @@ class AtresPlayerIE(InfoExtractor):
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
            for _, video_url in fmt_json['resultObject'].items():
 | 
					            for _, video_url in fmt_json['resultObject'].items():
 | 
				
			||||||
                if video_url.endswith('/Manifest'):
 | 
					                if video_url.endswith('/Manifest'):
 | 
				
			||||||
                    formats.extend(self._extract_f4m_formats(video_url[:-9] + '/manifest.f4m', video_id))
 | 
					                    if 'geodeswowsmpra3player' in video_url:
 | 
				
			||||||
 | 
					                        f4m_path = video_url.split('smil:', 1)[-1].split('free_', 1)[0]
 | 
				
			||||||
 | 
					                        f4m_url = 'http://drg.antena3.com/{0}hds/es/sd.f4m'.format(f4m_path)
 | 
				
			||||||
 | 
					                        # this videos are protected by DRM, the f4m downloader doesn't support them
 | 
				
			||||||
 | 
					                        continue
 | 
				
			||||||
 | 
					                    else:
 | 
				
			||||||
 | 
					                        f4m_url = video_url[:-9] + '/manifest.f4m'
 | 
				
			||||||
 | 
					                    formats.extend(self._extract_f4m_formats(f4m_url, video_id))
 | 
				
			||||||
                else:
 | 
					                else:
 | 
				
			||||||
                    formats.append({
 | 
					                    formats.append({
 | 
				
			||||||
                        'url': video_url,
 | 
					                        'url': video_url,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user