Code Monkey home page Code Monkey logo

Comments (2)

BB1612 avatar BB1612 commented on July 26, 2024 2

Depending on the system used to list directory contents, having track 1 as "1" in the filename instead of "01" could cause some systems to output the directory listing with an incorrect track order. Having track 1 start with 1 might then result in the next track in the directory listing be track 10. By forcing the track numbers to always be 2 digits, then every system should display the tracks in the correct order when retrieving the directory listing as "01" "02" etc.

Hope that makes sense. I'm not aware of any albums that are 10-discs +, but maybe having disc numbers be 2 digit as well might be prudent.

Filename {track_number} 2 digits

track.py line 172

output_template = output_template.replace("{track_number}", fix_filename(track_number))

output_template = output_template.replace("{track_number}", '{:02d}'.format(int(fix_filename(track_number))))

from zotify.

TrazhCant avatar TrazhCant commented on July 26, 2024

Would a good potential temporary workaround be to jam the zfill() method into the config somehow?

from zotify.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.