mirror of
https://github.com/soimort/you-get.git
synced 2025-01-23 13:35:16 +03:00
fix #5, iambus/youku-lixian#42: yinyuetai
This commit is contained in:
parent
8f10076c6a
commit
33069147d4
@ -10,7 +10,7 @@ def yinyuetai_download_by_id(id, title = None, output_dir = '.', merge = True, i
|
||||
#TODO: run a fully parse instead of text search
|
||||
# url = r1(r'(http://flv.yinyuetai.com/uploads/videos/common/\w+\.flv\?t=[a-f0-9]{16})', html)
|
||||
# url = r1(r'http://hc.yinyuetai.com/uploads/videos/common/[A-F0-9]{32}\.mp4\?v=\d{12}', html)
|
||||
url = r1(r'(http://\w+\.yinyuetai\.com/uploads/videos/common/\w+\.(?:flv|mp4)\?(?:t=[a-f0-9]{16}|v=\d{12}))', html)
|
||||
url = r1(r'(http://\w+\.yinyuetai\.com/uploads/videos/common/\w+\.(?:flv|mp4)\?(?:sc=[a-f0-9]{16}|v=\d{12}))', html)
|
||||
assert url
|
||||
type, ext, size = url_info(url)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user