{"action":"created","issue":{"url":"https://api.github.com/repos/soimort/you-get/issues/463","labels_url":"https://api.github.com/repos/soimort/you-get/issues/463/labels{/name}","comments_url":"https://api.github.com/repos/soimort/you-get/issues/463/comments","events_url":"https://api.github.com/repos/soimort/you-get/issues/463/events","html_url":"https://github.com/soimort/you-get/pull/463","id":52646951,"number":463,"title":"fix youku's bug #450 #390 translate from LiuLang  monkey-videos","user":{"login":"linhua55","id":6326116,"avatar_url":"https://avatars.githubusercontent.com/u/6326116?v=3","gravatar_id":"","url":"https://api.github.com/users/linhua55","html_url":"https://github.com/linhua55","followers_url":"https://api.github.com/users/linhua55/followers","following_url":"https://api.github.com/users/linhua55/following{/other_user}","gists_url":"https://api.github.com/users/linhua55/gists{/gist_id}","starred_url":"https://api.github.com/users/linhua55/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/linhua55/subscriptions","organizations_url":"https://api.github.com/users/linhua55/orgs","repos_url":"https://api.github.com/users/linhua55/repos","events_url":"https://api.github.com/users/linhua55/events{/privacy}","received_events_url":"https://api.github.com/users/linhua55/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-12-22T12:52:28Z","updated_at":"2015-01-02T18:12:33Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/soimort/you-get/pulls/463","html_url":"https://github.com/soimort/you-get/pull/463","diff_url":"https://github.com/soimort/you-get/pull/463.diff","patch_url":"https://github.com/soimort/you-get/pull/463.patch"},"body":"翻译的 LiuLang 的monkey-videos\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/soimort/you-get/463)\n<!-- Reviewable:end -->\n"},"comment":{"url":"https://api.github.com/repos/soimort/you-get/issues/comments/68547897","html_url":"https://github.com/soimort/you-get/pull/463#issuecomment-68547897","issue_url":"https://api.github.com/repos/soimort/you-get/issues/463","id":68547897,"user":{"login":"soimort","id":342945,"avatar_url":"https://avatars.githubusercontent.com/u/342945?v=3","gravatar_id":"","url":"https://api.github.com/users/soimort","html_url":"https://github.com/soimort","followers_url":"https://api.github.com/users/soimort/followers","following_url":"https://api.github.com/users/soimort/following{/other_user}","gists_url":"https://api.github.com/users/soimort/gists{/gist_id}","starred_url":"https://api.github.com/users/soimort/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/soimort/subscriptions","organizations_url":"https://api.github.com/users/soimort/orgs","repos_url":"https://api.github.com/users/soimort/repos","events_url":"https://api.github.com/users/soimort/events{/privacy}","received_events_url":"https://api.github.com/users/soimort/received_events","type":"User","site_admin":false},"created_at":"2015-01-02T18:12:33Z","updated_at":"2015-01-02T18:12:33Z","body":"Thanks.\r\n\r\nThe new code raises a `TypeError` for some videos that cannot be streamed outside mainland China:\r\n\r\n```\r\n$ ./you-get -u --format=hd2 http://v.youku.com/v_show/id_XNTc2NDk2MDMy\r\nyou_get: [Warning] This video can only be streamed within Mainland China!\r\nyou_get: Use '-y' to specify a proxy server for extracting stream data.\r\n\r\nTraceback (most recent call last):\r\n  File \"./you-get\", line 19, in <module>\r\n    you_get.main(repo_path=_filepath)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/__main__.py\", line 91, in main\r\n    main()\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/common.py\", line 998, in main\r\n    script_main('you-get', any_download, any_download_playlist)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/common.py\", line 887, in script_main\r\n    download_main(download, download_playlist, args, playlist, stream_id=stream_id, output_dir=output_dir, merge=merge, info_only=info_only)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/common.py\", line 784, in download_main\r\n    download(url, **kwargs)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/common.py\", line 991, in any_download\r\n    m.download(url, **kwargs)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/extractor.py\", line 44, in download_by_url\r\n    self.extract(**kwargs)\r\n  File \"/home/soimort/Projects/you-get-develop/src/you_get/extractors/youku.py\", line 236, in extract\r\n    m3u8+='?K='+ k\r\nTypeError: Can't convert 'int' object to str implicitly\r\n```\r\n\r\nWhile the old one can still extract the source:\r\n```\r\n$ you-get -u --format=hd2 http://v.youku.com/v_show/id_XNTc2NDk2MDMy \r\nyou_get: [Warning] This video can only be streamed within Mainland China!\r\nyou_get: Use '-y' to specify a proxy server for extracting stream data.\r\n\r\nsite:                优酷 (Youku)\r\ntitle:               疯狂原始人（国语）\r\nstream:\r\n    - format:        hd2\r\n      container:     flv\r\n      video-profile: 超清\r\n      size:          841.9 MiB (882788723 bytes)\r\n    # download-with: you-get --format=hd2 [URL]\r\n\r\naudio-languages:\r\n    - lang:          国语\r\n      download-url:  http://v.youku.com/v_show/id_XNTc2NDk2MDMy\r\n\r\n    - lang:          英语\r\n      download-url:  http://v.youku.com/v_show/id_XNTc3OTU5NzI4\r\n\r\n    - lang:          粤语\r\n      download-url:  http://v.youku.com/v_show/id_XNjg3NzM3ODcy\r\n\r\nReal URLs:\r\n['http://122.143.9.207/69732D68DDF4B82B164AC15558/0300011F0051D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://221.204.199.106/6772C7BB5B03982E1CB9652715/0300011F0151D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://175.22.3.210/6973F8C2694397621F0256CC2/0300011F0251D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://218.26.231.40/6572C7BB79E3C77966F8C3D87/0300011F0351D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://218.60.102.172/6773F8C2C54327CB69DDB4144/0300011F0451D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://103.224.233.50/67745E6F96A4D8448EB9D75E5F/0300011F0551D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://113.6.235.178/6573F8C2C554C73CA871B64E3/0300011F0651D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://175.22.3.141/677529C9B4830752593BD5D90/0300011F0751D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://221.204.194.205/6574C41CCED3982E1BB70D2DB8/0300011F0851D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://122.143.9.201/657529C95A44482702E13F3306/0300011F0951D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://221.203.1.202/65758F76F704083370AE323CE9/0300011F0A51D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://61.54.96.110/6575F52357C4C811B1BA2F5403/0300011F0B51D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv', 'http://60.211.205.13/6977F184C7A3B83159993B44C0/0300011F0C51D4A19EE14405CF07DD46D1E90B-DAB6-BA76-3252-99CDEB847AFF.flv']\r\n```\r\n\r\nNot sure why this happens, I'll look into this later. For now, if anyone needs this feature (and doesn't care about overseas usability), you can check out the [youku-full-video](https://github.com/soimort/you-get/tree/youku-full-video) branch."}}