Skip to content

Commit

Permalink
[tiktok] fix contentUrl extraction
Browse files Browse the repository at this point in the history
  • Loading branch information
soimort committed Jun 13, 2020
1 parent c81cfb5 commit 9b6c53d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/you_get/extractors/tiktok.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def tiktok_download(url, output_dir='.', merge=True, info_only=False, **kwargs):
title = r1(r'<title.*?>(.*?)</title>', html)
video_id = r1(r'/video/(\d+)', url) or r1(r'musical\?id=(\d+)', html)
title = '%s [%s]' % (title, video_id)
source = r1(r'<video .*?src="([^"]+)"', html)
source = r1(r'<video .*?src="([^"]+)"', html) or r1(r'"contentUrl":"([^"]+)"', html)
mime, ext, size = url_info(source)

print_info(site_info, title, mime, size)
Expand Down

0 comments on commit 9b6c53d

Please sign in to comment.