2013-07-30 17:09:37 +04:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
__all__ = ['fivesing_download']
|
|
|
|
|
|
|
|
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)
|
2013-08-03 14:32:30 +04:00
|
|
|
|
2013-07-30 17:09:37 +04:00
|
|
|
site_info = "5sing.com"
|
|
|
|
download = fivesing_download
|
|
|
|
download_playlist = playlist_not_supported("5sing")
|