]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/filmmodu.py
1 from .common
import InfoExtractor
2 from ..utils
import int_or_none
5 class FilmmoduIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www.)?filmmodu.org/(?P<id>[^/]+-(?:turkce-dublaj-izle|altyazili-izle))'
8 'url': 'https://www.filmmodu.org/f9-altyazili-izle',
9 'md5': 'aeefd955c2a508a5bdaa3bcec8eeb0d4',
14 'description': 'md5:2713f584a4d65afa2611e2948d0b953c',
20 'thumbnail': r
're:https://s[0-9]+.filmmodu.org/uploads/movie/cover/10804/xXHZeb1yhJvnSHPzZDqee0zfMb6.jpg',
23 'url': 'https://www.filmmodu.org/the-godfather-turkce-dublaj-izle',
24 'md5': '109f2fcb9c941330eed133971c035c00',
29 'description': 'md5:d43fd651937cd75cc650883ebd8d8461',
30 'thumbnail': r
're:https://s[0-9]+.filmmodu.org/uploads/movie/cover/3646/6xKCYgH16UuwEGAyroLU6p8HLIn.jpg',
34 def _real_extract(self
, url
):
35 video_id
= self
._match
_id
(url
)
36 webpage
= self
._download
_webpage
(url
, video_id
)
37 title
= self
._og
_search
_title
(webpage
, fatal
=True)
38 description
= self
._og
_search
_description
(webpage
)
39 thumbnail
= self
._og
_search
_thumbnail
(webpage
)
40 real_video_id
= self
._search
_regex
(r
'var\s*videoId\s*=\s*\'([0-9]+)\'', webpage, 'video_id
')
41 video_type = self._search_regex(r'var\s
*videoType\s
*=\s
*\'([a
-z
]+)\'', webpage, 'video_type
')
42 data = self._download_json('https
://www
.filmmodu
.org
/get
-source
', real_video_id, query={
43 'movie_id
': real_video_id,
49 'format_id
': source['label
'],
50 'height
': int_or_none(source.get('res
')),
51 'protocol
': 'm3u8_native
',
52 } for source in data['sources
']]
56 if data.get('subtitle
'):
58 'url
': data['subtitle
'],
63 'display_id
': video_id,
65 'description
': description,
67 'subtitles
': subtitles,
68 'thumbnail
': thumbnail,