youtube-dl: mewatch unable to download video; Unable to download JSON metadata
Checklist
- I’m reporting a broken site support issue
- I’ve verified that I’m running youtube-dl version 2021.12.17
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar bug reports including closed ones
- I’ve read bugs section in FAQ
Verbose log
PASTE VERBOSE LOG HERE
Description
WRITE DESCRIPTION HERE
Hi, I am unable to download any video from mewatch recently, i have been receiving this error while trying to download the videos.

About this issue
- Original URL
- State: open
- Created a year ago
- Comments: 19 (9 by maintainers)
I am not sure how I can help but I hope my info can help in some way.
Say I wanted to download this video link, https://www.mewatch.sg/watch/The-Star-Athlete-E9-Floorball-368951
It creates a .mpd file where it shows that files are hosted on cloudfront.net
And with the .mpd file, I could play the stream via VLC.
And these are the content of the .mpd file
<?xml version="1.0"?> <MPD xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="urn:mpeg:dash:schema:mpd:2011" xsi:schemaLocation="urn:mpeg:dash:schema:mpd:2011 http://standards.iso.org/ittf/PubliclyAvailableStandards/MPEG-DASH_schema_files/DASH-MPD.xsd" type="static" mediaPresentationDuration="PT2727.080S" minBufferTime="PT4S" profiles="urn:mpeg:dash:profile:isoff-main:2011"> <Period> <AdaptationSet id="1" segmentAlignment="true" maxWidth="1920" maxHeight="1080" maxFrameRate="25"> <SegmentTemplate timescale="1000" media="https://d1gbibt4vs5yna.cloudfront.net/dash/p/2082311/sp/208231100/serveFlavor/entryId/1_4n8bmm4x/v/1/pv/1/ev/17/flavorId/1_,a5kbb1y2,f1tmjacw,dze9tizj,lcfh661u,9szc627d,c8c75745,/forceproxy/true/name/a.mp4.urlset/fragment-$Number$-$RepresentationID$.m4s" initialization="https://d1gbibt4vs5yna.cloudfront.net/dash/p/2082311/sp/208231100/serveFlavor/entryId/1_4n8bmm4x/v/1/pv/1/ev/17/flavorId/1_,a5kbb1y2,f1tmjacw,dze9tizj,lcfh661u,9szc627d,c8c75745,/forceproxy/true/name/a.mp4.urlset/init-$RepresentationID$.mp4" duration="4000" startNumber="1"> </SegmentTemplate> <Representation id="f1-v1-x3" mimeType="video/mp4" codecs="avc1.42c01e" width="640" height="360" frameRate="25" sar="1:1" startWithSAP="1" bandwidth="715430"> </Representation> <Representation id="f2-v1-x3" mimeType="video/mp4" codecs="avc1.42c01e" width="854" height="480" frameRate="25" sar="1:1" startWithSAP="1" bandwidth="1293595"> </Representation> <Representation id="f3-v1-x3" mimeType="video/mp4" codecs="avc1.42c01f" width="960" height="540" frameRate="25" sar="1:1" startWithSAP="1" bandwidth="1811971"> </Representation> <Representation id="f4-v1-x3" mimeType="video/mp4" codecs="avc1.42c028" width="1280" height="720" frameRate="25" sar="1:1" startWithSAP="1" bandwidth="2434897"> </Representation> <Representation id="f5-v1-x3" mimeType="video/mp4" codecs="avc1.640028" width="1920" height="1080" frameRate="25" sar="1:1" startWithSAP="1" bandwidth="3945434"> </Representation> </AdaptationSet> <AdaptationSet id="2" segmentAlignment="true"> <AudioChannelConfiguration schemeIdUri="urn:mpeg:dash:23003:3:audio_channel_configuration:2011" value="1"/> <SegmentTemplate timescale="1000" media="https://d1gbibt4vs5yna.cloudfront.net/dash/p/2082311/sp/208231100/serveFlavor/entryId/1_4n8bmm4x/v/1/pv/1/ev/17/flavorId/1_,a5kbb1y2,f1tmjacw,dze9tizj,lcfh661u,9szc627d,c8c75745,/forceproxy/true/name/a.mp4.urlset/fragment-$Number$-$RepresentationID$.m4s" initialization="https://d1gbibt4vs5yna.cloudfront.net/dash/p/2082311/sp/208231100/serveFlavor/entryId/1_4n8bmm4x/v/1/pv/1/ev/17/flavorId/1_,a5kbb1y2,f1tmjacw,dze9tizj,lcfh661u,9szc627d,c8c75745,/forceproxy/true/name/a.mp4.urlset/init-$RepresentationID$.mp4" duration="4000" startNumber="1"> </SegmentTemplate> <Representation id="f2-a1-x3" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="44100" startWithSAP="1" bandwidth="93589"> </Representation> <Representation id="f4-a1-x3" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="44100" startWithSAP="1" bandwidth="125588"> </Representation> <Representation id="f6-a1-x3" mimeType="audio/mp4" codecs="mp4a.40.2" audioSamplingRate="44100" startWithSAP="1" bandwidth="64001"> </Representation> </AdaptationSet> </Period> </MPD>I just realized what is being asked for ToggleIE and the url format no longer exists. All of them are in the MeWatchIE format now. So we can just go with MeWatchIE and not bother with ToggleIE format
This
MeWatchIE._real_extract()seems to work:I didn’t investigate how
ToggleIEshould be updated. The first test fails in the same way as the MeWatch pages.