Compare commits

...

2 Commits

Author SHA1 Message Date
Laura Liberda 2c9b034593 [test] fix youtube format selection test
it's up to the current standards now
2020-11-17 16:56:26 +01:00
Laura Liberda 0aea1ea746 update readme with installing instructions 2020-11-17 15:45:09 +01:00
2 changed files with 29 additions and 3 deletions

View File

@ -1,5 +1,31 @@
# 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.
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>.

View File

@ -311,7 +311,7 @@ class TestFormatSelection(unittest.TestCase):
def test_youtube_format_selection(self):
order = [
'38', '37', '46', '22', '45', '35', '44', '18', '34', '43', '6', '5', '17', '36', '13',
'18',
# Apple HTTP Live Streaming
'96', '95', '94', '93', '92', '132', '151',
# 3D
@ -356,7 +356,7 @@ class TestFormatSelection(unittest.TestCase):
yie._sort_formats(info_dict['formats'])
hdl.process_ie_result(info_dict)
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')
hdl = HDL({'format': 'bestvideo/best,bestaudio'})