Code Monkey home page Code Monkey logo

replica's Introduction

Yello there 👋

📖 Digest of my active open source repositories :

[chess] pawnhub: terminal listing of your online chess games results (2022) · [git] cesar: the radical compressor (2020) · [blog] Excommito: back-oriented jekyll template (2017) · [unixy] cronicle: time-spaced backups via cron (2017) · [unixy] F-dotfiles: opiniated dotfiles organization scheme based on stow (2016) · [media] flinck: sort your movies on filesystem using symlinks (2016) · [unixy] qifqif: enrich your .QIF files with categories. (2015) · [media] Replica: the id3 cloner (2012)
And also brack (2020 Dec), ublame (2020), imgimg (2019), etc.

🔥 Have a sneak-peek of future projects to come on my Discussions zone, and vote for the best one(s) ! ✊

replica's People

Contributors

kraymer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

garyswift

replica's Issues

Error when using -p

After running (with -u) Replica on two directories with 10 files each in it, it got the error message Error: SRC and DEST must have same number of files. So I tried using -u -p, but then I got the following:

Traceback (most recent call last):
  File "/usr/local/bin/replica", line 11, in <module>
    load_entry_point('replica==0.1.1', 'console_scripts', 'replica')()
  File "build/bdist.linux-x86_64/egg/replica/cli.py", line 123, in main
  File "build/bdist.linux-x86_64/egg/replica/cli.py", line 71, in expand_args
AttributeError: 'NoneType' object has no attribute 'group'

Installing on High Sierra/ Bug in tagger.py, line 48

Thanks for making this. I use it all the time. When I am making a playlist, I will occasionally come across a song that is not 320kbps. I then replace the entire album using Replica.

I know that this is a bit old so I am not giving you hassle for it. However, I had a lot of trouble installing on the latest masOS, High Sierra 10.13.4.

The first issue was with trying to get this working with the version of Python that comes with macOS. When I installed pip, I got a lot of warnings including.

gary@~$ sudo easy_install pip
...
matplotlib 1.3.1 requires nose, which is not installed. 
matplotlib 1.3.1 requires tornado, which is not installed.
...

These errors were preventing me form installing Replica. Using pip, I installed nose and tornado. This allowed me to install Replica but I kept getting the following:

-bash: replica: command not found

There was a lot of trouble shooting on my part. I won’t overload this with terminal outputs because nothing was working for me.

After much frustration, I followed some internet advice and installed Python 3. I then installed Replica using pip3.

pip3 install replica

I then checked it was installed using freeze.

gary@~$ pip3 freeze
mutagen==1.40.0
replica==0.1.1
gary@~$

I was still getting the “command not found” error when trying to run Replica so I restarted terminal. I then ran replica again and it tried to run but there was an error using replica and python 3. Python 3 is strict about using parenthesis with the print statement.

Line 48, tagger.py needs to be:

print (msg)

TLDR

Install latest version of Python.

Use pip3 to stall replica.

pip3 install replica

Restart terminal.

Fix error on line 48, tagger.py.

print msg

needs to be:

print (msg)

How is order determined?

I just used -u on two directories. Each had files starting with 01 , 02 , .. 11 , 12 , ... etc. (that is, two digits, leading zero, space after the track number.) However, files were incorrectly swapped. How does replica decide what order to process directories in?

Error using -f

Running with -f replica does the job correctly, changes the file name, but returns an error. Is it normal?

replica -f /home/leskop/download/test/or/ory.mp3 /home/leskop/download/test/kat.mp3
Cloning id3 metadata...done
Renaming files.........Cloning /home/leskop/download/test/or/ory.mp3 with /home/leskop/download/test/kat.mp3
failed
[Errno 2] No such file or directory: '/home/leskop/download/test/kat.mp3'

Windows Can't Run

I'm pretty sure I'm just being stupid but how do you run this program on windows cmd
things I've tried(while navigated to my desktop where the files are located:
replica -u "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3" replica.py -u "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3" replica.exe -u "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3" replica "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3" replica.py "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3" replica.exe "08-We Would Never Do.mp3" "We Would Never Do (feat. Nevve).mp3"
and much more I am really lost on this and I've been looking it up for days im gonna guess its a different syntax for windows. I really have no Idea

replica assumes predictable file order

The list returned by os.listdir() is in arbitrary order. In Unix-like systems IS in arbitrary order. It needs to be sorted in get_mp3_paths().

Failing to do this may result in complete loss of data.

Returning the result of sorted(res) instead fixes the issue.

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.