Remove tabs from track titles
Reference to https://git.rip/RemixDev/deemix-pyweb/-/issues/17
This commit is contained in:
parent
e9434ceeb6
commit
054a4f4fdf
|
@ -152,6 +152,10 @@ class Track:
|
||||||
if not self.copyright: self.copyright = albumAPI_gw['COPYRIGHT']
|
if not self.copyright: self.copyright = albumAPI_gw['COPYRIGHT']
|
||||||
self.parseTrack(trackAPI)
|
self.parseTrack(trackAPI)
|
||||||
|
|
||||||
|
# Remove unwanted charaters in track name
|
||||||
|
# Example: track/127793
|
||||||
|
self.title = ' '.join(self.title.split())
|
||||||
|
|
||||||
# Make sure there is at least one artist
|
# Make sure there is at least one artist
|
||||||
if not len(self.artist['Main']):
|
if not len(self.artist['Main']):
|
||||||
self.artist['Main'] = [self.mainArtist['name']]
|
self.artist['Main'] = [self.mainArtist['name']]
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
rm -rd build
|
rm -rd build
|
||||||
rm -rd dist
|
rm -rd dist
|
||||||
bump
|
python -m bump
|
||||||
bump deemix/__init__.py
|
python -m bump deemix/__init__.py
|
||||||
python3 setup.py sdist bdist_wheel
|
python3 setup.py sdist bdist_wheel
|
||||||
python3 -m twine upload dist/*
|
python3 -m twine upload dist/*
|
||||||
|
|
Loading…
Reference in New Issue