Compare commits
2 commits
a661491bcf
...
2c9b034593
Author | SHA1 | Date | |
---|---|---|---|
2c9b034593 | |||
0aea1ea746 |
28
README.md
28
README.md
|
@ -1,5 +1,31 @@
|
||||||
# Haruhi-DL
|
# Haruhi-DL
|
||||||
|
|
||||||
|
![build status](https://img.shields.io/gitlab/pipeline/laudom/haruhi-dl/master?gitlab_url=https%3A%2F%2Fgit.sakamoto.pl)
|
||||||
|
|
||||||
This is a fork of [youtube-dl](https://yt-dl.org/), focused on bringing a fast, steady stream of updates. We'll do our best to merge patches to any site, not only youtube.
|
This is a fork of [youtube-dl](https://yt-dl.org/), focused on bringing a fast, steady stream of updates. We'll do our best to merge patches to any site, not only youtube.
|
||||||
|
|
||||||
If you want to contribute, send us a diff to [contribute@haruhi.download](mailto:contribute@haruhi.download)
|
## Installing
|
||||||
|
|
||||||
|
haruhi-dl is available on PyPI: [![version on PyPI](https://img.shields.io/pypi/v/haruhi-dl.svg)](https://pypi.org/project/haruhi-dl/)
|
||||||
|
|
||||||
|
Install release from PyPI on Python 3.x:
|
||||||
|
```sh
|
||||||
|
$ python3 -m pip install --upgrade haruhi-dl
|
||||||
|
```
|
||||||
|
Install from master (unstable) on Python 3.x:
|
||||||
|
```sh
|
||||||
|
$ python3 -m pip install --upgrade git+https://git.sakamoto.pl/laudom/haruhi-dl.git
|
||||||
|
```
|
||||||
|
|
||||||
|
Install release from PyPI on Python 2.x:
|
||||||
|
```sh
|
||||||
|
$ python2 -m pip install --upgrade haruhi-dl
|
||||||
|
```
|
||||||
|
Install from master (unstable) on Python 2.x:
|
||||||
|
```sh
|
||||||
|
$ python2 -m pip install --upgrade git+https://git.sakamoto.pl/laudom/haruhi-dl.git
|
||||||
|
```
|
||||||
|
|
||||||
|
## Contributing
|
||||||
|
|
||||||
|
If you want to contribute, send us a diff to <contribute@haruhi.download>.
|
||||||
|
|
|
@ -311,7 +311,7 @@ class TestFormatSelection(unittest.TestCase):
|
||||||
|
|
||||||
def test_youtube_format_selection(self):
|
def test_youtube_format_selection(self):
|
||||||
order = [
|
order = [
|
||||||
'38', '37', '46', '22', '45', '35', '44', '18', '34', '43', '6', '5', '17', '36', '13',
|
'18',
|
||||||
# Apple HTTP Live Streaming
|
# Apple HTTP Live Streaming
|
||||||
'96', '95', '94', '93', '92', '132', '151',
|
'96', '95', '94', '93', '92', '132', '151',
|
||||||
# 3D
|
# 3D
|
||||||
|
@ -356,7 +356,7 @@ class TestFormatSelection(unittest.TestCase):
|
||||||
yie._sort_formats(info_dict['formats'])
|
yie._sort_formats(info_dict['formats'])
|
||||||
hdl.process_ie_result(info_dict)
|
hdl.process_ie_result(info_dict)
|
||||||
downloaded = hdl.downloaded_info_dicts[0]
|
downloaded = hdl.downloaded_info_dicts[0]
|
||||||
self.assertEqual(downloaded['format_id'], '38')
|
self.assertEqual(downloaded['format_id'], '18')
|
||||||
|
|
||||||
info_dict = _make_result(list(formats_order), extractor='youtube')
|
info_dict = _make_result(list(formats_order), extractor='youtube')
|
||||||
hdl = HDL({'format': 'bestvideo/best,bestaudio'})
|
hdl = HDL({'format': 'bestvideo/best,bestaudio'})
|
||||||
|
|
Loading…
Reference in a new issue