|
@@ -8,6 +8,7 @@ import mutagen.mp4
|
|
|
import os
|
|
|
import re
|
|
|
import symuid.library.itunes
|
|
|
+import sys
|
|
|
|
|
|
|
|
|
def generate_play_count_tag_label(player, library_id, reg_dt):
|
|
@@ -59,7 +60,7 @@ def symuid_import_itunes(xml_library_path, path_regex_sub):
|
|
|
for pattern, repl in path_regex_sub:
|
|
|
track_path = re.sub(pattern, repl, track_path)
|
|
|
if not os.path.exists(track_path):
|
|
|
- raise ValueError(track_path)
|
|
|
+ sys.stderr.write('{!r}: not found\n'.format(track_path))
|
|
|
else:
|
|
|
# TODO dt=dt.datetime.now()
|
|
|
set_play_count_tag(
|
|
@@ -93,5 +94,4 @@ def main(argv):
|
|
|
return 0
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
- import sys
|
|
|
sys.exit(main(sys.argv))
|