From a7f9337b4242da685614e3610de821ebe37fba22 Mon Sep 17 00:00:00 2001 From: d3adc0d3 Date: Fri, 9 Jun 2017 10:45:47 +0300 Subject: [PATCH] [animevost] New extractor --- youtube_dl/extractor/animevost.py | 90 ++++++++++++++++++++++++++++++ youtube_dl/extractor/extractors.py | 4 ++ 2 files changed, 94 insertions(+) create mode 100644 youtube_dl/extractor/animevost.py diff --git a/youtube_dl/extractor/animevost.py b/youtube_dl/extractor/animevost.py new file mode 100644 index 000000000..b2266072e --- /dev/null +++ b/youtube_dl/extractor/animevost.py @@ -0,0 +1,90 @@ +# coding: utf-8 + +from __future__ import unicode_literals + + +import re + + +from .common import InfoExtractor + + +class AnimevostIE(InfoExtractor): + _TESTS = [{ + 'url': 'http://animevost.org/tip/tv/1864-renai-boukun.html', + 'info_dict': { + 'title': 'Любовь тирана / Renai Boukun', + 'id': '1864', + }, + 'playlist_mincount': 10, + }, { + + 'url': 'http://animevost.org/tip/tv-speshl/1854-ryuu-no-haisha.html', + 'info_dict': { + 'title': 'Драконий дантист / Ryuu no Haisha', + 'id': '1854', + }, + 'playlist_mincount': 2, + }, { + + 'url': 'http://animevost.org/tip/ova/1741-mahou-tsukai-no-yome-hoshi-matsu-hito.html', + 'info_dict': { + 'title': 'Невеста чародея / Mahou Tsukai no Yome: Hoshi Matsu Hito', + 'id': '1741', + }, + 'playlist_mincount': 2, + }, { + 'url': 'http://animevost.org/tip/ona/1797-huyao-xiao-hongniang.html', + 'info_dict': { + 'title': 'Сводники духов: Лисьи свахи / Huyao Xiao Hongniang', + 'id': '1797', + }, + 'playlist_mincount': 57, + }] + + _VALID_URL = r'http://animevost\.org/tip/[-\w\d]+/(\d+)-[-\w\d]+\.html' + _TITLE_PATTERN = r'