<!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>music.tasks package — Music Tools documentation</title> <link rel="stylesheet" href="../_static/pygments.css" type="text/css" /> <link rel="stylesheet" href="../_static/alabaster.css" type="text/css" /> <script id="documentation_options" data-url_root="../" src="../_static/documentation_options.js"></script> <script src="../_static/jquery.js"></script> <script src="../_static/underscore.js"></script> <script src="../_static/doctools.js"></script> <link rel="index" title="Index" href="../genindex.html" /> <link rel="search" title="Search" href="../search.html" /> <link rel="prev" title="music.model package" href="music.model.html" /> <link rel="stylesheet" href="../_static/custom.css" type="text/css" /> <meta name="viewport" content="width=device-width, initial-scale=0.9, maximum-scale=0.9" /> </head><body> <div class="document"> <div class="documentwrapper"> <div class="bodywrapper"> <div class="body" role="main"> <div class="section" id="music-tasks-package"> <h1>music.tasks package<a class="headerlink" href="#music-tasks-package" title="Permalink to this headline">¶</a></h1> <div class="section" id="submodules"> <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this headline">¶</a></h2> </div> <div class="section" id="module-music.tasks.create_playlist"> <span id="music-tasks-create-playlist-module"></span><h2>music.tasks.create_playlist module<a class="headerlink" href="#module-music.tasks.create_playlist" title="Permalink to this headline">¶</a></h2> <dl class="py function"> <dt id="music.tasks.create_playlist.create_playlist"> <code class="sig-prename descclassname"><span class="pre">music.tasks.create_playlist.</span></code><code class="sig-name descname"><span class="pre">create_playlist</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">user</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.create_playlist.create_playlist" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-music.tasks.refresh_lastfm_stats"> <span id="music-tasks-refresh-lastfm-stats-module"></span><h2>music.tasks.refresh_lastfm_stats module<a class="headerlink" href="#module-music.tasks.refresh_lastfm_stats" title="Permalink to this headline">¶</a></h2> <dl class="py function"> <dt id="music.tasks.refresh_lastfm_stats.refresh_lastfm_album_stats"> <code class="sig-prename descclassname"><span class="pre">music.tasks.refresh_lastfm_stats.</span></code><code class="sig-name descname"><span class="pre">refresh_lastfm_album_stats</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">playlist_name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.refresh_lastfm_stats.refresh_lastfm_album_stats" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="py function"> <dt id="music.tasks.refresh_lastfm_stats.refresh_lastfm_artist_stats"> <code class="sig-prename descclassname"><span class="pre">music.tasks.refresh_lastfm_stats.</span></code><code class="sig-name descname"><span class="pre">refresh_lastfm_artist_stats</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">playlist_name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.refresh_lastfm_stats.refresh_lastfm_artist_stats" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> <dl class="py function"> <dt id="music.tasks.refresh_lastfm_stats.refresh_lastfm_track_stats"> <code class="sig-prename descclassname"><span class="pre">music.tasks.refresh_lastfm_stats.</span></code><code class="sig-name descname"><span class="pre">refresh_lastfm_track_stats</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">username</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">playlist_name</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.refresh_lastfm_stats.refresh_lastfm_track_stats" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-music.tasks.run_user_playlist"> <span id="music-tasks-run-user-playlist-module"></span><h2>music.tasks.run_user_playlist module<a class="headerlink" href="#module-music.tasks.run_user_playlist" title="Permalink to this headline">¶</a></h2> <dl class="py function"> <dt id="music.tasks.run_user_playlist.run_user_playlist"> <code class="sig-prename descclassname"><span class="pre">music.tasks.run_user_playlist.</span></code><code class="sig-name descname"><span class="pre">run_user_playlist</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">user</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">playlist</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">spotnet</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fmnet</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.run_user_playlist.run_user_playlist" title="Permalink to this definition">¶</a></dt> <dd><p>Generate and upadate a user’s playlist</p> </dd></dl> </div> <div class="section" id="module-music.tasks.update_tag"> <span id="music-tasks-update-tag-module"></span><h2>music.tasks.update_tag module<a class="headerlink" href="#module-music.tasks.update_tag" title="Permalink to this headline">¶</a></h2> <dl class="py function"> <dt id="music.tasks.update_tag.update_tag"> <code class="sig-prename descclassname"><span class="pre">music.tasks.update_tag.</span></code><code class="sig-name descname"><span class="pre">update_tag</span></code><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">user</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">tag</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">spotnet</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em>, <em class="sig-param"><span class="n"><span class="pre">fmnet</span></span><span class="o"><span class="pre">=</span></span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span><a class="headerlink" href="#music.tasks.update_tag.update_tag" title="Permalink to this definition">¶</a></dt> <dd></dd></dl> </div> <div class="section" id="module-music.tasks"> <span id="module-contents"></span><h2>Module contents<a class="headerlink" href="#module-music.tasks" title="Permalink to this headline">¶</a></h2> <p>Long running operations of the app including playlist generation and tag update functions</p> </div> </div> </div> </div> </div> <div class="sphinxsidebar" role="navigation" aria-label="main navigation"> <div class="sphinxsidebarwrapper"> <h1 class="logo"><a href="../index.html">Music Tools</a></h1> <h3>Navigation</h3> <p class="caption"><span class="caption-text">Contents:</span></p> <ul class="current"> <li class="toctree-l1 current"><a class="reference internal" href="modules.html">Modules</a></li> <li class="toctree-l1 current"><a class="reference internal" href="music.html">music package</a></li> <li class="toctree-l1"><a class="reference internal" href="music.api.html">music.api package</a></li> <li class="toctree-l1"><a class="reference internal" href="music.auth.html">music.auth package</a></li> <li class="toctree-l1"><a class="reference internal" href="music.cloud.html">music.cloud package</a></li> <li class="toctree-l1"><a class="reference internal" href="music.db.html">music.db package</a></li> <li class="toctree-l1"><a class="reference internal" href="music.model.html">music.model package</a></li> <li class="toctree-l1 current"><a class="current reference internal" href="#">music.tasks package</a></li> </ul> <div class="relations"> <h3>Related Topics</h3> <ul> <li><a href="../index.html">Documentation overview</a><ul> <li><a href="modules.html">music</a><ul> <li><a href="music.html">music package</a><ul> <li>Previous: <a href="music.model.html" title="previous chapter">music.model package</a></li> </ul></li> </ul></li> </ul></li> </ul> </div> <div id="searchbox" style="display: none" role="search"> <h3 id="searchlabel">Quick search</h3> <div class="searchformwrapper"> <form class="search" action="../search.html" method="get"> <input type="text" name="q" aria-labelledby="searchlabel" /> <input type="submit" value="Go" /> </form> </div> </div> <script>$('#searchbox').show(0);</script> </div> </div> <div class="clearer"></div> </div> <div class="footer"> ©2021, Sarsoo. | Powered by <a href="http://sphinx-doc.org/">Sphinx 3.5.3</a> & <a href="https://github.com/bitprophet/alabaster">Alabaster 0.7.12</a> | <a href="../_sources/src/music.tasks.rst.txt" rel="nofollow">Page source</a> </div> </body> </html>