Skip to content

Commit

Permalink
Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
seankolczynski committed Oct 24, 2024
1 parent 5fa2e20 commit 95b97c3
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8 deletions.
3 changes: 0 additions & 3 deletions public/api/v2/setlistfm.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,9 @@

$setlistfmrq = curl_init();

// curl_setopt($setlistfmrq, CURLOPT_USERAGENT, 'OpenScrobbler/2.0');
curl_setopt($setlistfmrq, CURLOPT_RETURNTRANSFER, true);
curl_setopt($setlistfmrq, CURLOPT_HTTPHEADER, ["REMOTE_ADDR: $_SERVER[REMOTE_ADDR]", "HTTP_X_FORWARDED_FOR: $_SERVER[REMOTE_ADDR]", "Accept: application/json", "x-api-key: " . getenv('SETLISTFM_API_KEY')]);

// $params['key'] = getenv('SETLISTFM_API_KEY');

$qs = http_build_query($params);

$fullRequest = 'https://api.setlist.fm/rest/1.0' . '/' . $endpoint . '?' . $qs;
Expand Down
2 changes: 1 addition & 1 deletion src/components/ScrobbleList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export default function ScrobbleList({
children,
compact = false,
isAlbum = false,
albumHasVariousArtists = false,
loading = false,
noMenu = false,
onSelect,
Expand All @@ -33,7 +34,6 @@ export default function ScrobbleList({
}: ScrobbleListProps) {
const { cloneFn, setCloneFn } = useContext(ScrobbleCloneContext);
const cleanupCtx = useContext(CleanupPatternContext); // this may be undefined
let albumHasVariousArtists = !isAlbum;

if (loading) {
return <Spinner />;
Expand Down
3 changes: 0 additions & 3 deletions src/domains/scrobbleSetlist/ScrobbleSetlistResult.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import { faList } from '@fortawesome/free-solid-svg-icons';
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
import { useQuery } from '@tanstack/react-query';
// import Tracklist from 'domains/scrobbleAlbum/partials/Tracklist';
import { useEffect, useState } from 'react';
import { useNavigate, useParams } from 'react-router-dom';
// import { Button } from 'reactstrap';

import { setlistSearch as SetlistFmSearch } from 'utils/clients/setlistfm';

Expand Down Expand Up @@ -38,7 +36,6 @@ export function ScrobbleSetlistResult() {
<FontAwesomeIcon icon={faList} className="me-2" />
Scrobble Setlist Result
</h2>
{/* <Button>`Date: ${data.setlist.eventDate}`</Button> */}
</>
);
}
2 changes: 1 addition & 1 deletion src/domains/scrobbleSetlist/ScrobbleSetlistView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function ScrobbleSetlistView() {
<>
<h2>
<FontAwesomeIcon icon={faList} className="me-2" />
Scrobble Setlist View
Scrobble Setlist
</h2>
<div className="row mb-5">
<div className="col-md-7 mb-4">
Expand Down

0 comments on commit 95b97c3

Please sign in to comment.