mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[fox] Add metadata extraction
Add series, season number, episode number and episode.
This commit is contained in:
		@@ -3,6 +3,7 @@ from __future__ import unicode_literals
 | 
			
		||||
 | 
			
		||||
from .adobepass import AdobePassIE
 | 
			
		||||
from ..utils import (
 | 
			
		||||
    int_or_none,
 | 
			
		||||
    smuggle_url,
 | 
			
		||||
    update_url_query,
 | 
			
		||||
)
 | 
			
		||||
@@ -47,9 +48,12 @@ class FOXIE(AdobePassIE):
 | 
			
		||||
            resource = self._get_mvpd_resource('fbc-fox', None, ap_p['videoGUID'], rating)
 | 
			
		||||
            query['auth'] = self._extract_mvpd_auth(url, video_id, 'fbc-fox', resource)
 | 
			
		||||
 | 
			
		||||
        return {
 | 
			
		||||
        info = self._search_json_ld(webpage, video_id, fatal=False)
 | 
			
		||||
        info.update({
 | 
			
		||||
            '_type': 'url_transparent',
 | 
			
		||||
            'ie_key': 'ThePlatform',
 | 
			
		||||
            'url': smuggle_url(update_url_query(release_url, query), {'force_smil_url': True}),
 | 
			
		||||
            'id': video_id,
 | 
			
		||||
        }
 | 
			
		||||
        })
 | 
			
		||||
 | 
			
		||||
        return info
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user