Announcement

Collapse
No announcement yet.

Showing info about path using ATF - how to display info about location of files?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Showing info about path using ATF - how to display info about location of files?

    I need to see YES when a file loaded to Winamp is from

    M:\M\0 0\- O\

    or its subfolders
    - and to show NO when a file was loaded from any other location. What should I put then in my

    Options > Preferences > Playlist > Titles > Advanced Title Formatting

    if this
    PHP Code:
    $if($strstr(%path%,'M:\M\0 0\​- O'),YES,NO

    and this
    PHP Code:
    $IfStrEqual2($split(%filename%,\,0),'M:\M\0 0\- O\','YES',' NO') 

    always show NO?
    Last edited by Wineroz; 18 September 2023, 09:41.

  • #2
    Well, anyone?

    Comment


    • #3
      Look in the Preferences Titles section. Click on the "ATF Help" link for info (opens a HTML file) on how to do this and other things with an ATF string.
      Winamp v5.9.2.10042 - Quinto Black CT v3.8 skin
      Windows 11 Home 64-bit v22H2 desktop - Logitech Z906 5.1 speaker system

      Comment


      • #4
        Well I did and still did not come up with a working version


        Even a
        simplistic one like this

        PHP Code:
        $if($strstr(%path%,'C:\\Test'),YES,NO
        [which is over the top as it escapes special characters in the path when it has just ordinary ones] shows NO for files from any location - thus it does not show YES for files from

        C:\Test


        Comment

        Working...
        X
        😀
        🥰
        🤢
        😎
        😡
        👍
        👎