mirror of
https://github.com/soimort/you-get.git
synced 2025-02-10 04:02:28 +03:00
Add support for 5sing
This commit is contained in:
parent
568d40ed32
commit
14359c552c
@ -20,6 +20,7 @@ def url_to_module(url):
|
|||||||
downloads = {
|
downloads = {
|
||||||
'163': netease,
|
'163': netease,
|
||||||
'56': w56,
|
'56': w56,
|
||||||
|
'5sing',fivesing,
|
||||||
'acfun': acfun,
|
'acfun': acfun,
|
||||||
'baidu': baidu,
|
'baidu': baidu,
|
||||||
'bilibili': bilibili,
|
'bilibili': bilibili,
|
||||||
|
@ -10,6 +10,7 @@ from .coursera import *
|
|||||||
from .dailymotion import *
|
from .dailymotion import *
|
||||||
from .douban import *
|
from .douban import *
|
||||||
from .facebook import *
|
from .facebook import *
|
||||||
|
from .fivesing import *
|
||||||
from .freesound import *
|
from .freesound import *
|
||||||
from .google import *
|
from .google import *
|
||||||
from .ifeng import *
|
from .ifeng import *
|
||||||
|
18
src/you_get/downloader/fivesing.py
Normal file
18
src/you_get/downloader/fivesing.py
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
from ..common import *
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
def fivesing_download(url,output_dir=".",merge=True,info_only=False):
|
||||||
|
html=get_html(url)
|
||||||
|
title=r1(r'var SongName = "(.*)";',html)
|
||||||
|
url=r1(r'file: "(\S*)"',html)
|
||||||
|
songtype,ext,size=url_info(url)
|
||||||
|
print_info(site_info,title,songtype,size)
|
||||||
|
if not info_only:
|
||||||
|
download_urls([url],title,ext,size,output_dir)
|
||||||
|
|
||||||
|
site_info="5sing.com"
|
||||||
|
download= fivesing_download
|
||||||
|
download_playlist=playlist_not_supported("5sing")
|
Loading…
Reference in New Issue
Block a user