<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.audio.</code><codeclass="sig-name descname">YtdlInfo</code><spanclass="sig-paren">(</span><emclass="sig-param">info: Dict[str, Any]</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlInfo"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">__init__</code><spanclass="sig-paren">(</span><emclass="sig-param">info: Dict[str, Any]</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlInfo.__init__"title="Permalink to this definition">¶</a></dt>
<dd><p>Create a YtdlInfo from the dict returned by the <codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">youtube_dl.YoutubeDL.extract_info()</span></code> function.</p>
<divclass="admonition warning">
<pclass="admonition-title">Warning</p>
<p>Does not download the info, for that use <aclass="reference internal"href="#royalnet.audio.YtdlInfo.retrieve_for_url"title="royalnet.audio.YtdlInfo.retrieve_for_url"><codeclass="xref py py-func docutils literal notranslate"><spanclass="pre">royalnet.audio.YtdlInfo.retrieve_for_url()</span></code></a>.</p>
<emclass="property">classmethod </em><codeclass="sig-name descname">retrieve_for_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdlinfo.YtdlInfo]<aclass="headerlink"href="#royalnet.audio.YtdlInfo.retrieve_for_url"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">to_discord_embed</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ discord.embeds.Embed<aclass="headerlink"href="#royalnet.audio.YtdlInfo.to_discord_embed"title="Permalink to this definition">¶</a></dt>
<dd><p>Return this info as a <aclass="reference external"href="https://discordpy.readthedocs.io/en/latest/api.html#discord.Embed"title="(in discord.py v1.3.0a)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">discord.Embed</span></code></a>.</p>
<codeclass="sig-name descname">delete</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlFile.delete"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">download_file</code><spanclass="sig-paren">(</span><emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlFile.download_file"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">download_from_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url: str</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdlfile.YtdlFile]<aclass="headerlink"href="#royalnet.audio.YtdlFile.download_from_url"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">has_info</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ bool<aclass="headerlink"href="#royalnet.audio.YtdlFile.has_info"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">is_downloaded</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ bool<aclass="headerlink"href="#royalnet.audio.YtdlFile.is_downloaded"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">open</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlFile.open"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">update_info</code><spanclass="sig-paren">(</span><emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlFile.update_info"title="Permalink to this definition">¶</a></dt>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.audio.</code><codeclass="sig-name descname">FileAudioSource</code><spanclass="sig-paren">(</span><emclass="sig-param">file</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.FileAudioSource"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">is_opus</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.FileAudioSource.is_opus"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">read</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.FileAudioSource.read"title="Permalink to this definition">¶</a></dt>
<p>If the audio is complete, then returning an empty <aclass="reference external"href="https://docs.python.org/3.7/library/stdtypes.html#bytes"title="(in Python v3.7)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">bytes</span></code></a>-like object to signal this is the way to do so.</p>
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.audio.</code><codeclass="sig-name descname">YtdlDiscord</code><spanclass="sig-paren">(</span><emclass="sig-param">ytdl_file: royalnet.audio.ytdlfile.YtdlFile</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlDiscord"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">convert_to_pcm</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlDiscord.convert_to_pcm"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">create_and_ready_from_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdldiscord.YtdlDiscord]<aclass="headerlink"href="#royalnet.audio.YtdlDiscord.create_and_ready_from_url"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">create_from_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdldiscord.YtdlDiscord]<aclass="headerlink"href="#royalnet.audio.YtdlDiscord.create_from_url"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">delete</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlDiscord.delete"title="Permalink to this definition">¶</a></dt>
<emclass="property">property </em><codeclass="sig-name descname">info</code><aclass="headerlink"href="#royalnet.audio.YtdlDiscord.info"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">pcm_available</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlDiscord.pcm_available"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">ready_up</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlDiscord.ready_up"title="Permalink to this definition">¶</a></dt>
<codeclass="sig-name descname">spawn_audiosource</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ royalnet.audio.fileaudiosource.FileAudioSource<aclass="headerlink"href="#royalnet.audio.YtdlDiscord.spawn_audiosource"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
</dd></dl>
<dlclass="class">
<dtid="royalnet.audio.YtdlMp3">
<emclass="property">class </em><codeclass="sig-prename descclassname">royalnet.audio.</code><codeclass="sig-name descname">YtdlMp3</code><spanclass="sig-paren">(</span><emclass="sig-param">ytdl_file: royalnet.audio.ytdlfile.YtdlFile</em><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlMp3"title="Permalink to this definition">¶</a></dt>
<dd><dlclass="method">
<dtid="royalnet.audio.YtdlMp3.convert_to_mp3">
<codeclass="sig-name descname">convert_to_mp3</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlMp3.convert_to_mp3"title="Permalink to this definition">¶</a></dt>
<emclass="property">classmethod </em><codeclass="sig-name descname">create_and_ready_from_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdlmp3.YtdlMp3]<aclass="headerlink"href="#royalnet.audio.YtdlMp3.create_and_ready_from_url"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="royalnet.audio.YtdlMp3.create_from_url">
<emclass="property">classmethod </em><codeclass="sig-name descname">create_from_url</code><spanclass="sig-paren">(</span><emclass="sig-param">url</em>, <emclass="sig-param">**ytdl_args</em><spanclass="sig-paren">)</span>→ List[royalnet.audio.ytdlmp3.YtdlMp3]<aclass="headerlink"href="#royalnet.audio.YtdlMp3.create_from_url"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="royalnet.audio.YtdlMp3.delete">
<codeclass="sig-name descname">delete</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span>→ None<aclass="headerlink"href="#royalnet.audio.YtdlMp3.delete"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="royalnet.audio.YtdlMp3.info">
<emclass="property">property </em><codeclass="sig-name descname">info</code><aclass="headerlink"href="#royalnet.audio.YtdlMp3.info"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="royalnet.audio.YtdlMp3.pcm_available">
<codeclass="sig-name descname">pcm_available</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlMp3.pcm_available"title="Permalink to this definition">¶</a></dt>
<dd></dd></dl>
<dlclass="method">
<dtid="royalnet.audio.YtdlMp3.ready_up">
<codeclass="sig-name descname">ready_up</code><spanclass="sig-paren">(</span><spanclass="sig-paren">)</span><aclass="headerlink"href="#royalnet.audio.YtdlMp3.ready_up"title="Permalink to this definition">¶</a></dt>
Built with <ahref="http://sphinx-doc.org/">Sphinx</a> using a <ahref="https://github.com/rtfd/sphinx_rtd_theme">theme</a> provided by <ahref="https://readthedocs.org">Read the Docs</a>.