mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
Merge branch 'develop' into fix-qq-download-bug
This commit is contained in:
commit
8db729643b
@ -1,7 +1,7 @@
|
|||||||
# You-Get
|
# You-Get
|
||||||
|
|
||||||
[![PyPI version](https://badge.fury.io/py/you-get.png)](http://badge.fury.io/py/you-get)
|
[![PyPI version](https://img.shields.io/pypi/v/you-get.svg)](https://pypi.python.org/pypi/you-get/)
|
||||||
[![Build Status](https://api.travis-ci.org/soimort/you-get.png)](https://travis-ci.org/soimort/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)
|
[![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.
|
[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.
|
||||||
|
@ -1254,7 +1254,7 @@ def url_to_module(url):
|
|||||||
else:
|
else:
|
||||||
import http.client
|
import http.client
|
||||||
conn = http.client.HTTPConnection(video_host)
|
conn = http.client.HTTPConnection(video_host)
|
||||||
conn.request("HEAD", video_url)
|
conn.request("HEAD", video_url, headers=fake_headers)
|
||||||
res = conn.getresponse()
|
res = conn.getresponse()
|
||||||
location = res.getheader('location')
|
location = res.getheader('location')
|
||||||
if location and location != url and not location.startswith('/'):
|
if location and location != url and not location.startswith('/'):
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env zsh
|
#!/usr/bin/env zsh
|
||||||
alias you-get="noglob $(dirname $0)/you-get"
|
alias you-get="noglob python3 $(dirname $0)/you-get"
|
||||||
alias you-vlc="noglob $(dirname $0)/you-get --player vlc"
|
alias you-vlc="noglob python3 $(dirname $0)/you-get --player vlc"
|
||||||
|
Loading…
Reference in New Issue
Block a user