mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 21:45:02 +03:00
Add Interest.me (CJ E&M) support
This commit is contained in:
parent
d80a799569
commit
b0128fd879
@ -50,6 +50,7 @@ Fork me on GitHub: <https://github.com/soimort/you-get>
|
|||||||
* Fun.tv (风行, Funshion) <http://www.fun.tv>
|
* Fun.tv (风行, Funshion) <http://www.fun.tv>
|
||||||
* Google Drive <http://docs.google.com>
|
* Google Drive <http://docs.google.com>
|
||||||
* ifeng (凤凰视频) <http://v.ifeng.com>
|
* ifeng (凤凰视频) <http://v.ifeng.com>
|
||||||
|
* Interest.me (CJ E&M) <http://interest.me>
|
||||||
* Internet Archive <http://archive.org>
|
* Internet Archive <http://archive.org>
|
||||||
* iQIYI (爱奇艺) <http://www.iqiyi.com>
|
* iQIYI (爱奇艺) <http://www.iqiyi.com>
|
||||||
* iQilu (齐鲁网, 山东网络台) <http://v.iqilu.com>
|
* iQilu (齐鲁网, 山东网络台) <http://v.iqilu.com>
|
||||||
|
@ -26,6 +26,7 @@ SITES = {
|
|||||||
'ifeng' : 'ifeng',
|
'ifeng' : 'ifeng',
|
||||||
'in' : 'alive',
|
'in' : 'alive',
|
||||||
'instagram' : 'instagram',
|
'instagram' : 'instagram',
|
||||||
|
'interest' : 'interest',
|
||||||
'iqilu' : 'iqilu',
|
'iqilu' : 'iqilu',
|
||||||
'iqiyi' : 'iqiyi',
|
'iqiyi' : 'iqiyi',
|
||||||
'isuntv' : 'suntv',
|
'isuntv' : 'suntv',
|
||||||
|
@ -20,6 +20,7 @@ from .google import *
|
|||||||
from .heavymusic import *
|
from .heavymusic import *
|
||||||
from .ifeng import *
|
from .ifeng import *
|
||||||
from .instagram import *
|
from .instagram import *
|
||||||
|
from .interest import *
|
||||||
from .iqilu import *
|
from .iqilu import *
|
||||||
from .iqiyi import *
|
from .iqiyi import *
|
||||||
from .joy import *
|
from .joy import *
|
||||||
|
32
src/you_get/extractors/interest.py
Normal file
32
src/you_get/extractors/interest.py
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from ..common import *
|
||||||
|
from json import loads
|
||||||
|
|
||||||
|
def interest_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
|
||||||
|
#http://ch.interest.me/zhtv/VOD/View/114789
|
||||||
|
#http://program.interest.me/zhtv/sonja/8/Vod/View/15794
|
||||||
|
html = get_content(url)
|
||||||
|
#get title
|
||||||
|
title = match1(html, r'<meta property="og:title" content="([^"]*)"')
|
||||||
|
title = title.split('&')[0].strip()
|
||||||
|
info_url = match1(html, r'data: "(.+)",')
|
||||||
|
play_info = loads(get_content(info_url))
|
||||||
|
try:
|
||||||
|
serverurl = play_info['data']['cdn']['serverurl']
|
||||||
|
except KeyError:
|
||||||
|
raise ValueError('Cannot_Get_Play_URL')
|
||||||
|
except:
|
||||||
|
raise ValueError('Cannot_Get_Play_URL')
|
||||||
|
# I cannot find any example of "fileurl", so i just put it like this for now
|
||||||
|
assert serverurl
|
||||||
|
|
||||||
|
type, ext, size = 'mp4', 'mp4', 0
|
||||||
|
|
||||||
|
print_info(site_info, title, type, size)
|
||||||
|
if not info_only:
|
||||||
|
download_rtmp_url(url=serverurl, title=title, ext=ext, output_dir=output_dir)
|
||||||
|
|
||||||
|
site_info = "interest.me"
|
||||||
|
download = interest_download
|
||||||
|
download_playlist = playlist_not_supported('interest')
|
Loading…
Reference in New Issue
Block a user