aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/chingari.py
diff options
context:
space:
mode:
Diffstat (limited to 'yt_dlp/extractor/chingari.py')
-rw-r--r--yt_dlp/extractor/chingari.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/yt_dlp/extractor/chingari.py b/yt_dlp/extractor/chingari.py
index e6841fb8b..7e8c0bfc9 100644
--- a/yt_dlp/extractor/chingari.py
+++ b/yt_dlp/extractor/chingari.py
@@ -1,6 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
import itertools
import json
@@ -48,6 +45,8 @@ class ChingariBaseIE(InfoExtractor):
return {
'id': id,
+ 'extractor_key': ChingariIE.ie_key(),
+ 'extractor': 'Chingari',
'title': compat_urllib_parse_unquote_plus(clean_html(post_data.get('caption'))),
'description': compat_urllib_parse_unquote_plus(clean_html(post_data.get('caption'))),
'duration': media_data.get('duration'),
@@ -105,11 +104,11 @@ class ChingariUserIE(ChingariBaseIE):
_VALID_URL = r'https?://(?:www\.)?chingari\.io/(?!share/post)(?P<id>[^/?]+)'
_TESTS = [{
'url': 'https://chingari.io/dada1023',
- 'playlist_mincount': 3,
'info_dict': {
'id': 'dada1023',
},
- 'entries': [{
+ 'params': {'playlistend': 3},
+ 'playlist': [{
'url': 'https://chingari.io/share/post?id=614781f3ade60b3a0bfff42a',
'info_dict': {
'id': '614781f3ade60b3a0bfff42a',