Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
akashrchandran committed Oct 8, 2022
2 parents 19389a7 + bd99bba commit 33bf5fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ function get_token()
$re = '~<script id="session" data-testid="session" type="application/json">(\S+)</script>~m';
preg_match_all($re, $result, $matches, PREG_SET_ORDER, 0);
$token_json = $matches[0][1];
if (! $token_json["isAnonymous"])
if (! $token_json)
throw new Exception("The SP_DC set seems to be invalid, please correct it!");
$token_file = fopen("config.json", "w") or die("Unable to open file!");;
fwrite($token_file, $token_json);
Expand Down

0 comments on commit 33bf5fb

Please sign in to comment.