From c3b5074fcd20f42b8be211d24150e11b7dc52ed7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=3D=3FUTF-8=3Fq=3FSergey=3D20M=3DE2=3D80=3DA4=3F=3D?= Date: Mon, 31 May 2021 23:22:07 +0200 Subject: [PATCH] [funimation] Add support for optional lang code in URLs (closes #28950) --- haruhi_dl/extractor/funimation.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/haruhi_dl/extractor/funimation.py b/haruhi_dl/extractor/funimation.py index 8bbedca26..d8f1e169a 100644 --- a/haruhi_dl/extractor/funimation.py +++ b/haruhi_dl/extractor/funimation.py @@ -16,7 +16,7 @@ from ..utils import ( class FunimationIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/shows/[^/]+/(?P[^/?#&]+)' + _VALID_URL = r'https?://(?:www\.)?funimation(?:\.com|now\.uk)/(?:[^/]+/)?shows/[^/]+/(?P[^/?#&]+)' _NETRC_MACHINE = 'funimation' _TOKEN = None @@ -51,6 +51,10 @@ class FunimationIE(InfoExtractor): }, { 'url': 'https://www.funimationnow.uk/shows/puzzle-dragons-x/drop-impact/simulcast/', 'only_matching': True, + }, { + # with lang code + 'url': 'https://www.funimation.com/en/shows/hacksign/role-play/', + 'only_matching': True, }] def _login(self):