{"action":"opened","issue":{"url":"https://api.github.com/repos/Rapptz/discord.py/issues/160","repository_url":"https://api.github.com/repos/Rapptz/discord.py","labels_url":"https://api.github.com/repos/Rapptz/discord.py/issues/160/labels{/name}","comments_url":"https://api.github.com/repos/Rapptz/discord.py/issues/160/comments","events_url":"https://api.github.com/repos/Rapptz/discord.py/issues/160/events","html_url":"https://github.com/Rapptz/discord.py/issues/160","id":147117314,"number":160,"title":"Can we get the entire info dict in the create_ytdl_player function?","user":{"login":"TheBlackParrot","id":8196960,"avatar_url":"https://avatars.githubusercontent.com/u/8196960?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBlackParrot","html_url":"https://github.com/TheBlackParrot","followers_url":"https://api.github.com/users/TheBlackParrot/followers","following_url":"https://api.github.com/users/TheBlackParrot/following{/other_user}","gists_url":"https://api.github.com/users/TheBlackParrot/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBlackParrot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBlackParrot/subscriptions","organizations_url":"https://api.github.com/users/TheBlackParrot/orgs","repos_url":"https://api.github.com/users/TheBlackParrot/repos","events_url":"https://api.github.com/users/TheBlackParrot/events{/privacy}","received_events_url":"https://api.github.com/users/TheBlackParrot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-09T10:31:22Z","updated_at":"2016-04-09T10:31:22Z","closed_at":null,"body":"YouTube likes to give back both 44.1kHz (non-opus) and 48kHz (opus) audio from the ytdl player, and I need the sample rate value to correctly determine a pitch effect (via the `asetrate` ffmpeg filter).\r\n\r\nI'm not sure how to fetch the value, and I'm at a dead end.\r\n\r\nThe only way I know of that could *potentially* fix the problem, is determining when Opus is the source codec (via the info dict around line 530 in `voice_client.py`), but nothing is ever set for it.\r\n```python\r\n        ydl = youtube_dl.YoutubeDL(opts)\r\n        func = functools.partial(ydl.extract_info, url, download=False)\r\n        info = yield from self.loop.run_in_executor(None, func)\r\n        if \"entries\" in info:\r\n            info = info['entries'][0]\r\n```\r\nI'm wanting access to all of `info` as of here, essentially\r\n\r\nI'm new to Python so excuse me if I'm using any wrong terminology :("}}