mirror of
https://github.com/soimort/you-get.git
synced 2025-02-02 16:24:00 +03:00
add support for JPopsuki, fix #92
This commit is contained in:
parent
cbae44078a
commit
d8515ab413
@ -20,6 +20,7 @@ Fork me on GitHub: <https://github.com/soimort/you-get>
|
||||
* Tumblr <http://www.tumblr.com>
|
||||
* SoundCloud <http://soundcloud.com>
|
||||
* Mixcloud <http://www.mixcloud.com>
|
||||
* JPopsuki <http://jpopsuki.tv>
|
||||
* Niconico (ニコニコ動画) <http://www.nicovideo.jp>
|
||||
* Youku (优酷) <http://www.youku.com>
|
||||
* Tudou (土豆) <http://www.tudou.com>
|
||||
@ -213,6 +214,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y
|
||||
* Tumblr <http://www.tumblr.com>
|
||||
* SoundCloud <http://soundcloud.com>
|
||||
* Mixcloud <http://www.mixcloud.com>
|
||||
* JPopsuki <http://jpopsuki.tv>
|
||||
* NICONICO动画 <http://www.nicovideo.jp>
|
||||
* 优酷 <http://www.youku.com>
|
||||
* 土豆 <http://www.tudou.com>
|
||||
|
@ -21,6 +21,7 @@ Supported Sites (As of Now)
|
||||
* Tumblr http://www.tumblr.com
|
||||
* SoundCloud http://soundcloud.com
|
||||
* Mixcloud http://www.mixcloud.com
|
||||
* JPopsuki http://jpopsuki.tv
|
||||
* Niconico (ニコニコ動画) http://www.nicovideo.jp
|
||||
* Youku (优酷) http://www.youku.com
|
||||
* Tudou (土豆) http://www.tudou.com
|
||||
|
@ -30,6 +30,7 @@ def url_to_module(url):
|
||||
'ifeng': ifeng,
|
||||
'iqiyi': iqiyi,
|
||||
'joy': joy,
|
||||
'jpopsuki': jpopsuki,
|
||||
'kankanews': bilibili,
|
||||
'ku6': ku6,
|
||||
'mixcloud': mixcloud,
|
||||
|
@ -9,6 +9,7 @@ from .googleplus import *
|
||||
from .ifeng import *
|
||||
from .iqiyi import *
|
||||
from .joy import *
|
||||
from .jpopsuki import *
|
||||
from .ku6 import *
|
||||
from .mixcloud import *
|
||||
from .netease import *
|
||||
|
20
src/you_get/downloader/jpopsuki.py
Normal file
20
src/you_get/downloader/jpopsuki.py
Normal file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
__all__ = ['jpopsuki_download']
|
||||
|
||||
from ..common import *
|
||||
|
||||
def jpopsuki_download(url, output_dir = '.', merge = True, info_only = False):
|
||||
html = get_html(url)
|
||||
|
||||
title = r1(r'<meta name="title" content="([^"]*)"', html)[:-14]
|
||||
url = "http://jpopsuki.tv%s" % r1(r'<source src="([^"]*)"', html)
|
||||
type, ext, size = url_info(url)
|
||||
|
||||
print_info(site_info, title, type, size)
|
||||
if not info_only:
|
||||
download_urls([url], title, ext, size, output_dir, merge = merge)
|
||||
|
||||
site_info = "JPopsuki.tv"
|
||||
download = jpopsuki_download
|
||||
download_playlist = playlist_not_supported('jpopsuki')
|
@ -9,11 +9,7 @@ from you_get.__main__ import url_to_module
|
||||
class YouGetTests(unittest.TestCase):
|
||||
|
||||
def test_googleplus(self):
|
||||
for url in [
|
||||
"http://plus.google.com/111438309227794971277/posts/So6bW37WWtp",
|
||||
"http://plus.google.com/114038303885145553998/posts/7Jkwa35HZu8",
|
||||
"http://plus.google.com/109544372058574620997/posts/Hn9P3Mbuyud",
|
||||
"http://plus.google.com/photos/109544372058574620997/albums/5835145047890484737/5835145057636064194",
|
||||
for url in [
|
||||
"http://plus.google.com/102663035987142737445/posts/jJRu43KQFT5",
|
||||
"http://plus.google.com/+%E5%B9%B3%E7%94%B0%E6%A2%A8%E5%A5%88/posts/jJRu43KQFT5",
|
||||
"http://plus.google.com/+平田梨奈/posts/jJRu43KQFT5",
|
||||
@ -24,9 +20,15 @@ class YouGetTests(unittest.TestCase):
|
||||
url_to_module(url).download(url, info_only = True)
|
||||
|
||||
def test_mixcloud(self):
|
||||
for url in [
|
||||
for url in [
|
||||
"http://www.mixcloud.com/beatbopz/beat-bopz-disco-mix/",
|
||||
"http://www.mixcloud.com/beatbopz/tokyo-taste-vol4/",
|
||||
"http://www.mixcloud.com/DJVadim/north-america-are-you-ready/",
|
||||
]:
|
||||
url_to_module(url).download(url, info_only = True)
|
||||
|
||||
def test_jpopsuki(self):
|
||||
for url in [
|
||||
"http://jpopsuki.tv/video/Dragon-Ash---Run-to-the-Sun/8ad7aec604badd0b0798cd999b63ae17",
|
||||
]:
|
||||
url_to_module(url).download(url, info_only = True)
|
||||
|
Loading…
Reference in New Issue
Block a user