• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting 10.11.1 - MKA issue

     
    • 0 Vote(s) - 0 Average

    10.11.1 - MKA issue

    34626
    Offline

    Member

    Posts: 228
    Threads: 42
    Joined: 2023 Jul
    Reputation: 0
    Country:Denmark
    #1
    Yesterday, 04:00 PM (This post was last modified: Yesterday, 04:12 PM by 34626. Edited 2 times in total.)
    Im currently working thru my entire music library, so the music is converted from .WAV to .flac, and then stored in a .MKA container.
    This seems to work just fine and save about 33% space and bandwidth.
    The issue i belive to experience is somewhat the same as this topic:
    https://forum.jellyfin.org/t-mka-tags-re...y-jellyfin
    I have a bash script that should add some user defined metadata + track number.
    Example:
    Bon Jovi/Crush (2000)/01 - It’s My Life.mka
    When adding to Jellyfin it will look loke this:
    Bon Jovi/Crush (2000)/It’s My Life

    And the order of the songs is then messed up. Why dont i just add the 01. to the name of the songs metadata?
    When i create a playlist, i really like just the title of each song, i dont need their track numbers there, besides of the order of the songs in the playlist

    Below is the bash script i run to add Artist, Album, Year and track numbers:


    Quote:#!/bin/bash
    # sudo apt install mkvtoolnix-gui jq
    ARTIST="Bon Jovi"
    ALBUM="Crush"
    YEAR="2000"

    for f in *.mka; do
        echo "Processing '$f' ..."

        TRACK_UID=$(mkvmerge -J "$f" | jq -r '.tracks[0].properties.uid')
        BASENAME="${f%.mka}"

        if [[ "$BASENAME" =~ ^([0-9]{1,2})[[:space:]]*[-\.][[:space:]]*(.*)$ ]]; then
            TRACKNUMBER="${BASH_REMATCH[1]}"
            TITLE="${BASH_REMATCH[2]}"
            CONTAINER_TITLE="${TRACKNUMBER} - ${TITLE}"
        else
            TRACKNUMBER=""
            TITLE="$BASENAME"
            CONTAINER_TITLE="$TITLE"
        fi

        XMLFILE=$(mktemp)
        cat > "$XMLFILE" <<EOL
    <?xml version="1.0"?>
    <Tags>
      <Tag>
        <Targets>
          <TrackUID>$TRACK_UID</TrackUID>
        </Targets>
        <Simple><Name>ARTIST</Name><String>$ARTIST</String></Simple>
        <Simple><Name>ALBUM</Name><String>$ALBUM</String></Simple>
        <Simple><Name>YEAR</Name><String>$YEAR</String></Simple>
        <Simple><Name>TITLE</Name><String>$TITLE</String></Simple>
      </Tag>
    </Tags>
    EOL

        mkvpropedit "$f" --tags all:"$XMLFILE"

        mkvpropedit "$f" --edit info --set "title=$CONTAINER_TITLE"

        rm "$XMLFILE"
    done

    echo "Done!"
    Debian 13 | Jellyfin 10.11.1 in docker | Intel N5105 | RAM 32 GB | 26 TB storage
    « Next Oldest | Next Newest »

    Users browsing this thread: 2 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode