logo

youtube-dl

[mirror] Download/Watch videos from video hostersgit clone https://hacktivis.me/git/mirror/youtube-dl.git

usanetwork.py (795B)


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