AttributeError: 'SubstitutionPattern' object has no attribute 'split'

Bug #1173233 reported by Terence Eden
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
pytagsfs
New
Undecided
Unassigned

Bug Description

Trying to autotag a flac file

    pytags --format '%{TRACKNUMBER} %t.flac' "11 Besame Mucho.flac"

(and variations including %n %N etc)

Results in the following error

****
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sclapp/main.py", line 201, in main
    status = realmain(argv)
  File "/usr/lib/python2.7/dist-packages/pytagsfs/pytags.py", line 192, in main
    return update_tags(values.format, values.operations, args)
  File "/usr/lib/python2.7/dist-packages/pytagsfs/pytags.py", line 96, in update_tags
    apply_substitution_pattern(tags, substitution_pattern)
  File "/usr/lib/python2.7/dist-packages/pytagsfs/pytags.py", line 54, in apply_substitution_pattern
    pattern_tags = substitution_pattern.split(filename)
AttributeError: 'SubstitutionPattern' object has no attribute 'split'

Something bad happened, and is most likely a bug.
Please file a bug report to the author.
Include the error message(s) printed here.
exiting with status 255
****

All other functions of pytags seem to work - just --format which is broken.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.