AIMP Forum
AIMP for PC => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: xeo on October 17, 2024, 16:24:16
-
Copy file info to clipboard not working in Tag editor. Nothing is copied. However it works with hot key on playlist.
(https://i.imgur.com/4MieaPr.png)
And btw, I don't know why, but tag editor have it's own hot keys for the same functions as the main program (like Copy file info to clipboard). The main program can have local hot keys changed by the user and it's not changed in the Tag editor (I have Ctrl+D for this function).
AIMP 5.30/2563, Windows 11.
-
Copy file info to clipboard not working in Tag editor. Nothing is copied. However it works with hot key on playlist.
In my case, all works fine.
Default template is [%FileFormat] [%Duration] %Artist - %Title </%SampleRate/%Bitrate/%FileSize/>
-
Ah ok, default works, but mine was %IF(%Artist,%Artist%IF(%Album, - %Title,%IFEqual(%Title,%FileName,, - %Title)),%IF(%Album,%FileName,%Title))
I don't know why, but it doesn't work any more.
I think it still works here:
(https://i.imgur.com/6rLnfyF.png)
-
I don't know why, but it doesn't work any more.
How you invoke the function? Clicking the button or via hotkey?
-
Sorry, I don't know why, but now it works (both clicking and hotkey). I didn't change the template. When it didn't work I used clicking. If I'll notice it's not working again, I'll let you know.
-
Maybe, clipboard was busy or locked by another app. In v5.40, AIMP will display an error in this case
-
Ok, so what about hot keys. Shouldn't they be the same as set in main app for the same functions?
-
Shouldn't they be the same as set in main app for the same functions?
No.
-
Not working for me again, not with button or hotkey. Clipboard was busy or locked by another app because I can select the name of the file and press Ctrl+C and it copies.
-
Ah ok, default works, but mine was %IF(%Artist,%Artist%IF(%Album, - %Title,%IFEqual(%Title,%FileName,, - %Title)),%IF(%Album,%FileName,%Title))
I don't know why, but it doesn't work any more.
I think it still works here:
(https://i.imgur.com/6rLnfyF.png)
I think copying works but the value is empty in some cases.
If there is no artist and album in the tags, the title should be copied:
%IF(%Artist,%Artist%IF(%Album, - %Title,%IFEqual(%Title,%FileName,, - %Title)),%IF(%Album,%FileName,%Title))
The empty title is automatically replaced by the filename when I press the hotkey in the player, but in the Tag editor the title is copied as is.
Tested on [2635].
-
If there is no Artist and Title and Album in the tags, this template
%IF(%Artist,%Artist%IF(%Album, - %Title,%IFEqual(%Title,%FileName,, - %Title)),%IF(%Album,%FileName,%Title)) displays File name.
I have it set both in the Preferences/Player/Copy into clipboard template and in the Preferences/Playlist/Appearance/Format Settings. In playlists it shows correctly file name. When copied, it's not working, but it should since the program displays the file name correctly.
-
In my case, all works fine.
Мы тут уже выяснили, что проблема в отсутствии автоподстановки имени файла в шаблон %Title в некоторых случаях.
Перепроверил на [2646] файл с пустым заголовком:
- "Копировать информацию о файле в буфер обмена" горячей клавишей из плейлиста - имя файла
- "Копировать информацию о файле в буфер обмена" (любым способом) в редакторе тегов - пустая строка
- В Информационной ленте отображается имя файла
- В плагине OpenWith 1.6.6 остаётся пустая строка
-
в отсутствии автоподстановки имени файла в шаблон %Title
В общем случае на это затачиваться и не надо.
-
В общем случае на это затачиваться и не надо.
Ну явно не должно быть так, что один и тот же шаблон выдаёт разные строки в зависимости от места вызова.
Да и разное поведение макроса в разных шаблонах тоже неудобно.
Честно говоря, лучше бы этой автоподстановки вообще не было. Нужно - впиши в шаблон %IF(%Title,%Title,%FileName), нет - пусть заголовок будет строго из тегов. Чётко определённое поведение. Заодно можно было бы по-особому обрабатывать файлы с неполными тегами (видел такие попытки на форуме). Вот только просто %Title наверняка используется в скинах, поэтому отказаться от автоподстановки уже не получится.
-
выдаёт разные строки в зависимости от места вызова
На разных данных он выдает разные строки. Редактор работает исключительно с тегами
-
Редактор работает исключительно с тегами
Ну нет, переименование файла тоже доступно.
-
Ну нет, переименование файла тоже доступно.
я про данные
-
я про данные
Имя файла к данным не относится? Но %FileName в редакторе работает. Шаблон %IF(%Title,%Title,%FileName) выдаст везде одну и ту же строку, %Title - разные. Что мешает привести всё к единому поведению, чтобы больше таких вопросов не возникало?
-
Что мешает привести всё к единому поведению, чтобы больше таких вопросов не возникало?
Тут правильным будет выпилить использование имени файла заместо заголовка в плейлисте.
Вообще говоря, эта подстановка идет при чтении метаданных плейлистом, а не при вычислении макроса. Поэтому с т.ч. зрения движка макросов, у записи плейлиста просто всегда есть заголовок.
-
So how should I modify this template
%IF(%Artist,%Artist%IF(%Album, - %Title,%IFEqual(%Title,%FileName,, - %Title)),%IF(%Album,%FileName,%Title))
so the file name would be copied in the tag editor when there is no Artist, Title and Album in the tags?
-
So how should I modify this template
Try this:
%IF(%Artist,%Artist%IF(%Album, - %IF(%Title,%Title,%FileName),%IF(%Title,%IFEqual(%Title,%FileName,, - %Title),)),%IF(%Album,%FileName,%IF(%Title,%Title,%FileName)))It should work the same in the playlist and in the tag editor.
-
Thanks, I think it works with your template. With mine the file name is copied only from the quick file info, but not from the tag editor.
Can you modify this code so that:
- when there is only Artist, FileName is shown (not Artist)
- when there is only Title, FileName is shown (not Title)
- when there is only Title and Album, Title - Album is shown (not FileName)
I can't do this even with AI without breaking other conditions :/
-
Can you modify this code
It will be easier if I see all the conditions at once. Please complete the table:
Artist FileName
Artist+Title Artist - Title
Artist+Album ?
Artist+Title+Album ?
Title FileName
Title+Album Title - Album
Album FileName
- FileName
-
Artist FileName
Artist+Title Artist - Title
Artist+Album Artist - FileName
Artist+Title+Album Artist - Title
Title FileName
Title+Album Title - Album
Album FileName
- FileName
-
There you go:
%IF(%Title,%IFEqual(%Title,%FileName,%IF(%Artist,%IF(%Album,%Artist - ,),)%FileName,%IF(%Artist,%Artist - %Title,%IF(%Album,%Title - %Album,%FileName))),%IF(%Artist,%IF(%Album,%Artist - ,),)%FileName)
-
Wow, thanks, now even copying file name in tag editor works.
-
Any idea why data copied by "Copy file info to clipboard" in Tag editor are different when open from Advanced Tag Editor (default) and from AIMP (custom)?
And btw, "Download from the Internet" button is only in Tag editor open from ATE, it's not present in tag editor open from AIMP https://i.imgur.com/3kbFheN.png
Btw 2, ATE doesn't recognize album art despite that there is front.jpg next to the file https://i.imgur.com/dRSW7Lb.png (https://i.imgur.com/dRSW7Lb.png)