diff options
author | Slava Shklyaev <shk.slava@gmail.com> | 2015-06-02 12:47:52 +0300 |
---|---|---|
committer | Slava Shklyaev <shk.slava@gmail.com> | 2015-06-02 12:49:01 +0300 |
commit | 9f4b9118ccaef5cd7c414a78c5622968e8c3343f (patch) | |
tree | ed13022422f7db07d9f00fb65dead27135409e23 /youtube_dl/extractor | |
parent | 60158217ef8da5f44ef316e50c8a5e2ac2e202c5 (diff) |
[nova] Fix display_id extraction bug
Make id group non-greedy so that .html is not included in it.
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/nova.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/nova.py b/youtube_dl/extractor/nova.py index 4e999b237..1dd18511e 100644 --- a/youtube_dl/extractor/nova.py +++ b/youtube_dl/extractor/nova.py @@ -8,7 +8,7 @@ from .common import InfoExtractor class NovaIE(InfoExtractor): IE_DESC = 'TN.cz, Prásk.tv, Nova.cz, Novaplus.cz, FANDA.tv, Krásná.cz and Doma.cz' - _VALID_URL = 'http://(?:[^.]+\.)?(?P<site>tv(?:noviny)?|tn|novaplus|vymena|fanda|krasna|doma|prask)\.nova\.cz/(?:[^/]+/)+(?P<id>[^/]+)(?:\.html|/?)' + _VALID_URL = 'http://(?:[^.]+\.)?(?P<site>tv(?:noviny)?|tn|novaplus|vymena|fanda|krasna|doma|prask)\.nova\.cz/(?:[^/]+/)+(?P<id>[^/]+?)(?:\.html|/?)$' _TESTS = [{ 'url': 'http://tvnoviny.nova.cz/clanek/novinky/co-na-sebe-sportaci-praskli-vime-jestli-pujde-hrdlicka-na-materskou.html', 'info_dict': { |