cc-4241: Partially resolved issue. Added tests.
This commit is contained in:
parent
b75f2ab9c7
commit
ef7c30b55e
4 changed files with 37 additions and 1 deletions
|
@ -105,6 +105,16 @@ class Metadata(Loggable):
|
|||
# little bit messy. Some of the handling is in m.m.pure while the rest is
|
||||
# here. Also interface is not very consistent
|
||||
|
||||
@staticmethod
|
||||
def fix_title(self, path):
|
||||
# If we have no title in path we will format it
|
||||
# TODO : this is very hacky so make sure to fix it
|
||||
m = mutagen.File(path, easy=True)
|
||||
if u'title' not in m:
|
||||
new_title = unicode( mmp.no_extension_basename(path) )
|
||||
m[u'title'] = new_title
|
||||
m.save()
|
||||
|
||||
@staticmethod
|
||||
def airtime_dict(d):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue