mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[chingari] Fix archiving and tests
This commit is contained in:
parent
a49e777d59
commit
583910682f
1 changed files with 4 additions and 2 deletions
|
@ -45,6 +45,8 @@ def _get_post(self, id, post_data):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'id': id,
|
'id': id,
|
||||||
|
'extractor_key': ChingariIE.ie_key(),
|
||||||
|
'extractor': 'Chingari',
|
||||||
'title': compat_urllib_parse_unquote_plus(clean_html(post_data.get('caption'))),
|
'title': compat_urllib_parse_unquote_plus(clean_html(post_data.get('caption'))),
|
||||||
'description': 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'),
|
'duration': media_data.get('duration'),
|
||||||
|
@ -102,11 +104,11 @@ class ChingariUserIE(ChingariBaseIE):
|
||||||
_VALID_URL = r'https?://(?:www\.)?chingari\.io/(?!share/post)(?P<id>[^/?]+)'
|
_VALID_URL = r'https?://(?:www\.)?chingari\.io/(?!share/post)(?P<id>[^/?]+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://chingari.io/dada1023',
|
'url': 'https://chingari.io/dada1023',
|
||||||
'playlist_mincount': 3,
|
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': 'dada1023',
|
'id': 'dada1023',
|
||||||
},
|
},
|
||||||
'entries': [{
|
'params': {'playlistend': 3},
|
||||||
|
'playlist': [{
|
||||||
'url': 'https://chingari.io/share/post?id=614781f3ade60b3a0bfff42a',
|
'url': 'https://chingari.io/share/post?id=614781f3ade60b3a0bfff42a',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '614781f3ade60b3a0bfff42a',
|
'id': '614781f3ade60b3a0bfff42a',
|
||||||
|
|
Loading…
Reference in a new issue