Gmail Music

Introduction

This started off as a python learning task. Then I found a nice library (libgmail) for accessing data in Gmail accounts. So I decided to take it a step further and write GMusic.

It basically allows you to store your mp3 (or other format audio files) onto your gmail account. After which you can use GMusic to access and play your songs anywhere that has an internet connection.

Due to large capacity of GMail accounts, you should be able to store upto 500 songs. YMMV.


Requirements


Description


Upload

CAUTION:

Gmail Lockdown
Gmail Lockdown



GUI/Frontend


Backend

echo PLAY > /tmp/gmusicCmdIn

Where /tmp/gmusicCmdIn is the named pipe on which GMusic listens.

Command list

E.g.
ADD/DELETE songname.mp3 OR
ADD/DELETE -playlist songs.m3u

Player

mplayer -input file=/tmp/mplayerIn song.mp3


Installation

./cgiserver.py >/dev/null 2>&1 &
./gmusic.py >/dev/null 2>&1 &


Usage


Trouble-shooting

Create a text file with some filenames.mp3, name the file myplaylist.m3u.

echo "ADD -playlist myplaylist.m3u" > /tmp/gmusicCmdIn.

The stdout for gmusic.py will show some information as to which song is being downloaded etc.

Check the queue using the DEBUG command. It will output the add and del Queues on the stdout.

echo DEBUG > /tmp/gmusicCmdIn

Once the first song is finished downloading, play the list. You should hear the first song in the list. The stdout will also show the mplayer cmd that is used to play the song. So you can try and run that on the command line to verify in case it doesnt work.

echo PLAY > /tmp/gmusicCmdIn

The above example shows essentially what happens when the GUI is used.


TODO


BUGS

Report any bugs to pranavadesai@gmail.com.


Downloads


Acknowledgments


Screenshots