History of Nextcloud - Music
| Version 1 | Current version | |
|---|---|---|
Trying to find out just how I need to lay out the music in the folder tree so that the Music app can scan it, and in the process found out how to manually scan things using an occ function. Only problem at the moment is it only bothered with the first Beatles album and none of the other artist folders in the tree.
occ functions help<span style="font-family:monospace"><span style="background-color:#ffffff; color:#000000">lester@srv10:~&gt; sudo -u nginx php /srv/website/nextcloud/occ music:scan --help</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#b26818">Description:</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;scan and index any unindexed or dirty audio files</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#b26818">Usage:</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;music:scan [options] [--] [&lt;user_id&gt;...]</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#b26818">Arguments:</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">user_id</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;specify one or more targeted users</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#b26818">Options:</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--all</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;target all known users</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--group=GROUP</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;specify a targeted group to include all users of that group</span><span style="background-color:#ffffff; color:#b26818"> (multiple values allowed)</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--debug</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;will run the scan in debug mode, showing memory and time consumption</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--clean-obsolete</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;also remove any obsolete file references from the library</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--rescan</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;rescan also any previously scanned tracks</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--skip-dirty</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do not rescan the files marked &quot;dirty&quot; or having timestamp after the latest scan time</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--skip-art</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;do not search for album and artist cover art images</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--folder[=FOLDER]</span><span style="background-color:#ffffff; color:#000000"> &nbsp;scan only files within this folder (path is relative to the user home folder)</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">-h, --help</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display help for the given command. When no command is given display help for the </span><span style="background-color:#ffffff; color:#18b218">list</span><span style="background-color:#ffffff; color:#000000"> command</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">-q, --quiet</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Do not output any message</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">-V, --version</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Display this application version</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--ansi|--no-ansi</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;Force (or disable --no-ansi) ANSI output</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">-n, --no-interaction</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;Do not ask any interactive question</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">&nbsp;&nbsp;&nbsp;&nbsp;--no-warnings</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Skip global warnings, show command output only</span><span style="background-color:#ffffff; color:#000000"> </span> <span style="background-color:#ffffff; color:#000000">&nbsp;</span><span style="background-color:#ffffff; color:#18b218">-v|vv|vvv, --verbose</span><span style="background-color:#ffffff; color:#000000"> &nbsp;&nbsp;Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug</span></span> | github code source Outstanding Issue Posted enquiry about format of directory tree. Music Archive metadata management starting with Picard as the base to access the MusicBrianz database. Trying to find out just how I need to lay out the music in the folder tree so that the Music app can scan it, and in the process found out how to manually scan things using an occ function. Only problem at the moment is it only bothered with the first Beatles album and none of the other artist folders in the tree. occ music: functions help
music:scan scan and index any unindexed or dirty audio files
music:reset-database drop metadata indexed by the music app (artists, albums, tracks, playlists)
music:reset-cache drop data cached by the music app for performance reasons
music:cleanup clean up orphaned DB entries (this happens also periodically on the background)
music:register-mime-types map following file extensions to proper MIME types: [&amp;quot;aac&amp;quot;,&amp;quot;aif&amp;quot;,&amp;quot;aifc&amp;quot;,&amp;quot;aiff&amp;quot;,&amp;quot;au&amp;quot;,&amp;quot;caf&amp;quot;,&amp;quot;wpl&amp;quot;]
music:podcast-add add a podcast channel from an RSS feed
music:podcast-export export user podcast channels to an OPML file
music:podcast-import import user podcast channels from an OPML file
music:podcast-reset remove all podcast channels of one or more users
music:podcast-update update podcast channels of one or more users from their sources
music:playlist-export export user playlist(s) to file(s)
music:playlist-import import user playlist(s) from file(s).
occ music:scan functions help
Description:
scan and index any unindexed or dirty audio files
Usage:
music:scan [options] [--] [...]
Arguments:
user_id specify one or more targeted users
Options:
--all target all known users
--group=GROUP specify a targeted group to include all users of that group (multiple values allowed)
--debug will run the scan in debug mode, showing memory and time consumption
--clean-obsolete also remove any obsolete file references from the library
--rescan rescan also any previously scanned tracks
--skip-dirty do not rescan the files marked &amp;quot;dirty&amp;quot; or having timestamp after the latest scan time
--skip-art do not search for album and artist cover art images
--folder[=FOLDER] scan only files within this folder (path is relative to the user home folder)
-h, --help Display help for the given command. When no command is given display help for the list command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--no-warnings Skip global warnings, show command output only
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
|
