From 878d1d56c40ddb9783430f0677afd52db46740be Mon Sep 17 00:00:00 2001 From: Timothy Cyrus Date: Fri, 8 Apr 2016 10:31:27 -0400 Subject: [PATCH 001/149] Update README.md Changed Badges from PNG to SVG Also Fixed Badge Links --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index abdf39e5..ddfac26d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # You-Get -[![PyPI version](https://badge.fury.io/py/you-get.png)](http://badge.fury.io/py/you-get) -[![Build Status](https://api.travis-ci.org/soimort/you-get.png)](https://travis-ci.org/soimort/you-get) +[![PyPI version](https://img.shields.io/pypi/v/you-get.svg)](https://pypi.python.org/pypi/you-get/) +[![Build Status](https://travis-ci.org/soimort/you-get.svg)](https://travis-ci.org/soimort/you-get) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/soimort/you-get?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) [You-Get](https://you-get.org/) is a tiny command-line utility to download media contents (videos, audios, images) from the Web, in case there is no other handy way to do it. From 244f77e6b72ddf68afcdcafdec56efeca87521a5 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Wed, 13 Apr 2016 17:33:34 +0200 Subject: [PATCH 002/149] Antigen: call python3 explicitly --- you-get.plugin.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/you-get.plugin.zsh b/you-get.plugin.zsh index 70f2f484..6282eda5 100644 --- a/you-get.plugin.zsh +++ b/you-get.plugin.zsh @@ -1,3 +1,3 @@ #!/usr/bin/env zsh -alias you-get="noglob $(dirname $0)/you-get" -alias you-vlc="noglob $(dirname $0)/you-get --player vlc" +alias you-get="noglob python3 $(dirname $0)/you-get" +alias you-vlc="noglob python3 $(dirname $0)/you-get --player vlc" From 0bd78f5b186957b16ace8659d07da6f873633606 Mon Sep 17 00:00:00 2001 From: Xiaobing Yu Date: Fri, 15 Apr 2016 11:25:27 +0800 Subject: [PATCH 003/149] fix v.qq.com 403 code --- src/you_get/extractors/qq.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py index a0d80664..d6684a3e 100644 --- a/src/you_get/extractors/qq.py +++ b/src/you_get/extractors/qq.py @@ -5,7 +5,7 @@ __all__ = ['qq_download'] from ..common import * def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False): - api = "http://h5vv.video.qq.com/getinfo?otype=json&vid=%s" % vid + api = "http://h5vv.video.qq.com/getinfo?otype=json&platform=10901&vid=%s" % vid content = get_html(api) output_json = json.loads(match1(content, r'QZOutputJson=(.*)')[:-1]) url = output_json['vl']['vi'][0]['ul']['ui'][0]['url'] From 0424cd9f8c54eb5eb036cdff4b07a7bdc64c6b21 Mon Sep 17 00:00:00 2001 From: Xiaobing Yu Date: Tue, 19 Apr 2016 17:38:27 +0800 Subject: [PATCH 004/149] support for redirect URLs --- src/you_get/extractors/qq.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py index d6684a3e..47ca663e 100644 --- a/src/you_get/extractors/qq.py +++ b/src/you_get/extractors/qq.py @@ -18,7 +18,13 @@ def qq_download_by_vid(vid, title, output_dir='.', merge=True, info_only=False): download_urls([url], title, ext, size, output_dir=output_dir, merge=merge) def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs): - if 'iframe/player.html' in url: + if 'v.qq.com/page' in url: + # for URLs like this: + # http://v.qq.com/page/k/9/7/k0194pwgw97.html + # it will redirect. + vid = match1(url, r'\b(\w+).html') + title = vid + elif 'iframe/player.html' in url: vid = match1(url, r'\bvid=(\w+)') # for embedded URLs; don't know what the title is title = vid From 17393a5fc7bbe36ee16085a86fa653b79d46e4db Mon Sep 17 00:00:00 2001 From: yuderbin <591558148@qq.com> Date: Tue, 19 Apr 2016 18:33:38 +0800 Subject: [PATCH 005/149] add support to kuaibao.qq.com --- src/you_get/extractors/qq.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/you_get/extractors/qq.py b/src/you_get/extractors/qq.py index 47ca663e..00a99cd9 100644 --- a/src/you_get/extractors/qq.py +++ b/src/you_get/extractors/qq.py @@ -24,6 +24,10 @@ def qq_download(url, output_dir='.', merge=True, info_only=False, **kwargs): # it will redirect. vid = match1(url, r'\b(\w+).html') title = vid + elif 'kuaibao.qq.com' in url: + content = get_html(url) + vid = match1(content, r'vid\s*=\s*"\s*([^"]+)"') + title = match1(content, r'title">([^"]+)

').strip() elif 'iframe/player.html' in url: vid = match1(url, r'\bvid=(\w+)') # for embedded URLs; don't know what the title is From cc49724b76674c51ebd8b43d3bd2e9c254062f2a Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 24 Apr 2016 01:43:37 +0200 Subject: [PATCH 006/149] [youku] fix typos in c054da95 --- src/you_get/extractors/youku.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/youku.py b/src/you_get/extractors/youku.py index b4fc38a7..3135e822 100644 --- a/src/you_get/extractors/youku.py +++ b/src/you_get/extractors/youku.py @@ -171,13 +171,13 @@ class Youku(VideoExtractor): self.password_protected = True self.password = input(log.sprint('Password: ', log.YELLOW)) api_url += '&pwd={}'.format(self.password) - api_url12 += '&pwd={}'.format(self.password) + api12_url += '&pwd={}'.format(self.password) meta = json.loads(get_content( api_url, headers={'Referer': 'http://static.youku.com/'} )) meta12 = json.loads(get_content( - api_url12, + api12_url, headers={'Referer': 'http://static.youku.com/'} )) data = meta['data'] From b919fdd8013088daa4f28bdd8e7ed1a4ff8577d5 Mon Sep 17 00:00:00 2001 From: Danieliu Date: Wed, 27 Apr 2016 17:13:12 +0800 Subject: [PATCH 007/149] Update you-get fix python version --- you-get | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/you-get b/you-get index fbbdb9f2..85f3f754 100755 --- a/you-get +++ b/you-get @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 import os, sys _srcdir = 'src/' From 1a018c5261961f86dacb5c0f17648b8daad5b987 Mon Sep 17 00:00:00 2001 From: David Zhuang Date: Wed, 27 Apr 2016 17:08:46 -0400 Subject: [PATCH 008/149] [Dilidili] Fix codec, fix #1085 --- src/you_get/extractors/dilidili.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/you_get/extractors/dilidili.py b/src/you_get/extractors/dilidili.py index 615f9861..6bc6ae28 100755 --- a/src/you_get/extractors/dilidili.py +++ b/src/you_get/extractors/dilidili.py @@ -40,11 +40,11 @@ def dilidili_download(url, output_dir = '.', merge = False, info_only = False, * title = match1(html, r'(.+)丨(.+)') #title # player loaded via internal iframe - frame_url = re.search(r'