{"action":"created","issue":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/5215","labels_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5215/labels{/name}","comments_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5215/comments","events_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5215/events","html_url":"https://github.com/rg3/youtube-dl/pull/5215","id":61920691,"number":5215,"title":"[mixcloud] Fix extraction of URL and like-count","user":{"login":"Roman2K","id":2480,"avatar_url":"https://avatars.githubusercontent.com/u/2480?v=3","gravatar_id":"","url":"https://api.github.com/users/Roman2K","html_url":"https://github.com/Roman2K","followers_url":"https://api.github.com/users/Roman2K/followers","following_url":"https://api.github.com/users/Roman2K/following{/other_user}","gists_url":"https://api.github.com/users/Roman2K/gists{/gist_id}","starred_url":"https://api.github.com/users/Roman2K/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Roman2K/subscriptions","organizations_url":"https://api.github.com/users/Roman2K/orgs","repos_url":"https://api.github.com/users/Roman2K/repos","events_url":"https://api.github.com/users/Roman2K/events{/privacy}","received_events_url":"https://api.github.com/users/Roman2K/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-15T23:34:41Z","updated_at":"2015-03-18T16:13:17Z","closed_at":"2015-03-18T16:13:17Z","pull_request":{"url":"https://api.github.com/repos/rg3/youtube-dl/pulls/5215","html_url":"https://github.com/rg3/youtube-dl/pull/5215","diff_url":"https://github.com/rg3/youtube-dl/pull/5215.diff","patch_url":"https://github.com/rg3/youtube-dl/pull/5215.patch"},"body":"When I went to download Mixcloud songs, youtube-dl tried with a .mp3 URL first, then only m4a (which works once it finds a server from stream1 to stream30). This doesn't seem like a valid strategy anymore. From when I've seen in the Chrome console, only .m4a are streamed now.\r\n\r\nSo I updated the way URLs are extracted from the current DOM structure (like_count as well) and removed the .mp3 => .m4a fallback, now .m4a only.\r\n\r\nAlso, trying stream1..30 was slow. I made it so it tries the preview's server first (like stream18), then further and further out: stream19, 17, 20, 16, 21, ...\r\n\r\nNeeds testing, but should be stable from my tests."},"comment":{"url":"https://api.github.com/repos/rg3/youtube-dl/issues/comments/83039468","html_url":"https://github.com/rg3/youtube-dl/pull/5215#issuecomment-83039468","issue_url":"https://api.github.com/repos/rg3/youtube-dl/issues/5215","id":83039468,"user":{"login":"jaimeMF","id":1239727,"avatar_url":"https://avatars.githubusercontent.com/u/1239727?v=3","gravatar_id":"","url":"https://api.github.com/users/jaimeMF","html_url":"https://github.com/jaimeMF","followers_url":"https://api.github.com/users/jaimeMF/followers","following_url":"https://api.github.com/users/jaimeMF/following{/other_user}","gists_url":"https://api.github.com/users/jaimeMF/gists{/gist_id}","starred_url":"https://api.github.com/users/jaimeMF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaimeMF/subscriptions","organizations_url":"https://api.github.com/users/jaimeMF/orgs","repos_url":"https://api.github.com/users/jaimeMF/repos","events_url":"https://api.github.com/users/jaimeMF/events{/privacy}","received_events_url":"https://api.github.com/users/jaimeMF/received_events","type":"User","site_admin":false},"created_at":"2015-03-18T16:13:17Z","updated_at":"2015-03-18T16:13:17Z","body":"I have cherry picked the fix for the like count in fa8ce2690447fa06a10398efd5b6dfa96c2ed1b4 and the change in the server order in aae53774f247edcca7671434c16f7931d5c7b9da.\r\n\r\nIf you have a way for detecting if the track is available in m4a or mp3, we'd review it.\r\n\r\nThanks!"}}