Skip to content

atikhono/IPod-Shuffle-4g

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 

Repository files navigation

IPod Shuffle 4g Scripts

##shuffle.py

Python script for building the Track and Playlist database for the newer gen IPod Shuffle. Forked from the shuffle-db-ng project

Just put your audio files into the mass storage of your IPod and shuffle.py will do the rest

$ ./shuffle.py -h
usage: shuffle [-h] [--enable-voiceover] [--rename-unicode]
               [--track-gain TRACK_GAIN] [--verbose]
               [path]

positional arguments:
  path                  iPod root/mountpoint. Default: script dirname

optional arguments:
  -h, --help            show this help message and exit
  --enable-voiceover    Enable Voiceover Feature
  --rename-unicode      Rename Files Causing Unicode Errors, will do minimal
                        required renaming
  --track-gain TRACK_GAIN
                        Store this volume gain (0-99) for all tracks; 0
                        (default) means no gain and is usually fine; e.g. 60
                        is very loud even on minimal player volume

Additions to the original

The goal of this particular project is to provide a seamless alternative to managing iPod Shuffle 4g with iTunes in the style of USB flash drive mp3 players.

  • Optional path argument with script location as default value.

Allows to place shuffle.py into the iPod root directory permanently and run the script from there without specifying a path.

  • VoiceOver disabled by default. Changed --disable-voiceover to --enable-voiceover.

  • VoiceOver supported for Mac OS.

  • TODO: Even with iTunesHelper disabled, iTunes still comes up everytime an iPod is connected thinking it is a virgin iPod. (Quick fix: it happens when iPod_Control is generated by shupple.py from scratch. Let iTunes generate the files and them update them with shuffle.py.)

  • TODO: Update the database automatically everytime a new audio file is uploaded.

  • TODO: Convert unsupported lossless formats to mp3.

Dependencies

This script requires:

Ubuntu

apt-get install python-mutagen libttspico*

Arch Linux

From the Extra repository: pacman -S python2 mutagen and from the AUR: svox-pico-git (link)

Gentoo Linux
PYTHON_TARGETS="python2_7" emerge -av media-libs/mutagen
layman --add=ikelos
layman --overlays="https://raw.githubusercontent.com/ahippo/rhvoice-gentoo-overlay/master/repositories.xml" --fetch --add=ahippo-rhvoice-overlay
ACCEPT_KEYWORDS="~amd64" emerge -av app-accessibility/svox app-accessibility/rhvoice

References to the overlays above: ikelos, ahippo-rhvoice-overlay

Mac OS X (suprise-surprise!)

Python 2.7 and mutagen. VoiceOver uses say, which is a default TTS engine that is available out-of-box.

##TODO

  • Last.fm Scrobbler
  • Qt frontend

##EXTRA READING

About

Scripts for IPod Shuffle 4g

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%