mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
add support for Alive.in.th, fix #190
This commit is contained in:
parent
f302540303
commit
fc24a267b5
@ -50,6 +50,7 @@ Fork me on GitHub: <https://github.com/soimort/you-get>
|
||||
* Baidu Music (百度音乐) <http://music.baidu.com>
|
||||
* Baidu Wangpan (百度网盘) <http://pan.baidu.com>
|
||||
* SongTaste <http://www.songtaste.com>
|
||||
* Alive.in.th <http://alive.in.th>
|
||||
|
||||
## Dependencies
|
||||
|
||||
@ -267,6 +268,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y
|
||||
* 百度音乐 <http://music.baidu.com>
|
||||
* 百度网盘 <http://pan.baidu.com>
|
||||
* SongTaste <http://www.songtaste.com>
|
||||
* Alive.in.th <http://alive.in.th>
|
||||
|
||||
## 依赖
|
||||
|
||||
|
@ -53,6 +53,7 @@ Supported Sites (As of Now)
|
||||
* Baidu Music (百度音乐) http://music.baidu.com
|
||||
* Baidu Wangpan (百度网盘) http://pan.baidu.com
|
||||
* SongTaste http://www.songtaste.com
|
||||
* Alive.in.th http://alive.in.th
|
||||
|
||||
Dependencies
|
||||
------------
|
||||
|
@ -33,6 +33,7 @@ def url_to_module(url):
|
||||
'google': google,
|
||||
'iask': sina,
|
||||
'ifeng': ifeng,
|
||||
'in': alive,
|
||||
'iqiyi': iqiyi,
|
||||
'joy': joy,
|
||||
'jpopsuki': jpopsuki,
|
||||
|
@ -1,6 +1,7 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from .acfun import *
|
||||
from .alive import *
|
||||
from .baidu import *
|
||||
from .bilibili import *
|
||||
from .blip import *
|
||||
|
21
src/you_get/downloader/alive.py
Normal file
21
src/you_get/downloader/alive.py
Normal file
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
__all__ = ['alive_download']
|
||||
|
||||
from ..common import *
|
||||
|
||||
def alive_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
html = get_html(url)
|
||||
|
||||
title = r1(r'<meta property="og:title" content="([^"]+)"', html)
|
||||
|
||||
url = r1(r'file: "(http://alive[^"]+)"', html)
|
||||
type, ext, size = url_info(url)
|
||||
|
||||
print_info(site_info, title, type, size)
|
||||
if not info_only:
|
||||
download_urls([url], title, ext, size, output_dir, merge = merge)
|
||||
|
||||
site_info = "Alive.in.th"
|
||||
download = alive_download
|
||||
download_playlist = playlist_not_supported('alive')
|
Loading…
Reference in New Issue
Block a user