/
githubmirror
/
you-get
Обзор
Документация
Войти
/
githubmirror
/
you-get
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
src/you_get/extractors/cbs.py
21 строка
617 B
sceext
fix extractors not use VideoExtractor after add --json option
26 сен 2015, 08:45
26 сен 2015, 08:45
5eb9ceb
Код
Авторство
О чём код?
#!/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, **kwargs): """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')