aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/zingmp3.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 05:39:58 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-04-17 08:40:30 +0530
commitb7da73eb19e00e4eab43ec7de129e9aa12f6d5d3 (patch)
treea87c490ae5d4de7e95c7b7a6cb9e5184d4827fd8 /yt_dlp/extractor/zingmp3.py
parent6a39ee13f7613767905a4669d1d0247aafc5a12c (diff)
downloadhypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.lz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.tar.xz
hypervideo-pre-b7da73eb19e00e4eab43ec7de129e9aa12f6d5d3.zip
Add option `--ignore-no-formats-error`
* Ignores the "no video format" and similar errors * Experimental - Some extractors may still throw these errors
Diffstat (limited to 'yt_dlp/extractor/zingmp3.py')
-rw-r--r--yt_dlp/extractor/zingmp3.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/yt_dlp/extractor/zingmp3.py b/yt_dlp/extractor/zingmp3.py
index 207c04f5e..a3edc158f 100644
--- a/yt_dlp/extractor/zingmp3.py
+++ b/yt_dlp/extractor/zingmp3.py
@@ -3,7 +3,6 @@ from __future__ import unicode_literals
from .common import InfoExtractor
from ..utils import (
- ExtractorError,
int_or_none,
)
@@ -48,8 +47,8 @@ class ZingMp3BaseIE(InfoExtractor):
return
msg = item['msg']
if msg == 'Sorry, this content is not available in your country.':
- self.raise_geo_restricted(countries=self._GEO_COUNTRIES)
- raise ExtractorError(msg, expected=True)
+ self.raise_geo_restricted(countries=self._GEO_COUNTRIES, metadata_available=True)
+ self.raise_no_formats(msg, expected=True)
self._sort_formats(formats)
subtitles = None