{"action":"opened","number":2941,"pull_request":{"url":"https://api.github.com/repos/mpv-player/mpv/pulls/2941","id":62689275,"html_url":"https://github.com/mpv-player/mpv/pull/2941","diff_url":"https://github.com/mpv-player/mpv/pull/2941.diff","patch_url":"https://github.com/mpv-player/mpv/pull/2941.patch","issue_url":"https://api.github.com/repos/mpv-player/mpv/issues/2941","number":2941,"state":"open","locked":false,"title":"player: integrate svtplay-dl hook script","user":{"login":"avtobiff","id":50006,"avatar_url":"https://avatars.githubusercontent.com/u/50006?v=3","gravatar_id":"","url":"https://api.github.com/users/avtobiff","html_url":"https://github.com/avtobiff","followers_url":"https://api.github.com/users/avtobiff/followers","following_url":"https://api.github.com/users/avtobiff/following{/other_user}","gists_url":"https://api.github.com/users/avtobiff/gists{/gist_id}","starred_url":"https://api.github.com/users/avtobiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtobiff/subscriptions","organizations_url":"https://api.github.com/users/avtobiff/orgs","repos_url":"https://api.github.com/users/avtobiff/repos","events_url":"https://api.github.com/users/avtobiff/events{/privacy}","received_events_url":"https://api.github.com/users/avtobiff/received_events","type":"User","site_admin":false},"body":"The integration of the svtplay-dl hook script enables more streaming\r\nsites being played directly with mpv.\r\n\r\nThere are some consideration though.\r\n\r\n* For every URL youtube-dl has presedence. This is fine as long as it\r\n  returns a streamable URL, although that is not always the case.\r\n\r\n  Since the ytdl_hook sets stream-open-filename, and svtplay_dl_hook is\r\n  called afterwards, svtplay_dl_hook bails stating that the URL is not\r\n  supported.\r\n\r\n  Run e.g.\r\n\r\n      build/mpv http://www.ur.se/Produkter/186582-Lassugen-Lydia-och-Markoolio\r\n      ...\r\n      [svtplay_dl_hook] ERROR: That site is not supported. Make a ticket or send a message\r\n\r\n  Without ytdl_hook it plays fine\r\n\r\n      build/mpv --no-ytdl http://www.ur.se/Produkter/186582-Lassugen-Lydia-och-Markoolio\r\n\r\n  Without added verbosity it seems that svtplay-dl doesn't support the URL\r\n  which it actually does. To help remedy this, the user receieves a\r\n  warning to disable ytdl_hook with --no-ytdl.\r\n\r\n* svtplay_dl_hook is always run even if ytdl_hook has set\r\n  stream-open-filename with a streamable URL. This means svtplay_dl_hook\r\n  will output critical error messages to the user even if a stream has\r\n  been initiated.","created_at":"2016-03-14T00:30:10Z","updated_at":"2016-03-14T00:30:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mpv-player/mpv/pulls/2941/commits","review_comments_url":"https://api.github.com/repos/mpv-player/mpv/pulls/2941/comments","review_comment_url":"https://api.github.com/repos/mpv-player/mpv/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mpv-player/mpv/issues/2941/comments","statuses_url":"https://api.github.com/repos/mpv-player/mpv/statuses/2b2bfaa21763cc59fccb481ac33db0f503a55c52","head":{"label":"avtobiff:integrate-svtplay-dl-hook-script","ref":"integrate-svtplay-dl-hook-script","sha":"2b2bfaa21763cc59fccb481ac33db0f503a55c52","user":{"login":"avtobiff","id":50006,"avatar_url":"https://avatars.githubusercontent.com/u/50006?v=3","gravatar_id":"","url":"https://api.github.com/users/avtobiff","html_url":"https://github.com/avtobiff","followers_url":"https://api.github.com/users/avtobiff/followers","following_url":"https://api.github.com/users/avtobiff/following{/other_user}","gists_url":"https://api.github.com/users/avtobiff/gists{/gist_id}","starred_url":"https://api.github.com/users/avtobiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtobiff/subscriptions","organizations_url":"https://api.github.com/users/avtobiff/orgs","repos_url":"https://api.github.com/users/avtobiff/repos","events_url":"https://api.github.com/users/avtobiff/events{/privacy}","received_events_url":"https://api.github.com/users/avtobiff/received_events","type":"User","site_admin":false},"repo":{"id":53792178,"name":"mpv","full_name":"avtobiff/mpv","owner":{"login":"avtobiff","id":50006,"avatar_url":"https://avatars.githubusercontent.com/u/50006?v=3","gravatar_id":"","url":"https://api.github.com/users/avtobiff","html_url":"https://github.com/avtobiff","followers_url":"https://api.github.com/users/avtobiff/followers","following_url":"https://api.github.com/users/avtobiff/following{/other_user}","gists_url":"https://api.github.com/users/avtobiff/gists{/gist_id}","starred_url":"https://api.github.com/users/avtobiff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avtobiff/subscriptions","organizations_url":"https://api.github.com/users/avtobiff/orgs","repos_url":"https://api.github.com/users/avtobiff/repos","events_url":"https://api.github.com/users/avtobiff/events{/privacy}","received_events_url":"https://api.github.com/users/avtobiff/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/avtobiff/mpv","description":"Video player based on MPlayer/mplayer2","fork":true,"url":"https://api.github.com/repos/avtobiff/mpv","forks_url":"https://api.github.com/repos/avtobiff/mpv/forks","keys_url":"https://api.github.com/repos/avtobiff/mpv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/avtobiff/mpv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/avtobiff/mpv/teams","hooks_url":"https://api.github.com/repos/avtobiff/mpv/hooks","issue_events_url":"https://api.github.com/repos/avtobiff/mpv/issues/events{/number}","events_url":"https://api.github.com/repos/avtobiff/mpv/events","assignees_url":"https://api.github.com/repos/avtobiff/mpv/assignees{/user}","branches_url":"https://api.github.com/repos/avtobiff/mpv/branches{/branch}","tags_url":"https://api.github.com/repos/avtobiff/mpv/tags","blobs_url":"https://api.github.com/repos/avtobiff/mpv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/avtobiff/mpv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/avtobiff/mpv/git/refs{/sha}","trees_url":"https://api.github.com/repos/avtobiff/mpv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/avtobiff/mpv/statuses/{sha}","languages_url":"https://api.github.com/repos/avtobiff/mpv/languages","stargazers_url":"https://api.github.com/repos/avtobiff/mpv/stargazers","contributors_url":"https://api.github.com/repos/avtobiff/mpv/contributors","subscribers_url":"https://api.github.com/repos/avtobiff/mpv/subscribers","subscription_url":"https://api.github.com/repos/avtobiff/mpv/subscription","commits_url":"https://api.github.com/repos/avtobiff/mpv/commits{/sha}","git_commits_url":"https://api.github.com/repos/avtobiff/mpv/git/commits{/sha}","comments_url":"https://api.github.com/repos/avtobiff/mpv/comments{/number}","issue_comment_url":"https://api.github.com/repos/avtobiff/mpv/issues/comments{/number}","contents_url":"https://api.github.com/repos/avtobiff/mpv/contents/{+path}","compare_url":"https://api.github.com/repos/avtobiff/mpv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/avtobiff/mpv/merges","archive_url":"https://api.github.com/repos/avtobiff/mpv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/avtobiff/mpv/downloads","issues_url":"https://api.github.com/repos/avtobiff/mpv/issues{/number}","pulls_url":"https://api.github.com/repos/avtobiff/mpv/pulls{/number}","milestones_url":"https://api.github.com/repos/avtobiff/mpv/milestones{/number}","notifications_url":"https://api.github.com/repos/avtobiff/mpv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/avtobiff/mpv/labels{/name}","releases_url":"https://api.github.com/repos/avtobiff/mpv/releases{/id}","deployments_url":"https://api.github.com/repos/avtobiff/mpv/deployments","created_at":"2016-03-13T15:27:40Z","updated_at":"2016-03-13T15:27:48Z","pushed_at":"2016-03-14T00:29:06Z","git_url":"git://github.com/avtobiff/mpv.git","ssh_url":"git@github.com:avtobiff/mpv.git","clone_url":"https://github.com/avtobiff/mpv.git","svn_url":"https://github.com/avtobiff/mpv","homepage":"https://mpv.io","size":72134,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"mpv-player:master","ref":"master","sha":"a1ffd7407def20d156e6720d6422054e27c883e0","user":{"login":"mpv-player","id":2550273,"avatar_url":"https://avatars.githubusercontent.com/u/2550273?v=3","gravatar_id":"","url":"https://api.github.com/users/mpv-player","html_url":"https://github.com/mpv-player","followers_url":"https://api.github.com/users/mpv-player/followers","following_url":"https://api.github.com/users/mpv-player/following{/other_user}","gists_url":"https://api.github.com/users/mpv-player/gists{/gist_id}","starred_url":"https://api.github.com/users/mpv-player/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpv-player/subscriptions","organizations_url":"https://api.github.com/users/mpv-player/orgs","repos_url":"https://api.github.com/users/mpv-player/repos","events_url":"https://api.github.com/users/mpv-player/events{/privacy}","received_events_url":"https://api.github.com/users/mpv-player/received_events","type":"Organization","site_admin":false},"repo":{"id":6201092,"name":"mpv","full_name":"mpv-player/mpv","owner":{"login":"mpv-player","id":2550273,"avatar_url":"https://avatars.githubusercontent.com/u/2550273?v=3","gravatar_id":"","url":"https://api.github.com/users/mpv-player","html_url":"https://github.com/mpv-player","followers_url":"https://api.github.com/users/mpv-player/followers","following_url":"https://api.github.com/users/mpv-player/following{/other_user}","gists_url":"https://api.github.com/users/mpv-player/gists{/gist_id}","starred_url":"https://api.github.com/users/mpv-player/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mpv-player/subscriptions","organizations_url":"https://api.github.com/users/mpv-player/orgs","repos_url":"https://api.github.com/users/mpv-player/repos","events_url":"https://api.github.com/users/mpv-player/events{/privacy}","received_events_url":"https://api.github.com/users/mpv-player/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mpv-player/mpv","description":"Video player based on MPlayer/mplayer2","fork":false,"url":"https://api.github.com/repos/mpv-player/mpv","forks_url":"https://api.github.com/repos/mpv-player/mpv/forks","keys_url":"https://api.github.com/repos/mpv-player/mpv/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mpv-player/mpv/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mpv-player/mpv/teams","hooks_url":"https://api.github.com/repos/mpv-player/mpv/hooks","issue_events_url":"https://api.github.com/repos/mpv-player/mpv/issues/events{/number}","events_url":"https://api.github.com/repos/mpv-player/mpv/events","assignees_url":"https://api.github.com/repos/mpv-player/mpv/assignees{/user}","branches_url":"https://api.github.com/repos/mpv-player/mpv/branches{/branch}","tags_url":"https://api.github.com/repos/mpv-player/mpv/tags","blobs_url":"https://api.github.com/repos/mpv-player/mpv/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mpv-player/mpv/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mpv-player/mpv/git/refs{/sha}","trees_url":"https://api.github.com/repos/mpv-player/mpv/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mpv-player/mpv/statuses/{sha}","languages_url":"https://api.github.com/repos/mpv-player/mpv/languages","stargazers_url":"https://api.github.com/repos/mpv-player/mpv/stargazers","contributors_url":"https://api.github.com/repos/mpv-player/mpv/contributors","subscribers_url":"https://api.github.com/repos/mpv-player/mpv/subscribers","subscription_url":"https://api.github.com/repos/mpv-player/mpv/subscription","commits_url":"https://api.github.com/repos/mpv-player/mpv/commits{/sha}","git_commits_url":"https://api.github.com/repos/mpv-player/mpv/git/commits{/sha}","comments_url":"https://api.github.com/repos/mpv-player/mpv/comments{/number}","issue_comment_url":"https://api.github.com/repos/mpv-player/mpv/issues/comments{/number}","contents_url":"https://api.github.com/repos/mpv-player/mpv/contents/{+path}","compare_url":"https://api.github.com/repos/mpv-player/mpv/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mpv-player/mpv/merges","archive_url":"https://api.github.com/repos/mpv-player/mpv/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mpv-player/mpv/downloads","issues_url":"https://api.github.com/repos/mpv-player/mpv/issues{/number}","pulls_url":"https://api.github.com/repos/mpv-player/mpv/pulls{/number}","milestones_url":"https://api.github.com/repos/mpv-player/mpv/milestones{/number}","notifications_url":"https://api.github.com/repos/mpv-player/mpv/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mpv-player/mpv/labels{/name}","releases_url":"https://api.github.com/repos/mpv-player/mpv/releases{/id}","deployments_url":"https://api.github.com/repos/mpv-player/mpv/deployments","created_at":"2012-10-13T08:08:44Z","updated_at":"2016-03-13T16:37:37Z","pushed_at":"2016-03-13T14:59:25Z","git_url":"git://github.com/mpv-player/mpv.git","ssh_url":"git@github.com:mpv-player/mpv.git","clone_url":"https://github.com/mpv-player/mpv.git","svn_url":"https://github.com/mpv-player/mpv","homepage":"https://mpv.io","size":108723,"stargazers_count":3124,"watchers_count":3124,"language":"C","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":418,"mirror_url":null,"open_issues_count":257,"forks":418,"open_issues":257,"watchers":3124,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2941"},"html":{"href":"https://github.com/mpv-player/mpv/pull/2941"},"issue":{"href":"https://api.github.com/repos/mpv-player/mpv/issues/2941"},"comments":{"href":"https://api.github.com/repos/mpv-player/mpv/issues/2941/comments"},"review_comments":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2941/comments"},"review_comment":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mpv-player/mpv/pulls/2941/commits"},"statuses":{"href":"https://api.github.com/repos/mpv-player/mpv/statuses/2b2bfaa21763cc59fccb481ac33db0f503a55c52"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":111,"deletions":1,"changed_files":8}}