forked from PromyLOPh/pianobar
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
3,812 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
Reverse engineering, main code: | ||
Lars-Dominik Braun <PromyLOPh@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
Bugs | ||
==== | ||
|
||
A lot, I think. But none of them are found yet... | ||
|
||
Report them to: PromyLOPh@gmail.com |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2008 Lars-Dominik Braun | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
2008-06-09 | ||
* replaced calloc & strcpy by strdup in xml.c | ||
* rating implemented | ||
* skip, change station, quit implemented | ||
* now using thread for audio playback | ||
|
||
2008-06-07 | ||
* updated readme | ||
* documented some more functions | ||
* fixed autotools | ||
* added primitive playback of first song using libao and faad2 | ||
|
||
2008-06-05 | ||
* url creation now uses less buffers | ||
* first public release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Install | ||
======= | ||
|
||
Do not install this application yet! | ||
|
||
Dependencies | ||
------------ | ||
|
||
Versions may vary :) Just get the newest one: | ||
|
||
libao http://www.xiph.org/ao/ (pianobar) | ||
libcurl http://curl.haxx.se/ (libpiano, pianobar) | ||
libfaad2 http://www.audiocoding.com/downloads.html (pianobar) | ||
libxml2 http://xmlsoft.org/ (libpiano) | ||
|
||
Build | ||
----- | ||
|
||
./autogen.sh | ||
./configure | ||
make | ||
|
||
Just run the client from this source directory | ||
|
||
./src/pianobar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
SUBDIRS = libpiano src | ||
|
||
EXTRA_DIST = autogen.sh RoadMap BUGS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
News | ||
==== | ||
|
||
Nothing happened yet... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
Roadmap | ||
======= | ||
|
||
Ordered by importance: | ||
|
||
Must-have: | ||
---------- | ||
|
||
* implement all pandora commands like ban/love/... | ||
* buffer songs (works without too, but would be a huge improvement) | ||
* fixes, fixes, fixes (look for memory leaks or implement error handling, e.g.) | ||
|
||
Wishes: | ||
------- | ||
|
||
* replaygain | ||
* cache for authtoken (how long are they valid?) and other userdata | ||
* last.fm scrobbling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/sh | ||
|
||
libtoolize --force \ | ||
&& aclocal \ | ||
&& automake --add-missing \ | ||
&& autoconf \ | ||
&& ./configure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
AC_INIT([pianobar], [20080609], [PromyLOPh@gmail.com]) | ||
AC_CONFIG_SRCDIR([src/main.c]) | ||
AM_INIT_AUTOMAKE([-Wall]) | ||
|
||
AC_PROG_CC | ||
AM_PROG_CC_C_O | ||
AM_SANITY_CHECK | ||
AM_PROG_LIBTOOL | ||
|
||
PKG_PROG_PKG_CONFIG | ||
|
||
PKG_CHECK_MODULES(LIBCURL, libcurl >= 7.18.0) | ||
AC_SUBST(LIBCURL_CFLAGS) | ||
AC_SUBST(LIBCURL_LIBS) | ||
|
||
PKG_CHECK_MODULES(LIBXML, libxml-2.0 >= 2.6.31) | ||
AC_SUBST(LIBXML_CFLAGS) | ||
AC_SUBST(LIBXML_LIBS) | ||
|
||
PKG_CHECK_MODULES(LIBAO, ao >= 0.8.8) | ||
AC_SUBST(LIBAO_CFLAGS) | ||
AC_SUBST(LIBAO_LIBS) | ||
|
||
AC_CHECK_LIB([faad], [NeAACDecOpen], [LIBFAAD_LIBS=-lfaad], AC_MSG_ERROR([libfaad2 is required. See INSTALL])) | ||
AC_SUBST(LIBFAAD_LIBS) | ||
|
||
# FIXME: check for pthread | ||
|
||
AC_CHECK_HEADERS([stdlib.h string.h]) | ||
|
||
AC_CHECK_FUNCS([memset]) | ||
|
||
AC_TYPE_SIZE_T | ||
|
||
AC_CONFIG_FILES(Makefile src/Makefile libpiano/Makefile) | ||
|
||
AC_OUTPUT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
lib_LTLIBRARIES = libpiano.la | ||
|
||
libpiano_la_SOURCES = crypt.c http.c main.c xml.c const.h crypt.h crypt_key_input.h crypt_key_output.h http.h main.h xml.h | ||
include_HEADERS = piano.h | ||
libpiano_la_CPPFLAGS = ${LIBCURL_CFLAGS} ${LIBXML_CFLAGS} | ||
libpiano_la_LIBADD = ${LIBCURL_LIBS} ${LIBXML_LIBS} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
Copyright (c) 2008 Lars-Dominik Braun | ||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. | ||
*/ | ||
|
||
#ifndef _CONST_H | ||
#define _CONST_H | ||
|
||
/* constants */ | ||
|
||
|
||
#define PIANO_USERAGENT "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9pre) Gecko/2008051115 Firefox/3.0pre" | ||
#define PIANO_RPC_URL "http://www.pandora.com/radio/xmlrpc/v19?" | ||
#define PIANO_SECURE_RPC_URL "https://www.pandora.com/radio/xmlrpc/v19?" | ||
#define PIANO_URL_BUFFER_SIZE 1024 | ||
#define PIANO_HTTP_BUFFER_SIZE 100000 | ||
|
||
#endif /* _CONST_H */ |
Oops, something went wrong.