1
0
Fork 0
mirror of https://github.com/Yetangitu/ampache synced 2025-10-05 10:49:37 +02:00
ampache/modules/GMApi/protocol/WC_play.php
2013-11-17 01:21:00 +01:00

41 lines
No EOL
1.1 KiB
PHP

<?php
/*
Copyright (C) 2012 raydan
http://code.google.com/p/unofficial-google-music-api-php/
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
if(!defined('IN_GMAPI')) { die('...'); }
class WC_play extends iWCProtocol {
protected $_suburl = "";
public function getName() { return "play"; }
public function isPost() { return false; }
public function buildUrl($args) {
$qstring = '?u=0&pt=e';
return $this->_base_url.$this->_suburl.$this->getName().$qstring;
}
public function buildTransaction($args) {
return "&songid=".$args;
}
}
?>