From 416bf97200fae95b8e66f8acf7a16c8c388621e8 Mon Sep 17 00:00:00 2001 From: yasho21 Date: Tue, 31 Mar 2020 19:56:08 -0700 Subject: [PATCH 1/7] likee_ver1.1 --- youtube_dl/extractor/extractors.py | 1 + youtube_dl/extractor/likee.py | 39 ++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 youtube_dl/extractor/likee.py diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 64d1fa251..41c02eeae 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -570,6 +570,7 @@ from .liveleak import ( LiveLeakIE, LiveLeakEmbedIE, ) +from .likee import likeeIE from .livestream import ( LivestreamIE, LivestreamOriginalIE, diff --git a/youtube_dl/extractor/likee.py b/youtube_dl/extractor/likee.py new file mode 100644 index 000000000..9e3373d3b --- /dev/null +++ b/youtube_dl/extractor/likee.py @@ -0,0 +1,39 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class likeeIE(InfoExtractor): + + + + _VALID_URL = r'(?:https?://)?(?:www\.)?likee\.com/@(?P\w+[-0-9])*/video/[0-9]+' + #print(1) + #_TESTS = { + # TODO: Implement + + #} + + def _real_extract(self, url): + video_id = self._match_id(url) + webpage = self._download_webpage( + r'http?://video\.like\.video/[A-Za-z0-9!_/=@#$%^&*(),.?:{}|<>]*', video_id + ) + + + title = "video 1" + download_url = self._html_search_regex( + + r'http?://video\.like\.video/[A-Za-z0-9!_/=@#$%^&*(),.?:{}|<>]*', + + webpage, "download_url" + ) + + + + + return { + 'id': video_id, + 'url': download_url, + 'title': title + } From 37713ca7f8904747854879a9639c21241bdc1567 Mon Sep 17 00:00:00 2001 From: yash Date: Wed, 1 Apr 2020 21:44:43 -0700 Subject: [PATCH 2/7] Solved --- youtube_dl/extractor/vlare.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 youtube_dl/extractor/vlare.py diff --git a/youtube_dl/extractor/vlare.py b/youtube_dl/extractor/vlare.py new file mode 100644 index 000000000..43a0eb023 --- /dev/null +++ b/youtube_dl/extractor/vlare.py @@ -0,0 +1,28 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class vlareIE(InfoExtractor): + _VALID_URL = r'(?:https?://)?(?:www\.)?vlare\.tv/v/(?P\w+)' + + def _real_extract(self, url): + video_id = self._match_id(url) + + webpage = self._download_webpage( + url, video_id + ) + + title = self._html_search_regex(r'(.+?)', webpage, 'title') + + download_url = self._html_search_regex( + + r'((https:\/\/)v\.vlare\.tv/[a-zA-Z0-9]*\.[0-9]*\.mp4)', + + webpage, "download_url" + ) + return { + 'id': video_id, + 'url': download_url, + 'title': title + } From 45b5bb8917fb8b16a89bf2849ac360d425a732c8 Mon Sep 17 00:00:00 2001 From: yash Date: Wed, 1 Apr 2020 21:44:59 -0700 Subject: [PATCH 3/7] Solved --- youtube_dl/extractor/extractors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index 41c02eeae..fd55c7ab4 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -1347,6 +1347,7 @@ from .vlive import ( VLiveChannelIE, VLivePlaylistIE ) +from .vlare import vlareIE from .vodlocker import VodlockerIE from .vodpl import VODPlIE from .vodplatform import VODPlatformIE From 943a7811b2086541d70d3079063030e1c6c4ef8a Mon Sep 17 00:00:00 2001 From: yasho21 <55759897+yasho21@users.noreply.github.com> Date: Wed, 1 Apr 2020 21:52:01 -0700 Subject: [PATCH 4/7] Delete likee.py --- youtube_dl/extractor/likee.py | 39 ----------------------------------- 1 file changed, 39 deletions(-) delete mode 100644 youtube_dl/extractor/likee.py diff --git a/youtube_dl/extractor/likee.py b/youtube_dl/extractor/likee.py deleted file mode 100644 index 9e3373d3b..000000000 --- a/youtube_dl/extractor/likee.py +++ /dev/null @@ -1,39 +0,0 @@ -from __future__ import unicode_literals - -from .common import InfoExtractor - - -class likeeIE(InfoExtractor): - - - - _VALID_URL = r'(?:https?://)?(?:www\.)?likee\.com/@(?P\w+[-0-9])*/video/[0-9]+' - #print(1) - #_TESTS = { - # TODO: Implement - - #} - - def _real_extract(self, url): - video_id = self._match_id(url) - webpage = self._download_webpage( - r'http?://video\.like\.video/[A-Za-z0-9!_/=@#$%^&*(),.?:{}|<>]*', video_id - ) - - - title = "video 1" - download_url = self._html_search_regex( - - r'http?://video\.like\.video/[A-Za-z0-9!_/=@#$%^&*(),.?:{}|<>]*', - - webpage, "download_url" - ) - - - - - return { - 'id': video_id, - 'url': download_url, - 'title': title - } From e0924045929956b19dd9e197f6a9ce2dd43d6e78 Mon Sep 17 00:00:00 2001 From: yasho21 <55759897+yasho21@users.noreply.github.com> Date: Wed, 1 Apr 2020 21:53:42 -0700 Subject: [PATCH 5/7] Update extractors.py --- youtube_dl/extractor/extractors.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index fd55c7ab4..ed8152cd5 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -570,7 +570,7 @@ from .liveleak import ( LiveLeakIE, LiveLeakEmbedIE, ) -from .likee import likeeIE + from .livestream import ( LivestreamIE, LivestreamOriginalIE, From e7e007dd1fc322dbb9202971b746437c456ad404 Mon Sep 17 00:00:00 2001 From: yasho21 <55759897+yasho21@users.noreply.github.com> Date: Mon, 6 Apr 2020 20:08:14 -0700 Subject: [PATCH 6/7] Update extractors.py Import for yjc --- youtube_dl/extractor/extractors.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/extractors.py b/youtube_dl/extractor/extractors.py index ed8152cd5..09918d69f 100644 --- a/youtube_dl/extractor/extractors.py +++ b/youtube_dl/extractor/extractors.py @@ -1447,6 +1447,7 @@ from .yandexvideo import YandexVideoIE from .yapfiles import YapFilesIE from .yesjapan import YesJapanIE from .yinyuetai import YinYueTaiIE +from .yjc import yjcIE from .ynet import YnetIE from .youjizz import YouJizzIE from .youku import ( From fb3d5d9986f27a09a4251bf95019b01c859dc82d Mon Sep 17 00:00:00 2001 From: yasho21 <55759897+yasho21@users.noreply.github.com> Date: Mon, 6 Apr 2020 20:10:22 -0700 Subject: [PATCH 7/7] Yjc extractor --- youtube_dl/extractor/yjc.py | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 youtube_dl/extractor/yjc.py diff --git a/youtube_dl/extractor/yjc.py b/youtube_dl/extractor/yjc.py new file mode 100644 index 000000000..922d2ab62 --- /dev/null +++ b/youtube_dl/extractor/yjc.py @@ -0,0 +1,32 @@ +from __future__ import unicode_literals + +from .common import InfoExtractor + + +class yjcIE(InfoExtractor): + _VALID_URL = r'(?:https?://)?(?:www\.)?yjc\.ir/fa/news/(?P\w+)/*' + + _TESTS = { + # TODO: Implement + } + + def _real_extract(self, url): + video_id = self._match_id(url) + + webpage = self._download_webpage( + url, video_id + ) + + title = self._html_search_regex(r'(.+?)', webpage, 'title') + + download_url = self._html_search_regex( + + r'((https:\/\/)cdn\.yjc\.ir/files/fa/news/[0-9]*/[0-9]*/[0-9]*/[0-9_]*\.mp4)', + + webpage, "download_url" + ) + return { + 'id': video_id, + 'url': download_url, + 'title': title + }