usanetwork.py 798 B

123456789101112131415161718192021
  1. from .nbc import NBCIE
  2. class USANetworkIE(NBCIE): # XXX: Do not subclass from concrete IE
  3. _VALID_URL = r'https?(?P<permalink>://(?:www\.)?usanetwork\.com/(?:[^/]+/videos?|movies?)/(?:[^/]+/)?(?P<id>\d+))'
  4. _TESTS = [{
  5. 'url': 'https://www.usanetwork.com/peacock-trailers/video/intelligence-trailer/4185302',
  6. 'info_dict': {
  7. 'id': '4185302',
  8. 'ext': 'mp4',
  9. 'title': 'Intelligence (Trailer)',
  10. 'description': 'A maverick NSA agent enlists the help of a junior systems analyst in a workplace power grab.',
  11. 'upload_date': '20200715',
  12. 'timestamp': 1594785600,
  13. 'uploader': 'NBCU-MPAT',
  14. },
  15. 'params': {
  16. # m3u8 download
  17. 'skip_download': True,
  18. },
  19. }]