Commit e586469f authored by Canek Peláez's avatar Canek Peláez
Browse files

Add %f format for filename.

parent 963a5f8c
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -329,6 +329,10 @@
            <entry><literal>%o</literal></entry>
            <entry>Original artist.</entry>
          </row>
          <row>
            <entry><literal>%f</literal></entry>
            <entry>File name.</entry>
          </row>
        </tbody>
      </tgroup>
    </table>
+2 −0
Original line number Diff line number Diff line
@@ -151,6 +151,7 @@ Format for printing:
  %c: Comment
  %s: Composer
  %o: Original artist
  %f: File name
""";

        private static void print_genres() {
@@ -261,6 +262,7 @@ Format for printing:
                f = f.replace("%s", ft.composer);
            if (ft.original != null)
                f = f.replace("%o", ft.original);
            f = f.replace("%f", filename);

            stdout.printf(f);
        }