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