Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for Mzaalo #7163

Merged
merged 14 commits into from May 29, 2023
Merged

Support for Mzaalo #7163

merged 14 commits into from May 29, 2023

Conversation

ItzMaxTV
Copy link
Contributor

@ItzMaxTV ItzMaxTV commented May 29, 2023

IMPORTANT: PRs without the template will be CLOSED

Description of your pull request and other information

Mzaalo, a site for movies, shows, and m-play (clips) with support of multiple languages such as Bengali, Hindi, Kannada, etc..

[debug] Loaded 1814 extractors 
[Mzaalo] Extracting URL: https://www.mzaalo.com/play/movie/c0958d9f-f90e-4503-a755-44358758921d/Jamun 
[Mzaalo] c0958d9f-f90e-4503-a755-44358758921d: Downloading JSON metadata 
[Mzaalo] c0958d9f-f90e-4503-a755-44358758921d: Downloading m3u8 information 
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id 
[info] c0958d9f-f90e-4503-a755-44358758921d: Downloading 1 format(s): 3661
[info] Writing video metadata as JSON to: test_Mzaalo_c0958d9f-f90e-4503-a755-44358758921d.info.json 
[debug] Invoking hlsnative downloader on "https://content-aaps1-ur-fifa1.uplynk.com/636ad16a1c554df0a0958716fab45902/f.m3u8?tc=1&exp=1685320198&rn=2074360713&ct=a&eid=7005875&oid=12ccd788e5224b0692264ac02cc4929f&ddp=1&rates=&sig=5d991bfbcfddc8b79ea17a6d066429307a692631297dd5586f72e85070b80c59&pbs=a17377135b804af29d45088061809265"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 1350 
[download] Destination: test_Mzaalo_c0958d9f-f90e-4503-a755-44358758921d.mp4
[download] 100% of  752.56KiB in 00:00:00 at 1.14MiB/s
[debug] Loaded 1814 extractors 
[Mzaalo] Extracting URL: https://www.mzaalo.com/play/original/93d42b2b-f373-4c2d-bca4-997412cb069d/Modi-Season-2-CM-TO-PM/Episode-1:Decision,-Not-Promises 
[Mzaalo] 93d42b2b-f373-4c2d-bca4-997412cb069d: Downloading JSON metadata
[Mzaalo] 93d42b2b-f373-4c2d-bca4-997412cb069d: Downloading m3u8 information 
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id 
[info] 93d42b2b-f373-4c2d-bca4-997412cb069d: Downloading 1 format(s): 3712 
[info] Writing video metadata as JSON to: test_Mzaalo_1_93d42b2b-f373-4c2d-bca4-997412cb069d.info.json
[debug] Invoking hlsnative downloader on "https://content-aaps1-ur-fifa1.uplynk.com/50c3ca8e3e014ab4a4991f80e3481298/f.m3u8?tc=1&exp=1685320205&rn=1677183904&ct=a&eid=7004585&oid=12ccd788e5224b0692264ac02cc4929f&ddp=1&rates=&sig=2c214532de04b046c72fe4b327a65b6ddf60a5e104176d26f83c7c08a65ffeb8&pbs=c910ba8ed6c849548a912627d210ef15"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 499 
[download] Destination: test_Mzaalo_1_93d42b2b-f373-4c2d-bca4-997412cb069d.mp4 
[download] 100% of    1.13MiB in 00:00:00 at 2.51MiB/s
[debug] Loaded 1814 extractors 
[Mzaalo] Extracting URL: https://www.mzaalo.com/play/clip/83cdbcb5-400a-42f1-a1d2-459053cfbda5/Manto-Ki-Kahaaniya 
[Mzaalo] 83cdbcb5-400a-42f1-a1d2-459053cfbda5: Downloading JSON metadata
[Mzaalo] 83cdbcb5-400a-42f1-a1d2-459053cfbda5: Downloading m3u8 information 
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, hdr:12(7), vcodec:vp9.2(10), channels, acodec, filesize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id 
[info] 83cdbcb5-400a-42f1-a1d2-459053cfbda5: Downloading 1 format(s): 3828 
[info] Writing video metadata as JSON to: test_Mzaalo_2_83cdbcb5-400a-42f1-a1d2-459053cfbda5.info.json 
[debug] Invoking hlsnative downloader on "https://mzaalovod.pc.cdn.bitgravity.com/inverleigh-output/Manto_ki_kahaaniya_film/3700k/HLS/Manto_ki_kahaaniya_film_3700k.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 194 
[download] Destination: test_Mzaalo_2_83cdbcb5-400a-42f1-a1d2-459053cfbda5.mp4 
[download] 100% of    6.33MiB in 00:00:13 at 483.52KiB/s
ok

----------------------------------------------------------------------
Ran 1 test in 27.727s

OK

Fixes #

Template

Before submitting a pull request make sure you have:

In order to be accepted and merged into yt-dlp each piece of code must be in public domain or released under Unlicense. Check all of the following options that apply:

  • I am the original author of this code and I am willing to release it under Unlicense
  • I am not the original author of this code but it is in public domain or released under Unlicense (provide reliable evidence)

What is the purpose of your pull request?

Copilot Summary

馃 Generated by Copilot at c6971f7

Summary

馃帴馃寪馃啎

This pull request adds support for downloading videos from Mzaalo and Weyyak, two streaming platforms for Indian and Arabic content. It introduces two new modules, mzaalo.py and weyyak.py, which define the extractor classes for these platforms. The classes implement the logic for extracting the video metadata and URLs from the JSON data.

We're the brave and bold extractors of the video streams
We parse the URLs and download the JSON schemes
We fetch the metadata and formats from MzaaloIE and WeyyakIE
And we return the dictionaries for youtube-dl to see

Walkthrough

  • Add support for extracting videos from Mzaalo and Weyyak platforms (link, link, link, link)
  • Import MzaaloIE and WeyyakIE classes from mzaalo.py and weyyak.py modules respectively in _extractors.py (link, link)
  • Define MzaaloIE class in mzaalo.py that inherits from InfoExtractor and implements _real_extract method (link)
  • Define WeyyakIE class in weyyak.py that inherits from InfoExtractor and implements _real_extract method (link)

@ItzMaxTV ItzMaxTV mentioned this pull request May 29, 2023
11 tasks
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/weyyak.py Outdated Show resolved Hide resolved
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
@ItzMaxTV ItzMaxTV requested a review from pukkandan May 29, 2023 04:25
@pukkandan pukkandan added the site-request Request to support a new website label May 29, 2023
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
yt_dlp/extractor/mzaalo.py Outdated Show resolved Hide resolved
@pukkandan pukkandan merged commit dc3c44f into yt-dlp:master May 29, 2023
11 checks passed
@ItzMaxTV ItzMaxTV deleted the Mzaalo branch May 29, 2023 15:22
@ItzMaxTV ItzMaxTV restored the Mzaalo branch May 29, 2023 15:22
aalsuwaidi pushed a commit to aalsuwaidi/yt-dlp that referenced this pull request Apr 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
site-request Request to support a new website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants