📜 ⬆️ ⬇️

IPod shuffle without iTunes

I really like the iPod Shuffle and really dislike iTunes. There are several reasons for this:
1. I do not have Windows / Mac OSX;
2. I do not like.

If you look for alternatives among software for Linux, then in my opinion nothing interesting / convenient either (GtkPOD and others).

But yesterday I found an interesting thing, but today I finished it to a completely usable state.

')
The thing that was found by me - Shuffle DB

This is a small script (632 lines in Python). Noteworthy is the import section.

import sys,os,os.path,array,getopt,random,types,fnmatch,operator,string

Those. no scary libipod.
The installation process is described in detail here.

As a result:
1. Unlink from iTunes and use any file manager to upload music, and then launch the script.
2. The directory structure in the Music folder is now any, not f00, f01, f02, which pleased me somewhat.

In order to use this script under Linux, you don’t need anything (finding a distro without python is not quite easy now), but under Windows it is often not. We put.

I took the PortablePyton distribution kit as a base and cut out the excess from it. Initially, the size is 31 MB. Remaining - 4 MB.

To make everything work beautifully:
1. Download PortablePython or its trimmed version ( verm.homelinux.org/files/portablepython_ipod.zip )
2. Unpack it in the root ipod'a.
3. We write a small win_update.bat file as follows:
@echo off
cd Python
python.exe -S ../rebuild_db.py

where rebuild_db.py is a script that is initially set up from shuffle-db.

Now after uploading music to ipod for Windows, you need to run win_update.bat and ... and that's it :)

ps Of the minuses - iTunes after this does not see the added songs, i.e. You have to choose either iTunes or Shuffle DB. I made my choice :)

My final directory structure looks like this:

.
|-- Python
| |-- Lib
| |-- include
| |-- libs
| |-- msvcr71.dll
| |-- python.exe
| `-- python25.dll
|-- iPod_Control
| |-- Music
| `-- iTunes
|-- rebuild_db.log.txt
|-- rebuild_db.py
`-- win_update.bat

Source: https://habr.com/ru/post/48816/


All Articles