forked from PromyLOPh/pianobar
-
Notifications
You must be signed in to change notification settings - Fork 12
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
34 changed files
with
790 additions
and
434 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
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
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,79 @@ | ||
version: '{branch}-{build}' | ||
configuration: Release | ||
platform: | ||
- x86 | ||
- x64 | ||
clone_script: | ||
- ps: >- | ||
# Clone build environment | ||
git clone -q --branch=master https://github.com/thedmd/pianobar-windows-build.git $env:appveyor_build_folder | ||
# Clone project itself | ||
if(-not $env:appveyor_pull_request_number) { | ||
git clone -q --branch=$env:appveyor_repo_branch https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder\pianobar\src | ||
cd $env:appveyor_build_folder\pianobar\src; git checkout -qf $env:appveyor_repo_commit | ||
} else { | ||
git clone -q https://github.com/$env:appveyor_repo_name.git $env:appveyor_build_folder\pianobar\src | ||
cd $env:appveyor_build_folder\pianobar\src; git fetch -q origin +refs/pull/$env:appveyor_pull_request_number/merge: | ||
cd $env:appveyor_build_folder\pianobar\src; git checkout -qf FETCH_HEAD | ||
} | ||
build: | ||
verbosity: minimal | ||
after_build: | ||
- ps: >- | ||
$artifactName = "pianobar" | ||
if([System.Convert]::ToBoolean($env:appveyor_repo_tag)) | ||
{ | ||
$artifactName = "$artifactName-$env:appveyor_repo_tag_name" | ||
} | ||
else | ||
{ | ||
$branchName = $env:appveyor_build_version -replace "/", "-" | ||
$artifactName = "$artifactName-$branchName" | ||
} | ||
function Package | ||
{ | ||
[cmdletbinding()] | ||
Param([string]$BinaryDir, [string]$ArtifactName, [string]$OutputDir, [string]$Suffix) | ||
Process | ||
{ | ||
New-Item -ItemType directory $OutputDir\release-$Suffix | ||
Copy-Item $env:appveyor_build_folder\pianobar\src\release\* $OutputDir\release-$Suffix | ||
Copy-Item $BinaryDir\*.exe $OutputDir\release-$Suffix | ||
7z a $OutputDir\$ArtifactName-$Suffix.zip $OutputDir\release-$Suffix\* | ||
} | ||
} | ||
if(Test-Path -Path $env:appveyor_build_folder\build\Win32) | ||
{ | ||
Package -BinaryDir $env:appveyor_build_folder\build\Win32 -ArtifactName $artifactName -Suffix x86 -OutputDir $env:appveyor_build_folder\build | ||
} | ||
if(Test-Path -Path $env:appveyor_build_folder\build\x64) | ||
{ | ||
Package -BinaryDir $env:appveyor_build_folder\build\x64 -ArtifactName $artifactName -Suffix x64 -OutputDir $env:appveyor_build_folder\build | ||
} | ||
artifacts: | ||
- path: build\*.zip | ||
deploy: | ||
- provider: GitHub | ||
auth_token: | ||
secure: bXlXe4mzmi9lpGSfWMvWf01I05hyCuYZAVrlM5ZUad86QfyYvO6EeKTPaCpbjdyp | ||
draft: true | ||
force_update: true | ||
on: | ||
branch: /\d\d\d\d\.\d\d.\d\d.*/ |
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
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
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 |
---|---|---|
|
@@ -200,9 +200,20 @@ or the key you defined in | |
Icon for banned songs. | ||
|
||
.TP | ||
.B ca_bundle | ||
.B bind_to = {if!tunX,host!x.x.x.x,..} | ||
This sets the interface name to use as outgoing network interface. The name can | ||
be an interface name, an IP address, or a host name. (from CURLOPT_INTERFACE) | ||
|
||
It can be used as a replacement for | ||
.B control_proxy | ||
in conjunction with OpenVPN's | ||
option | ||
.B route-nopull. | ||
|
||
.TP | ||
.B ca_bundle = /etc/ssl/certs/ca-certificates.crt | ||
Path to CA certifiate bundle, containing the root and intermediate certificates | ||
required to validate Pandora’s SSL certificate. | ||
required to validate Pandora's SSL certificate. | ||
|
||
.TP | ||
.B control_proxy = http://user:password@host:port/ | ||
|
@@ -298,6 +309,12 @@ Station name | |
.B %i | ||
Station id | ||
|
||
.TP | ||
.B gain_mul = 1.0 | ||
Pandora sends a ReplayGain value with every song. This sets a multiplier so that the gain adjustment can be | ||
reduced. 0.0 means no gain adjustment, 1.0 means full gain adjustment, values inbetween reduce the magnitude | ||
of gain adjustment. | ||
|
||
.TP | ||
.B history = 5 | ||
Keep a history of the last n songs (5, by default). You can rate these songs. | ||
|
@@ -343,10 +360,6 @@ Sort station list by name or type (is quickmix) and name. name_az for example | |
sorts by name from a to z, quickmix_01_name_za by type (quickmix at the | ||
bottom) and name from z to a. | ||
|
||
.TP | ||
.B tls_fingerprint = D9980BA2CC0F97BB03822C6211EAEA4A06EEF427 | ||
Hex-encoded SHA1 fingerprint of Pandora's TLS certificate. | ||
|
||
.TP | ||
.B user = [email protected] | ||
Your pandora.com username. | ||
|
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,31 @@ | ||
# Uncomment the control_proxy line if you would like to set up a proxy connection for pianobar | ||
#control_proxy = http://<proxy_user>:<proxy_pass>@<proxy_address>:<proxy_port> | ||
|
||
user = <pandora_user> | ||
password = <pandora_password> | ||
|
||
#width = 220 | ||
#height = 60 | ||
|
||
#------------------------------------------------------------------------------- | ||
# Uncomment these if you're using GlobalPandora.com | ||
|
||
#rpc_host = internal-tuner.pandora.com | ||
#partner_user = pandora one | ||
#partner_password = TVCKIBGS9AO9TSYLNNFUML0743LH82D | ||
#device = D01 | ||
#encrypt_password = 2%3WCL*JU$MP]4 | ||
#decrypt_password = U#IO$RZPAB%VX2 | ||
#tls_fingerprint = B0A1EB460B1B6F33A1B6CB500C6523CB2E6EC946 | ||
|
||
|
||
# Messages with colors using terminal escape codes | ||
format_nowplaying_song = "[92m%t[0m" by "[96m%a[0m" on "[93m%l[0m"[91m%r[0m%@%s | ||
format_nowplaying_station = Station "[95m%n[0m" [90m(%i)[0m | ||
format_list_song = %i) %a - [92m%t[0m%r | ||
format_msg_info = [97m(i) [0m%s | ||
format_msg_nowplaying = [36m|>[0m %s | ||
format_msg_time = [90m# [97m%s[0m | ||
format_msg_err = [90m/!\[0m %s | ||
format_msg_question = [97m[?][0m %s | ||
format_msg_debug = [90m%s[0m |
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,34 @@ | ||
pianobar for Windows - portable binaries | ||
======== | ||
|
||
![pianobar](https://github.com/thedmd/pianobar-windows-binaries/blob/master/screenshots/pianobar.png) | ||
|
||
pianobar is a console client for the personalized web radio pandora | ||
(http://www.pandora.com). Source code of the original project can be found at | ||
at http://github.com/PromyLOPh/pianobar/ or http://6xq.net/projects/pianobar/ | ||
|
||
This project contains binaries for Windows build using Microsoft | ||
Visual Studio 2015. | ||
|
||
json-c, vtparse are used to prepare this distributtion. | ||
|
||
Source code of this binary can be found at: | ||
https://github.com/thedmd/pianobar-windows-build | ||
|
||
|
||
CONFIGURATION | ||
|
||
Pianobar use configuration file. Under Windows this file is named pianobar.cfg | ||
and should be placed next to pianobar.exe. | ||
On reporitory there is an example configuration file, you may copy or rename it. | ||
Then edit it and fill marked fields relevant to you and remove remaining. | ||
|
||
Note that non-US users have to have configuration file with control proxy | ||
details set. | ||
|
||
|
||
GLOBALPANDORA.COM | ||
|
||
If you're behind proxy please look into pianobar.cfg.example and copy necessary | ||
settings to your own configuration file. This are necessary, because | ||
globalpandora.com does not support server used in by 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,31 @@ | ||
# Uncomment the control_proxy line if you would like to set up a proxy connection for pianobar | ||
#control_proxy = http://<proxy_user>:<proxy_pass>@<proxy_address>:<proxy_port> | ||
|
||
user = <pandora_user> | ||
password = <pandora_password> | ||
|
||
#width = 220 | ||
#height = 60 | ||
|
||
#------------------------------------------------------------------------------- | ||
# Uncomment these if you're using GlobalPandora.com | ||
|
||
#rpc_host = internal-tuner.pandora.com | ||
#partner_user = pandora one | ||
#partner_password = TVCKIBGS9AO9TSYLNNFUML0743LH82D | ||
#device = D01 | ||
#encrypt_password = 2%3WCL*JU$MP]4 | ||
#decrypt_password = U#IO$RZPAB%VX2 | ||
#tls_fingerprint = B0A1EB460B1B6F33A1B6CB500C6523CB2E6EC946 | ||
|
||
|
||
# Messages with colors using terminal escape codes | ||
format_nowplaying_song = "[92m%t[0m" by "[96m%a[0m" on "[93m%l[0m"[91m%r[0m%@%s | ||
format_nowplaying_station = Station "[95m%n[0m" [90m(%i)[0m | ||
format_list_song = %i) %a - [92m%t[0m%r | ||
format_msg_info = [97m(i) [0m%s | ||
format_msg_nowplaying = [36m|>[0m %s | ||
format_msg_time = [90m# [97m%s[0m | ||
format_msg_err = [90m/!\[0m %s | ||
format_msg_question = [97m[?][0m %s | ||
format_msg_debug = [90m%s[0m |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Oops, something went wrong.