Skip to content

Commit

Permalink
Resolves #10
Browse files Browse the repository at this point in the history
  • Loading branch information
bbye98 committed Mar 9, 2024
1 parent c4b4e2b commit 3a61940
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 18 deletions.
Binary file modified docs/.doctrees/environment.pickle
Binary file not shown.
Binary file modified docs/.doctrees/notebooks/user_guide/editing_audio_metadata.doctree
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
"\n",
"* searching for the track on TIDAL via `minim.tidal.PrivateAPI.search()`,\n",
"* selecting the correct result by matching the ISRC,\n",
"* getting the track's composers and lyrics using `minim.tidal.PrivateAPI.get_track_compoers()` and `minim.tidal.PrivateAPI.get_track_lyrics()`, respectively, and\n",
"* getting the track's composers and lyrics using `minim.tidal.PrivateAPI.get_track_composers()` and `minim.tidal.PrivateAPI.get_track_lyrics()`, respectively, and\n",
"* populating the file handler's metadata with the JSON results using `minim.audio.FLACAudio.set_metadata_using_tidal()`."
]
},
Expand Down
32 changes: 20 additions & 12 deletions docs/notebooks/user_guide/editing_audio_metadata.html
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ <h2>Converting and tagging an audio file with no metadata<a class="headerlink" h
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>(&#39;spektrem_shine.flac&#39;, &lt;minim.audio.FLACAudio at 0x7f76a0672310&gt;)
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>(&#39;spektrem_shine.flac&#39;, &lt;minim.audio.FLACAudio at 0x7f9d871d2dd0&gt;)
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -372,10 +372,10 @@ <h2>Converting and tagging an audio file with no metadata<a class="headerlink" h
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>size= 1032kB time=00:00:30.09 bitrate= 280.9kbits/s speed=65.7x
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>size= 1032kB time=00:00:30.09 bitrate= 280.9kbits/s speed=63.3x
</pre></div>
</div>
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;minim.audio.MP3Audio at 0x7f76a0672310&gt;
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>&lt;minim.audio.MP3Audio at 0x7f9d871d2dd0&gt;
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -555,7 +555,7 @@ <h2>Converting and tagging an audio file with no metadata<a class="headerlink" h
<ul class="simple">
<li><p>searching for the track on TIDAL via <code class="docutils literal notranslate"><span class="pre">minim.tidal.PrivateAPI.search()</span></code>,</p></li>
<li><p>selecting the correct result by matching the ISRC,</p></li>
<li><p>getting the track’s composers and lyrics using <code class="docutils literal notranslate"><span class="pre">minim.tidal.PrivateAPI.get_track_compoers()</span></code> and <code class="docutils literal notranslate"><span class="pre">minim.tidal.PrivateAPI.get_track_lyrics()</span></code>, respectively, and</p></li>
<li><p>getting the track’s composers and lyrics using <code class="docutils literal notranslate"><span class="pre">minim.tidal.PrivateAPI.get_track_composers()</span></code> and <code class="docutils literal notranslate"><span class="pre">minim.tidal.PrivateAPI.get_track_lyrics()</span></code>, respectively, and</p></li>
<li><p>populating the file handler’s metadata with the JSON results using <code class="docutils literal notranslate"><span class="pre">minim.audio.FLACAudio.set_metadata_using_tidal()</span></code>.</p></li>
</ul>
<div class="cell tag_hide-output docutils container">
Expand All @@ -575,6 +575,9 @@ <h2>Converting and tagging an audio file with no metadata<a class="headerlink" h
<span class="expanded">Hide code cell output</span>
</summary>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>WARNING:root:Either lyrics are not available for this track or the current account does not have an active TIDAL subscription.
</pre></div>
</div>
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Album: Enter the Spektrem - Single
Album artist: Spektrem
Artist: Spektrem
Expand All @@ -585,7 +588,7 @@ <h2>Converting and tagging an audio file with no metadata<a class="headerlink" h
Date: 2013-03-06T12:00:00Z
Genre: Electronic
ISRC: GB2LD0901581
Lyrics: &lt;class &#39;str&#39;&gt;
Lyrics: None
Tempo: 128
Title: Shine
Disc number: 1
Expand Down Expand Up @@ -624,7 +627,7 @@ <h2>Tagging an audio file with existing metadata<a class="headerlink" href="#tag
</div>
</div>
<div class="cell_output docutils container">
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>(&#39;tobu_back_to_you.flac&#39;, &lt;minim.audio.FLACAudio at 0x7f77495c5750&gt;)
<div class="output text_plain highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>(&#39;tobu_back_to_you.flac&#39;, &lt;minim.audio.FLACAudio at 0x7f9cdddd6090&gt;)
</pre></div>
</div>
</div>
Expand Down Expand Up @@ -717,6 +720,11 @@ <h2>Tagging an audio file with existing metadata<a class="headerlink" href="#tag
</pre></div>
</div>
</div>
<div class="cell_output docutils container">
<div class="output stderr highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>WARNING:root:Either lyrics are not available for this track or the current account does not have an active TIDAL subscription.
</pre></div>
</div>
</div>
</div>
<p>Let’s take another look at the file’s metadata:</p>
<div class="cell tag_hide-output docutils container">
Expand All @@ -731,23 +739,23 @@ <h2>Tagging an audio file with existing metadata<a class="headerlink" href="#tag
<span class="expanded">Hide code cell output</span>
</summary>
<div class="cell_output docutils container">
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Album: Back to You - Single
Album artist: Tobu
<div class="output stream highlight-myst-ansi notranslate"><div class="highlight"><pre><span></span>Album: Ncs: The Best Of 2022
Album artist: Various Artists
Artist: Tobu
Comment: None
Composer: Tobu &amp; Toms Burkovskis
Copyright: ℗ 2022 NCS
Date: 2022-11-25T12:00:00Z
Genre: House
Genre: Electronic
ISRC: GB2LD2210368
Lyrics: &lt;class &#39;str&#39;&gt;
Lyrics: None
Tempo: 98
Title: Back to You
Compilation: False
Disc number: 1
Disc count: 1
Track number: 1
Track count: 1
Track number: 15
Track count: 16
Artwork: &lt;class &#39;bytes&#39;&gt;
Bit depth: 16
Bitrate: 1104053
Expand Down
2 changes: 1 addition & 1 deletion docs/searchindex.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@
"\n",
"* searching for the track on TIDAL via `minim.tidal.PrivateAPI.search()`,\n",
"* selecting the correct result by matching the ISRC,\n",
"* getting the track's composers and lyrics using `minim.tidal.PrivateAPI.get_track_compoers()` and `minim.tidal.PrivateAPI.get_track_lyrics()`, respectively, and\n",
"* getting the track's composers and lyrics using `minim.tidal.PrivateAPI.get_track_composers()` and `minim.tidal.PrivateAPI.get_track_lyrics()`, respectively, and\n",
"* populating the file handler's metadata with the JSON results using `minim.audio.FLACAudio.set_metadata_using_tidal()`."
]
},
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,8 @@ classifiers = [
"Programming Language :: Python :: 3"
]
dependencies = [
"levenshtein",
"cryptography",
"mutagen",
"numpy",
"pycryptodome",
"requests"
]
description = """
Expand Down

0 comments on commit 3a61940

Please sign in to comment.