Skip to content

Commit

Permalink
Replaced Python TidalAPI to PHP TidalAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturSierzant committed Sep 2, 2019
1 parent 30554fb commit 3346ee1
Show file tree
Hide file tree
Showing 13 changed files with 351 additions and 623 deletions.
10 changes: 1 addition & 9 deletions include/config.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,7 @@
// +------------------------------------------------------------------------+
// | Tidal |
// +------------------------------------------------------------------------+
// | Support for Tidal requires Python. By dafault Python scripts will be |
// | executed by simply calling: |
// | |
// | python script.py |
// | |
// | If that doesn't work try to define path to Python binaries in section |
// | 'Play audio from Youtube' in $cfg['python_path'] |
// | |
// | Token is also required. You can find instruction how to get it from |
// | Token is required. You can find instruction how to get it from |
// | https://github.com/lucaslg26/TidalAPI |
// | |
// | And mpd must have Tidal plugin properly configured: |
Expand Down
5 changes: 4 additions & 1 deletion include/initialize.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@
//define('NJB_HTTPS', ($_SERVER['HTTPS'] == 'off' ? false : true));

define('TIDAL_ALBUM_URL','https://listen.tidal.com/album/');
define('TIDAL_TRACK_URL','https://tidal.com/browse/track/');
define('TIDAL_APP_ALBUM_URL','https://tidal.com/album/');
define('TIDAL_MAX_CACHE_TIME', 24*60*60); //24h in [s]
define('TIDAL_APP_TRACK_URL','https://tidal.com/track/');
define('TIDAL_MAX_CACHE_TIME', 600); //10min in [s]
define('MPD_TIDAL_URL','tidal://track/');


Expand Down Expand Up @@ -100,6 +102,7 @@
$cfg['use_tidal'] = false;
if ($cfg['tidal_username'] && $cfg['tidal_password'] && $cfg['tidal_token']) {
$cfg['use_tidal'] = true;
require_once('tidalapi/tidal_api.php');
}


Expand Down
Loading

0 comments on commit 3346ee1

Please sign in to comment.