mirror of
https://github.com/soimort/you-get.git
synced 2025-02-11 20:52:31 +03:00
New site support: https://www.ixigua.com/
This commit is contained in:
parent
b9d1987d23
commit
5fbe280325
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
__all__ = ['ixigua_download', '']
|
__all__ = ['ixigua_download', 'ixigua_download_playlist']
|
||||||
import base64
|
import base64
|
||||||
import random
|
import random
|
||||||
import binascii
|
import binascii
|
||||||
@ -66,8 +66,6 @@ def ixigua_download(url, output_dir='.', info_only=False, **kwargs):
|
|||||||
try:
|
try:
|
||||||
video_url = base64.b64decode(video_info["data"]["video_list"]["video_1"]["main_url"]).decode()
|
video_url = base64.b64decode(video_info["data"]["video_list"]["video_1"]["main_url"]).decode()
|
||||||
except Exception:
|
except Exception:
|
||||||
import traceback
|
|
||||||
traceback.print_exc()
|
|
||||||
raise NotImplementedError(url)
|
raise NotImplementedError(url)
|
||||||
filetype, ext, size = url_info(video_url)
|
filetype, ext, size = url_info(video_url)
|
||||||
print_info(site_info, title, filetype, size)
|
print_info(site_info, title, filetype, size)
|
||||||
|
Loading…
Reference in New Issue
Block a user