From 1d3a358c2247694096037e2376281ca404957764 Mon Sep 17 00:00:00 2001 From: Suprit Date: Tue, 20 Aug 2019 21:50:04 -0400 Subject: [PATCH 1/3] add ca to regex --- youtube_dl/extractor/einthusan.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/einthusan.py b/youtube_dl/extractor/einthusan.py index 1fb00c9b0..87ec10270 100644 --- a/youtube_dl/extractor/einthusan.py +++ b/youtube_dl/extractor/einthusan.py @@ -19,7 +19,7 @@ from ..utils import ( class EinthusanIE(InfoExtractor): - _VALID_URL = r'https?://(?Peinthusan\.(?:tv|com))/movie/watch/(?P[^/?#&]+)' + _VALID_URL = r'https?://(?Peinthusan\.(?:tv|com|ca))/movie/watch/(?P[^/?#&]+)' _TESTS = [{ 'url': 'https://einthusan.tv/movie/watch/9097/', 'md5': 'ff0f7f2065031b8a2cf13a933731c035', From 7accab98e093fc23722c1b70912f103f66bd7db4 Mon Sep 17 00:00:00 2001 From: Suprit Date: Tue, 20 Aug 2019 21:54:34 -0400 Subject: [PATCH 2/3] add test case --- youtube_dl/extractor/einthusan.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/youtube_dl/extractor/einthusan.py b/youtube_dl/extractor/einthusan.py index 87ec10270..c06a81184 100644 --- a/youtube_dl/extractor/einthusan.py +++ b/youtube_dl/extractor/einthusan.py @@ -36,8 +36,13 @@ class EinthusanIE(InfoExtractor): }, { 'url': 'https://einthusan.com/movie/watch/9097/', 'only_matching': True, + }, { + 'url': 'https://einthusan.ca/movie/watch/4E9n/?lang=hindi', + 'only_matching': True, }] + + # reversed from jsoncrypto.prototype.decrypt() in einthusan-PGMovieWatcher.js def _decrypt(self, encrypted_data, video_id): return self._parse_json(compat_b64decode(( From fbfcbd2a25fea00db62ab98b823a8d52fa310e26 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Wed, 21 Aug 2019 09:52:23 +0700 Subject: [PATCH 3/3] Update einthusan.py --- youtube_dl/extractor/einthusan.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/youtube_dl/extractor/einthusan.py b/youtube_dl/extractor/einthusan.py index c06a81184..4e0f8bc81 100644 --- a/youtube_dl/extractor/einthusan.py +++ b/youtube_dl/extractor/einthusan.py @@ -41,8 +41,6 @@ class EinthusanIE(InfoExtractor): 'only_matching': True, }] - - # reversed from jsoncrypto.prototype.decrypt() in einthusan-PGMovieWatcher.js def _decrypt(self, encrypted_data, video_id): return self._parse_json(compat_b64decode((