forked from pool/picard
- Drop bonusdisc.py, URL disappeared
OBS-URL: https://build.opensuse.org/package/show/multimedia:apps/picard?expand=0&rev=48
This commit is contained in:
parent
b6d44fd48e
commit
b5deacf274
30
bonusdisc.py
30
bonusdisc.py
@ -1,30 +0,0 @@
|
|||||||
# -*- coding: utf-8 -*-
|
|
||||||
|
|
||||||
PLUGIN_NAME = 'Bonus Disc'
|
|
||||||
PLUGIN_AUTHOR = 'Jan van Thiel'
|
|
||||||
PLUGIN_DESCRIPTION = '''Based on a script by Lukas Lalinsky.<br/>
|
|
||||||
<br/>
|
|
||||||
Moves bonus disc and bonus disc titles from album titles to separate tags. For example:<br/>
|
|
||||||
<em>"Sleeping With Ghosts (bonus disc: Covers)"</em>
|
|
||||||
<ul>
|
|
||||||
<li>album = <em>"Sleeping With Ghosts"</em></li>
|
|
||||||
<li>bonusdisc = <em>"bonus"</em></li>
|
|
||||||
<li>bonusdisctitle = <em>"Covers"</em></li>
|
|
||||||
</ul>'''
|
|
||||||
PLUGIN_VERSION = "0.1"
|
|
||||||
PLUGIN_API_VERSIONS = ["0.9.0", "0.10", "0.15"]
|
|
||||||
|
|
||||||
from picard.metadata import register_album_metadata_processor
|
|
||||||
import re
|
|
||||||
|
|
||||||
_bonusdisc_re = re.compile(r"\s+\(bonus disc(?::\s+([^)]+))?\)")
|
|
||||||
|
|
||||||
def remove_bonusdiscs(tagger, metadata, release):
|
|
||||||
matches = _bonusdisc_re.search(metadata["album"])
|
|
||||||
if matches:
|
|
||||||
metadata["bonusdisc"] = "bonus"
|
|
||||||
if matches.group(1):
|
|
||||||
metadata["bonusdisctitle"] = matches.group(1)
|
|
||||||
metadata["album"] = _bonusdisc_re.sub('', metadata["album"])
|
|
||||||
|
|
||||||
register_album_metadata_processor(remove_bonusdiscs)
|
|
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 17 10:16:22 UTC 2017 - olaf@aepfle.de
|
||||||
|
|
||||||
|
- Drop bonusdisc.py, URL disappeared
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Feb 14 12:34:42 UTC 2017 - alarrosa@suse.com
|
Tue Feb 14 12:34:42 UTC 2017 - alarrosa@suse.com
|
||||||
|
|
||||||
|
@ -35,7 +35,6 @@ Patch7: 0007-Add-i18n-support-to-coverart-labels.patch
|
|||||||
Patch8: 0008-Add-view-coverart-changes-button.patch
|
Patch8: 0008-Add-view-coverart-changes-button.patch
|
||||||
Patch9: 0009-Add-spacer-item-to-push-coverartbox-items-to-top.patch
|
Patch9: 0009-Add-spacer-item-to-push-coverartbox-items-to-top.patch
|
||||||
# http://wiki.musicbrainz.org/Picard_Plugins
|
# http://wiki.musicbrainz.org/Picard_Plugins
|
||||||
Source2: http://dispuutivv.nl/~jan/bonusdisc.py
|
|
||||||
Source8: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAmazon3.py
|
Source8: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAmazon3.py
|
||||||
Source9: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAMG.py
|
Source9: https://github.com/brianfreud/Picard-plugins/blob/master/SearchAMG.py
|
||||||
Source10: https://github.com/brianfreud/Picard-plugins/blob/master/SearchCastAlbums3.py
|
Source10: https://github.com/brianfreud/Picard-plugins/blob/master/SearchCastAlbums3.py
|
||||||
@ -89,7 +88,6 @@ python setup.py install --skip-build --prefix=%{_prefix} --root=%{buildroot}
|
|||||||
|
|
||||||
# install plugins
|
# install plugins
|
||||||
PLUGINDIR=%{buildroot}%{py_sitedir}/picard/plugins/
|
PLUGINDIR=%{buildroot}%{py_sitedir}/picard/plugins/
|
||||||
install -m 0644 %{SOURCE2} ${PLUGINDIR}
|
|
||||||
install -m 0644 %{SOURCE8} ${PLUGINDIR}
|
install -m 0644 %{SOURCE8} ${PLUGINDIR}
|
||||||
install -m 0644 %{SOURCE9} ${PLUGINDIR}
|
install -m 0644 %{SOURCE9} ${PLUGINDIR}
|
||||||
install -m 0644 %{SOURCE10} ${PLUGINDIR}
|
install -m 0644 %{SOURCE10} ${PLUGINDIR}
|
||||||
|
Loading…
Reference in New Issue
Block a user