mirror of
https://github.com/soimort/you-get.git
synced 2025-02-03 08:43:58 +03:00
[Zhanqi]Modified something...
Changed something according to @jackyzy823
This commit is contained in:
parent
6e81b8d684
commit
66d6907877
@ -38,14 +38,15 @@ def zhanqi_download(url, output_dir = '.', merge = True, info_only = False):
|
|||||||
real_url.append(i)
|
real_url.append(i)
|
||||||
type_ = ''
|
type_ = ''
|
||||||
size = 0
|
size = 0
|
||||||
_, type_, temp = url_info(real_url[0])
|
for url in real_url:
|
||||||
size = temp*(len(real_url))
|
_, type_, temp = url_info(url)
|
||||||
|
size += temp or 0
|
||||||
|
|
||||||
print_info(site_info, title, type_ or 'ts', size)
|
print_info(site_info, title, type_ or 'ts', size)
|
||||||
if not info_only:
|
if not info_only:
|
||||||
download_urls(real_url, title, type_ or 'ts', None, output_dir, merge = merge)
|
download_urls(real_url, title, type_ or 'ts', None, output_dir, merge = merge)
|
||||||
else:
|
else:
|
||||||
NotImplementedError(Unknown_video_type)
|
NotImplementedError('Unknown_video_type')
|
||||||
site_info = "zhanqi.tv"
|
site_info = "zhanqi.tv"
|
||||||
download = zhanqi_download
|
download = zhanqi_download
|
||||||
download_playlist = playlist_not_supported('zhanqi')
|
download_playlist = playlist_not_supported('zhanqi')
|
||||||
|
Loading…
Reference in New Issue
Block a user