diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2014-04-03 15:59:04 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2014-04-03 15:59:04 +0200 |
commit | d1b3e3dd757eda740f0bfbacd2d74aa00ead9fd0 (patch) | |
tree | a25ad39670ca1333968feb1a725d1209410a4503 | |
parent | 5fbd672c386e932ef6cbccad5e09b47ff69b5f74 (diff) |
[README] Add md5 to code example
-rw-r--r-- | README.md | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -390,6 +390,7 @@ If you want to add support for a new site, you can follow this quick list (assum _VALID_URL = r'https?://(?:www\.)yourextractor\.com/watch/(?P<id>[0-9]+)' _TEST = { 'url': 'http://yourextractor.com/watch/42', + 'md5': 'TODO: md5 sum of the first 10KiB of the video file', 'info_dict': { 'id': '42', 'ext': 'mp4', @@ -416,6 +417,7 @@ If you want to add support for a new site, you can follow this quick list (assum # TODO more properties (see youtube_dl/extractor/common.py) } + 5. Add an import in [`youtube_dl/extractor/__init__.py`](https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/__init__.py). 6. Run `python test/test_download.py TestDownload.test_YourExtractor`. This *should fail* at first, but you can continually re-run it until you're done. 7. Have a look at [`youtube_dl/common/extractor/common.py`](https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/common.py) for possible helper methods and a [detailed description of what your extractor should return](https://github.com/rg3/youtube-dl/blob/master/youtube_dl/extractor/common.py#L38). Add tests and code for as many as you want. |