1
0
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:
Iuri Campos 2025-07-31 12:29:23 +01:00
parent 8fb2e1a30e
commit c5b0479c8d
4 changed files with 25 additions and 2 deletions

View File

@ -1327,7 +1327,6 @@ # Supported sites
- **ShahidShow**
- **SharePoint**
- **ShareVideosEmbed**
- **Shiey**
- **ShemarooMe**
- **ShowRoomLive**
- **ShugiinItvLive**: 衆議院インターネット審議中継

View File

@ -1871,6 +1871,7 @@
from .sharepoint import SharePointIE
from .sharevideos import ShareVideosEmbedIE
from .shemaroome import ShemarooMeIE
from .shiey import ShieyIE
from .showroomlive import ShowRoomLiveIE
from .sibnet import SibnetEmbedIE
from .simplecast import (

24
yt_dlp/extractor/shiey.py Normal file
View 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=\\&quot;(https?://player\.vimeo\.com/video/[^\\&]+)', webpage, 'vimeo url')
return self.url_result(VimeoIE._smuggle_referrer(vimeo_url, url), VimeoIE)

View File

@ -403,7 +403,6 @@ class VimeoIE(VimeoBaseInfoExtractor):
r'<embed[^>]+?src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/moogaloop\.swf.+?)\1',
# Non-standard embedded Vimeo player
r'<video[^>]+src=(["\'])(?P<url>(?:https?:)?//(?:www\.)?vimeo\.com/[0-9]+)\1',
r'iframe src=\\&quot;(?P<url>(https?://player\.vimeo\.com/video/[^\\&]+))',
]
_TESTS = [
{