From 95aba7fdcb018bec45965c04d89cfa383f035b32 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Thu, 31 Jan 2013 16:47:41 +0100 Subject: [PATCH] add support for Mixcloud, fix #91 --- CHANGELOG.txt | 10 ++++++++++ README.md | 2 ++ README.txt | 1 + you_get/downloader/__init__.py | 1 + you_get/downloader/mixcloud.py | 28 ++++++++++++++++++++++++++++ you_get/main.py | 1 + you_get/version.py | 4 ++-- 7 files changed, 45 insertions(+), 2 deletions(-) create mode 100644 you_get/downloader/mixcloud.py diff --git a/CHANGELOG.txt b/CHANGELOG.txt index c75732bd..2ff076cf 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,16 @@ Changelog ========= +0.3dev-20130201 +--------------- + +*Date: 2013-02-01* + +* Add support for: + - Mixcloud + - Facebook + - Joy.cn + 0.3dev-20130125 --------------- diff --git a/README.md b/README.md index 811be9fe..1f63d960 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,7 @@ Fork me on GitHub: * Google+ * Tumblr * SoundCloud +* Mixcloud * Youku (优酷) * Tudou (土豆) * YinYueTai (音悦台) @@ -211,6 +212,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y * Google+ * Tumblr * SoundCloud +* Mixcloud * 优酷 * 土豆 * 音悦台 diff --git a/README.txt b/README.txt index 41076856..5ad16688 100644 --- a/README.txt +++ b/README.txt @@ -20,6 +20,7 @@ Supported Sites (As of Now) * Google+ http://plus.google.com * Tumblr http://www.tumblr.com * SoundCloud http://soundcloud.com +* Mixcloud http://www.mixcloud.com * Youku (优酷) http://www.youku.com * Tudou (土豆) http://www.tudou.com * YinYueTai (音悦台) http://www.yinyuetai.com diff --git a/you_get/downloader/__init__.py b/you_get/downloader/__init__.py index 4be6c7f5..31290d85 100644 --- a/you_get/downloader/__init__.py +++ b/you_get/downloader/__init__.py @@ -10,6 +10,7 @@ from .ifeng import * from .iqiyi import * from .joy import * from .ku6 import * +from .mixcloud import * from .netease import * from .pptv import * from .qq import * diff --git a/you_get/downloader/mixcloud.py b/you_get/downloader/mixcloud.py new file mode 100644 index 00000000..c7a06251 --- /dev/null +++ b/you_get/downloader/mixcloud.py @@ -0,0 +1,28 @@ +#!/usr/bin/env python + +__all__ = ['mixcloud_download'] + +from ..common import * + +def mixcloud_download(url, output_dir = '.', merge = True, info_only = False): + html = get_html(url) + title = r1(r'