After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773476 - Spaces are removed from Title and Artist when copying tag to file name %a - %t (mp3 and possibly others)
Spaces are removed from Title and Artist when copying tag to file name %a - %...
Status: RESOLVED FIXED
Product: easytag
Classification: Other
Component: general
2.4.x
Other Linux
: Normal normal
: 2.4
Assigned To: EasyTAG maintainer(s)
EasyTAG maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-10-25 13:40 UTC by Don
Modified: 2016-11-08 13:57 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Don 2016-10-25 13:40:22 UTC
Runtime Environment: Mint LINUX, Sarah 18, XFCE4, Kernel 4.4.27-040427-generic
EasyTag Version 2.4.2 from canned distro

When using the scanner to create a new file name %a - %t, spaces are always removed in both the Artist name and Title name. I validated this against an older EasyTag version which did not do this. Please advise if there is other information I can provide to assist with resolving this issue.

Don
Comment 1 David King 2016-11-06 14:49:56 UTC
I do not observe the same behaviour, and I followed the following steps:

1. start EasyTAG and have at least one supported file selected
2. open the scanner and select "Rename File"
3. select an appropriate mask, such as "%a - %t"
4. click "Scan Files" and check the filename

For me, the spaces in the filename are never removed. I can remove the spaces if using the "Process Fields" scanner with the "Remove spaces" option selected, but that is not the same as filling the filename based on the tags.

Please mention the exact steps that you are using, so that it is easy to reproduce the problem, and check that you do not have any "Spaces Conversions" option selected when processing existing fields.
Comment 2 Don 2016-11-06 23:07:46 UTC
In response to the above, here are the steps I took to create/recreate the problem.

1 - Opened EasyTAG (v 2.4.2)
2 - Opened the Tag and Filename Scanner. Verified the following in "Process Fields" (Filename checked (only), Do not change word separators, Do not change capitalization, character conversion - Do not convert).
3 - Selected the "Rename File" tab.
4 - Verified the Title in the ID3 Tag had a space separator in it.
5 - Verified the mask "%a - %t".
6 - Clicked on "Scan Files".

I ran two tests with 1 file each time and was able to recreate the problem both times.

I can provide screen shots if you need.
Comment 3 David King 2016-11-07 00:50:42 UTC
Unfortunately, I am not able to reproduce the problem. Is it restricted to one file, or does it affect all files (maybe the behaviour differs with different tag types)? Please upload a sample file that triggers the problem and provide a link.
Comment 4 Don 2016-11-07 19:57:24 UTC
Here is an md5 of the executable -
[don@bambi ~ ] $ md5sum /usr/bin/easytag
95fc8ef9118a29fd08c55fa23f0b428d  /usr/bin/easytag
[don@bambi ~ ] $ 
I am hoping you can pull this (or have) from the PPA, This will tell me/you if you are using the same runtime module. If yes, then there is something somewhere in my environment. Oh the witch hunt begins. It is not limited to one mp3 file. I will try another format other than Mp3 and advise you accordingly. I even tailed my syslog -- not that I thought I would find anything. Never hurts though. Very appreciative of your attention. I will keep you informed of what I find .. good, bad or indifferent. Regards
Comment 5 David King 2016-11-07 22:39:17 UTC
Thanks! If you could paste the output of "gsettings list-recursively org.gnome.EasyTAG" that would be useful, as it will dump all of your EasyTAG settings, so that I can hopefully replicate the problem.
Comment 6 Don 2016-11-08 01:45:35 UTC
Here we go. Please let me know how else I can help.
Regards

[don@bambi ~ ] $ gsettings list-recursively org.gnome.EasyTAG
org.gnome.EasyTAG cddb-automatic-search-port2 uint32 80
org.gnome.EasyTAG rename-encoding 'try-alternative'
org.gnome.EasyTAG search-filename true
org.gnome.EasyTAG id3v2-crc32 true
org.gnome.EasyTAG process-remove-duplicate-spaces false
org.gnome.EasyTAG tag-date-autocomplete true
org.gnome.EasyTAG id3v1v2-charset 'utf-8'
org.gnome.EasyTAG confirm-when-unsaved-files true
org.gnome.EasyTAG scan-mask-editor-show false
org.gnome.EasyTAG fill-overwrite-tag-fields true
org.gnome.EasyTAG ogg-split-title false
org.gnome.EasyTAG tag-preserve-focus true
org.gnome.EasyTAG sort-case-sensitive true
org.gnome.EasyTAG process-lowercase-all false
org.gnome.EasyTAG process-convert-characters-to ' '
org.gnome.EasyTAG id3-strip-empty false
org.gnome.EasyTAG search-tag true
org.gnome.EasyTAG rename-convert-spaces 'remove'
org.gnome.EasyTAG rename-file-default-mask '%a - %t'
org.gnome.EasyTAG cddb-automatic-search-path '/~cddb/cddb.cgi'
org.gnome.EasyTAG browse-subdir false
org.gnome.EasyTAG file-preserve-modification-time true
org.gnome.EasyTAG cddb-manual-search-port uint32 80
org.gnome.EasyTAG sort-mode 'ascending-filename'
org.gnome.EasyTAG process-detect-roman-numerals false
org.gnome.EasyTAG playlist-filename-mask 'playlist_%a_-_%b'
org.gnome.EasyTAG cddb-search-fields ['artist', 'title', 'track', 'other']
org.gnome.EasyTAG cddb-set-fields ['title', 'artist', 'album', 'year', 'track', 'track-total', 'genre', 'filename']
org.gnome.EasyTAG id3v2-enable-unicode true
org.gnome.EasyTAG confirm-write-playlist false
org.gnome.EasyTAG confirm-write-tags false
org.gnome.EasyTAG cddb-automatic-search-hostname2 'freedb.musicbrainz.org'
org.gnome.EasyTAG rename-directory-with-mask true
org.gnome.EasyTAG tag-number-length uint32 2
org.gnome.EasyTAG id3-override-read-encoding false
org.gnome.EasyTAG process-uppercase-first-letter false
org.gnome.EasyTAG fill-convert-spaces 'spaces'
org.gnome.EasyTAG rename-directory-default-mask '%b'
org.gnome.EasyTAG file-update-parent-modification-time true
org.gnome.EasyTAG cddb-follow-file true
org.gnome.EasyTAG process-insert-capital-spaces false
org.gnome.EasyTAG process-convert-characters-from ' '
org.gnome.EasyTAG rename-extension-mode 'no-change'
org.gnome.EasyTAG confirm-rename-file false
org.gnome.EasyTAG scan-legend-show true
org.gnome.EasyTAG cddb-automatic-search-hostname 'freedb.freedb.org'
org.gnome.EasyTAG cddb-proxy-enabled false
org.gnome.EasyTAG id3v1-encoding-option 'none'
org.gnome.EasyTAG default-path b'/home/don/Music'
org.gnome.EasyTAG id3v2-version-4 true
org.gnome.EasyTAG tag-number-padded true
org.gnome.EasyTAG tag-disc-padded true
org.gnome.EasyTAG cddb-automatic-search-path2 '/~cddb/cddb.cgi'
org.gnome.EasyTAG cddb-dlm-enabled false
org.gnome.EasyTAG process-remove-spaces false
org.gnome.EasyTAG cddb-proxy-hostname ''
org.gnome.EasyTAG ogg-split-comment false
org.gnome.EasyTAG ogg-split-original-artist false
org.gnome.EasyTAG fill-default-comment ''
org.gnome.EasyTAG id3v2-enabled true
org.gnome.EasyTAG cddb-manual-search-path '/~cddb/cddb.cgi'
org.gnome.EasyTAG id3v2-convert-old true
org.gnome.EasyTAG id3v2-compression false
org.gnome.EasyTAG playlist-parent-directory false
org.gnome.EasyTAG log-show true
org.gnome.EasyTAG playlist-relative false
org.gnome.EasyTAG playlist-use-mask false
org.gnome.EasyTAG cddb-proxy-password ''
org.gnome.EasyTAG playlist-dos-separator false
org.gnome.EasyTAG process-convert-characters false
org.gnome.EasyTAG process-convert 'no-change'
org.gnome.EasyTAG id3v1-enabled false
org.gnome.EasyTAG cddb-search-categories ['blues', 'classical', 'country', 'folk', 'jazz', 'misc', 'newage', 'reggae', 'rock', 'soundtrack']
org.gnome.EasyTAG confirm-delete-file true
org.gnome.EasyTAG fill-crc32-comment false
org.gnome.EasyTAG scan-startup false
org.gnome.EasyTAG scan-mode 'process-fields'
org.gnome.EasyTAG ogg-split-artist false
org.gnome.EasyTAG browse-expand-children true
org.gnome.EasyTAG file-show-header true
org.gnome.EasyTAG id3v2-unicode-charset 'UTF-8'
org.gnome.EasyTAG load-on-startup false
org.gnome.EasyTAG playlist-content 'extended'
org.gnome.EasyTAG cddb-automatic-search-port uint32 80
org.gnome.EasyTAG ogg-split-album false
org.gnome.EasyTAG cddb-manual-search-hostname 'www.gnudb.org'
org.gnome.EasyTAG process-fields ['filename']
org.gnome.EasyTAG cddb-run-scanner false
org.gnome.EasyTAG rename-replace-illegal-chars false
org.gnome.EasyTAG ogg-split-genre false
org.gnome.EasyTAG tag-disc-length uint32 2
org.gnome.EasyTAG playlist-default-mask '%n/%l - %a - %b - %t'
org.gnome.EasyTAG process-uppercase-all false
org.gnome.EasyTAG tag-image-type-automatic true
org.gnome.EasyTAG id3v1-charset 'iso-8859-1'
org.gnome.EasyTAG id3v2-no-unicode-charset 'iso-8859-1'
org.gnome.EasyTAG scan-tag-default-mask '%a - %t'
org.gnome.EasyTAG id3v2-text-only-genre false
org.gnome.EasyTAG id3v2-encoding-option 'none'
org.gnome.EasyTAG load-filenames-run-scanner false
org.gnome.EasyTAG cddb-proxy-port uint32 8080
org.gnome.EasyTAG process-uppercase-first-letters false
org.gnome.EasyTAG ogg-split-composer false
org.gnome.EasyTAG cddb-proxy-username ''
org.gnome.EasyTAG preferences-page uint32 4
org.gnome.EasyTAG process-uppercase-prepositions false
org.gnome.EasyTAG browse-show-hidden false
org.gnome.EasyTAG file-changed-bold true
org.gnome.EasyTAG fill-set-default-comment false
org.gnome.EasyTAG playlist-selected-only false
org.gnome.EasyTAG search-case-sensitive false
[don@bambi ~ ] $
Comment 7 David King 2016-11-08 08:45:17 UTC
That explains the problem. The "rename-convert-spaces" setting should be something other than "remove", as that setting removes spaces when renaming files (including when generating new files by filling a filename from a tag).

I checked the preferences dialogue, and the label for the "remove" option was incorrectly set as "No conversion", when it should have read "Remove spaces". I have fixed this in master with commit 8dd7eb0dcc911b7c150c8939ff036cb9ff3fddde. This means that there is no rename option to leave the spaces in the filename unchanged, which seems a bit strange to me, but has been the case since before I started maintaining EasyTAG. I think it makes sense to add a "No conversion" option for spaces during renaming, but I will do that separately.
Comment 8 Don 2016-11-08 13:57:36 UTC
Thank you for your quick response and attention. Regards