mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 16:53:56 +03:00
13d40fa694
* Change entry point to you_get.__main__:main * New entry point for development (you-get-dev): you_get.__main__:main_dev * you_get.extractor -> you_get.extractors
22 lines
607 B
Python
22 lines
607 B
Python
#!/usr/bin/env python
|
|
|
|
__all__ = ['cbs_download']
|
|
|
|
from ..common import *
|
|
|
|
from .theplatform import theplatform_download_by_pid
|
|
|
|
def cbs_download(url, output_dir='.', merge=True, info_only=False):
|
|
"""Downloads CBS videos by URL.
|
|
"""
|
|
|
|
html = get_content(url)
|
|
pid = match1(html, r'video\.settings\.pid\s*=\s*\'([^\']+)\'')
|
|
title = match1(html, r'video\.settings\.title\s*=\s*\"([^\"]+)\"')
|
|
|
|
theplatform_download_by_pid(pid, title, output_dir=output_dir, merge=merge, info_only=info_only)
|
|
|
|
site_info = "CBS.com"
|
|
download = cbs_download
|
|
download_playlist = playlist_not_supported('cbs')
|