mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 00:48:28 +00:00
Added dedicated extractor for Shiey.com
This commit is contained in:
parent
8fb2e1a30e
commit
c5b0479c8d
@ -1327,7 +1327,6 @@ # Supported sites
|
|||||||
- **ShahidShow**
|
- **ShahidShow**
|
||||||
- **SharePoint**
|
- **SharePoint**
|
||||||
- **ShareVideosEmbed**
|
- **ShareVideosEmbed**
|
||||||
- **Shiey**
|
|
||||||
- **ShemarooMe**
|
- **ShemarooMe**
|
||||||
- **ShowRoomLive**
|
- **ShowRoomLive**
|
||||||
- **ShugiinItvLive**: 衆議院インターネット審議中継
|
- **ShugiinItvLive**: 衆議院インターネット審議中継
|
||||||
|
@ -1871,6 +1871,7 @@
|
|||||||
from .sharepoint import SharePointIE
|
from .sharepoint import SharePointIE
|
||||||
from .sharevideos import ShareVideosEmbedIE
|
from .sharevideos import ShareVideosEmbedIE
|
||||||
from .shemaroome import ShemarooMeIE
|
from .shemaroome import ShemarooMeIE
|
||||||
|
from .shiey import ShieyIE
|
||||||
from .showroomlive import ShowRoomLiveIE
|
from .showroomlive import ShowRoomLiveIE
|
||||||
from .sibnet import SibnetEmbedIE
|
from .sibnet import SibnetEmbedIE
|
||||||
from .simplecast import (
|
from .simplecast import (
|
||||||
|
24
yt_dlp/extractor/shiey.py
Normal file
24
yt_dlp/extractor/shiey.py
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
from .common import InfoExtractor
|
||||||
|
from .vimeo import VimeoIE
|
||||||
|
|
||||||
|
|
||||||
|
class ShieyIE(InfoExtractor):
|
||||||
|
_VALID_URL = r'https?://(?:www\.)?shiey\.com/videos/v/(?P<id>[^/]+)'
|
||||||
|
|
||||||
|
_TESTS = [{
|
||||||
|
'url': 'https://www.shiey.com/videos/v/train-journey-to-edge-of-serbia-ep-2',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'train-journey-to-edge-of-serbia-ep-2',
|
||||||
|
'title': 'Train Journey to the Edge of Serbia - Ep. 2',
|
||||||
|
'uploader': 'Shiey',
|
||||||
|
},
|
||||||
|
'params': {
|
||||||
|
'skip_download': True,
|
||||||
|
},
|
||||||
|
}]
|
||||||
|
|
||||||
|
def _real_extract(self, url):
|
||||||
|
video_id = self._match_id(url)
|
||||||
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
vimeo_url = self._search_regex(r'iframe src=\\"(https?://player\.vimeo\.com/video/[^\\&]+)', webpage, 'vimeo url')
|
||||||
|
return self.url_result(VimeoIE._smuggle_referrer(vimeo_url, url), VimeoIE)
|
@ -403,7 +403,6 @@ class VimeoIE(VimeoBaseInfoExtractor):
|
|||||||
r'<embed[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)\1',
|
r'<embed[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)\1',
|
||||||
# Non-standard embedded Vimeo player
|
# Non-standard embedded Vimeo player
|
||||||
r'<video[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)\1',
|
r'<video[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)\1',
|
||||||
r'iframe src=\\"(?P<url>(https?://player\.vimeo\.com/video/[^\\&]+))',
|
|
||||||
]
|
]
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user