diff --git a/src/you_get/extractors/embed.py b/src/you_get/extractors/embed.py index b594b9f4..fd463c92 100644 --- a/src/you_get/extractors/embed.py +++ b/src/you_get/extractors/embed.py @@ -4,6 +4,7 @@ from ..common import * from .iqiyi import iqiyi_download_by_vid from .le import letvcloud_download_by_vu +from .netease import netease_download from .qq import qq_download_by_vid from .sina import sina_download_by_vid from .tudou import tudou_download_by_id @@ -36,10 +37,13 @@ yinyuetai_embed_patterns = [ 'player\.yinyuetai\.com/video/swf/(\d+)' ] iqiyi_embed_patterns = [ 'player\.video\.qiyi\.com/([^/]+)/[^/]+/[^/]+/[^/]+\.swf[^"]+tvId=(\d+)' ] +netease_embed_patterns = [ '(http://\w+\.163\.com/movie/[^\'"]+)' ] + def embed_download(url, output_dir = '.', merge = True, info_only = False ,**kwargs): - content = get_content(url) + content = get_content(url, headers=fake_headers) found = False title = match1(content, '