Make sure netrc works for all extractors with login support

Fixes #5112
This commit is contained in:
Philipp Hagemeister 2015-03-03 12:59:17 +01:00
parent 07490f8017
commit 499bfcbfd0
6 changed files with 31 additions and 0 deletions

View file

@ -29,6 +29,7 @@ from ..aes import (
class CrunchyrollIE(InfoExtractor):
_VALID_URL = r'https?://(?:(?P<prefix>www|m)\.)?(?P<url>crunchyroll\.(?:com|fr)/(?:[^/]*/[^/?&]*?|media/\?id=)(?P<video_id>[0-9]+))(?:[/?&]|$)'
_NETRC_MACHINE = 'crunchyroll'
_TESTS = [{
'url': 'http://www.crunchyroll.com/wanna-be-the-strongest-in-the-world/episode-1-an-idol-wrestler-is-born-645513',
'info_dict': {