mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 05:07:07 -05:00 
			
		
		
		
	[nexx] Don't capture domain id and add support for domainless shortcuts
This commit is contained in:
		@@ -15,8 +15,8 @@ from ..utils import (
 | 
				
			|||||||
class NexxIE(InfoExtractor):
 | 
					class NexxIE(InfoExtractor):
 | 
				
			||||||
    _VALID_URL = r'''(?x)
 | 
					    _VALID_URL = r'''(?x)
 | 
				
			||||||
                        (?:
 | 
					                        (?:
 | 
				
			||||||
                            https?://api\.nexx(?:\.cloud|cdn\.com)/v3/(?P<domain_id>\d+)/videos/byid/|
 | 
					                            https?://api\.nexx(?:\.cloud|cdn\.com)/v3/\d+/videos/byid/|
 | 
				
			||||||
                            nexx:(?P<domain_id_s>\d+):
 | 
					                            nexx:(?:\d+:)?
 | 
				
			||||||
                        )
 | 
					                        )
 | 
				
			||||||
                        (?P<id>\d+)
 | 
					                        (?P<id>\d+)
 | 
				
			||||||
                    '''
 | 
					                    '''
 | 
				
			||||||
@@ -62,6 +62,9 @@ class NexxIE(InfoExtractor):
 | 
				
			|||||||
    }, {
 | 
					    }, {
 | 
				
			||||||
        'url': 'nexx:748:128907',
 | 
					        'url': 'nexx:748:128907',
 | 
				
			||||||
        'only_matching': True,
 | 
					        'only_matching': True,
 | 
				
			||||||
 | 
					    }, {
 | 
				
			||||||
 | 
					        'url': 'nexx:128907',
 | 
				
			||||||
 | 
					        'only_matching': True,
 | 
				
			||||||
    }]
 | 
					    }]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    @staticmethod
 | 
					    @staticmethod
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user