AIMP Forum

AIMP for PC => Ошибки и замечания / Bugs => Обработано / Processed => Topic started by: xeo on October 17, 2024, 16:24:16

Title: [+] [2563] Copy file info to clipboard not working in Tag editor
Post 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.
Title: Re: [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on October 18, 2024, 08:16:27
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/>
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on October 18, 2024, 14:31:15
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)
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on October 18, 2024, 23:02:08
I don't know why, but it doesn't work any more.

How you invoke the function? Clicking the button or via hotkey?
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on October 19, 2024, 00:10:43
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.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on October 19, 2024, 10:22:28
Maybe, clipboard was busy or locked by another app. In v5.40, AIMP will display an error in this case
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on October 19, 2024, 12:35:09
Ok, so what about hot keys. Shouldn't they be the same as set in main app for the same functions?
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on October 19, 2024, 16:36:14
Shouldn't they be the same as set in main app for the same functions?

No.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on October 30, 2024, 16:56:45
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.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on October 30, 2024, 20:02:47
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].
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on October 30, 2024, 23:00:53
If there is no Artist and Title and Album in the tags, this template
Code: [Select]
%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.
Title: Re: [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 11, 2024, 04:24:21
In my case, all works fine.
Мы тут уже выяснили, что проблема в отсутствии автоподстановки имени файла в шаблон %Title в некоторых случаях.
Перепроверил на [2646] файл с пустым заголовком:
- "Копировать информацию о файле в буфер обмена" горячей клавишей из плейлиста - имя файла
- "Копировать информацию о файле в буфер обмена" (любым способом) в редакторе тегов - пустая строка
- В Информационной ленте отображается имя файла
- В плагине OpenWith 1.6.6 остаётся пустая строка
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on December 11, 2024, 08:09:55
в отсутствии автоподстановки имени файла в шаблон %Title

В общем случае на это затачиваться и не надо.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 11, 2024, 21:04:57
В общем случае на это затачиваться и не надо.
Ну явно не должно быть так, что один и тот же шаблон выдаёт разные строки в зависимости от места вызова.
Да и разное поведение макроса в разных шаблонах тоже неудобно.

Честно говоря, лучше бы этой автоподстановки вообще не было. Нужно - впиши в шаблон %IF(%Title,%Title,%FileName), нет - пусть заголовок будет строго из тегов. Чётко определённое поведение. Заодно можно было бы по-особому обрабатывать файлы с неполными тегами (видел такие попытки на форуме). Вот только просто %Title наверняка используется в скинах, поэтому отказаться от автоподстановки уже не получится.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on December 11, 2024, 21:36:24
выдаёт разные строки в зависимости от места вызова

На разных данных он выдает разные строки. Редактор работает исключительно с тегами
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 11, 2024, 22:03:09
Редактор работает исключительно с тегами
Ну нет, переименование файла тоже доступно.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on December 11, 2024, 22:20:05
Ну нет, переименование файла тоже доступно.

я про данные
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 11, 2024, 23:31:57
я про данные
Имя файла к данным не относится? Но %FileName в редакторе работает. Шаблон %IF(%Title,%Title,%FileName) выдаст везде одну и ту же строку, %Title - разные. Что мешает привести всё к единому поведению, чтобы больше таких вопросов не возникало?
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: Artem on December 11, 2024, 23:54:18
Что мешает привести всё к единому поведению, чтобы больше таких вопросов не возникало?

Тут правильным будет выпилить использование имени файла заместо заголовка в плейлисте.

Вообще говоря, эта подстановка идет при чтении метаданных плейлистом, а не при вычислении макроса. Поэтому с т.ч. зрения движка макросов, у записи плейлиста просто всегда есть заголовок.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on December 30, 2024, 01:17:01
So how should I modify this template
 
Code: [Select]
%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?
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 30, 2024, 10:01:48
So how should I modify this template
Try this:
Code: [Select]
%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.
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on December 30, 2024, 16:46:33
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 :/
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 31, 2024, 03:48:26
Can you modify this code
It will be easier if I see all the conditions at once. Please complete the table:
Code: (Tags -> Output) [Select]
Artist FileName
Artist+Title Artist - Title
Artist+Album ?
Artist+Title+Album ?
Title FileName
Title+Album Title - Album
Album FileName
- FileName
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on December 31, 2024, 14:12:23

Code: [Select]
Artist FileName
Artist+Title Artist - Title
Artist+Album Artist - FileName
Artist+Title+Album Artist - Title
Title FileName
Title+Album Title - Album
Album FileName
- FileName
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: CkopoxoD on December 31, 2024, 16:22:37
There you go:
Code: [Select]
%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)
Title: Re: [?] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on December 31, 2024, 16:57:22
Wow, thanks, now even copying file name in tag editor works.
Title: Re: [+] [2563] Copy file info to clipboard not working in Tag editor
Post by: xeo on January 11, 2025, 21:37:38
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)