mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 00:33:58 +03:00
parent
6087fc0b0a
commit
68c49b90e7
@ -7,6 +7,7 @@ Changelog
|
|||||||
*Date: 2013-03-08*
|
*Date: 2013-03-08*
|
||||||
|
|
||||||
* Add support for:
|
* Add support for:
|
||||||
|
- Blip
|
||||||
- VID48
|
- VID48
|
||||||
|
|
||||||
0.3.3
|
0.3.3
|
||||||
|
@ -12,6 +12,7 @@ Fork me on GitHub: <https://github.com/soimort/you-get>
|
|||||||
|
|
||||||
* YouTube <http://www.youtube.com>
|
* YouTube <http://www.youtube.com>
|
||||||
* Vimeo <http://vimeo.com>
|
* Vimeo <http://vimeo.com>
|
||||||
|
* Blip <http://blip.tv>
|
||||||
* Dailymotion <http://dailymotion.com>
|
* Dailymotion <http://dailymotion.com>
|
||||||
* Facebook <http://facebook.com>
|
* Facebook <http://facebook.com>
|
||||||
* Google+ <http://plus.google.com>
|
* Google+ <http://plus.google.com>
|
||||||
@ -235,6 +236,7 @@ You-Get基于优酷下载脚本[iambus/youku-lixian](https://github.com/iambus/y
|
|||||||
|
|
||||||
* YouTube <http://www.youtube.com>
|
* YouTube <http://www.youtube.com>
|
||||||
* Vimeo <http://vimeo.com>
|
* Vimeo <http://vimeo.com>
|
||||||
|
* Blip <http://blip.tv>
|
||||||
* Dailymotion <http://dailymotion.com>
|
* Dailymotion <http://dailymotion.com>
|
||||||
* Facebook <http://facebook.com>
|
* Facebook <http://facebook.com>
|
||||||
* Google+ <http://plus.google.com>
|
* Google+ <http://plus.google.com>
|
||||||
|
@ -15,6 +15,7 @@ Supported Sites (As of Now)
|
|||||||
|
|
||||||
* YouTube http://www.youtube.com
|
* YouTube http://www.youtube.com
|
||||||
* Vimeo http://vimeo.com
|
* Vimeo http://vimeo.com
|
||||||
|
* Blip http://blip.tv
|
||||||
* Dailymotion http://dailymotion.com
|
* Dailymotion http://dailymotion.com
|
||||||
* Facebook http://facebook.com
|
* Facebook http://facebook.com
|
||||||
* Google+ http://plus.google.com
|
* Google+ http://plus.google.com
|
||||||
|
@ -22,6 +22,7 @@ def url_to_module(url):
|
|||||||
'56': w56,
|
'56': w56,
|
||||||
'acfun': acfun,
|
'acfun': acfun,
|
||||||
'bilibili': bilibili,
|
'bilibili': bilibili,
|
||||||
|
'blip': blip,
|
||||||
'cntv': cntv,
|
'cntv': cntv,
|
||||||
'dailymotion': dailymotion,
|
'dailymotion': dailymotion,
|
||||||
'douban': douban,
|
'douban': douban,
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
from .acfun import *
|
from .acfun import *
|
||||||
from .bilibili import *
|
from .bilibili import *
|
||||||
|
from .blip import *
|
||||||
from .cntv import *
|
from .cntv import *
|
||||||
from .dailymotion import *
|
from .dailymotion import *
|
||||||
from .douban import *
|
from .douban import *
|
||||||
|
24
src/you_get/downloader/blip.py
Normal file
24
src/you_get/downloader/blip.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/env python
|
||||||
|
|
||||||
|
__all__ = ['blip_download']
|
||||||
|
|
||||||
|
from ..common import *
|
||||||
|
|
||||||
|
import json
|
||||||
|
|
||||||
|
def blip_download(url, output_dir = '.', merge = True, info_only = False):
|
||||||
|
p_url = url + "?skin=json&version=2&no_wrap=1"
|
||||||
|
html = get_html(p_url)
|
||||||
|
metadata = json.loads(html)
|
||||||
|
|
||||||
|
title = metadata['Post']['title']
|
||||||
|
real_url = metadata['Post']['media']['url']
|
||||||
|
type, ext, size = url_info(real_url)
|
||||||
|
|
||||||
|
print_info(site_info, title, type, size)
|
||||||
|
if not info_only:
|
||||||
|
download_urls([real_url], title, ext, size, output_dir, merge = merge)
|
||||||
|
|
||||||
|
site_info = "Blip.tv"
|
||||||
|
download = blip_download
|
||||||
|
download_playlist = playlist_not_supported('blip')
|
@ -12,6 +12,11 @@ def test_urls(urls):
|
|||||||
|
|
||||||
class YouGetTests(unittest.TestCase):
|
class YouGetTests(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_blip(self):
|
||||||
|
test_urls([
|
||||||
|
"http://blip.tv/clojure/sam-aaron-programming-music-with-overtone-5970273",
|
||||||
|
])
|
||||||
|
|
||||||
def test_googleplus(self):
|
def test_googleplus(self):
|
||||||
test_urls([
|
test_urls([
|
||||||
"http://plus.google.com/102663035987142737445/posts/jJRu43KQFT5",
|
"http://plus.google.com/102663035987142737445/posts/jJRu43KQFT5",
|
||||||
|
Loading…
Reference in New Issue
Block a user