Skip to content

Commit

Permalink
Only use embedable videos
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisZieba committed Mar 11, 2018
1 parent b3d6422 commit 68e77cc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion public/sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
http://www.sitemaps.org/schemas/sitemap/0.9/sitemap.xsd">

<url>
<loc>https://www.moodfuse.com/</loc>
<loc>https://moodfuse.com/</loc>
</url>
</urlset>
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ import ReactDOM from 'react-dom';
import './index.css';
import App from './App';


ReactDOM.render(<App />, document.getElementById('root'));
13 changes: 7 additions & 6 deletions src/lib/youtube.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,14 +94,15 @@ youtube.listen = (f) => {
youtube.getVideos = (tracks) => {
const endpoint = "https://www.googleapis.com/youtube/v3/search";
const options = {
type: "video",
order: "relevance",
"type": "video",
"order": "relevance",
'start-index': "1",
"max-results": "10",
videoCategoryId: "10",
alt: "json",
part: "id,snippet",
key: "AIzaSyDA9zclpvT41AeFbsAaO5rVLZIx1yCFrvQ"
"videoCategoryId": "10",
"videoEmbeddable": "true",
"alt": "json",
"part": "id,snippet",
"key": "AIzaSyDA9zclpvT41AeFbsAaO5rVLZIx1yCFrvQ"
};

// Create a promise for each track
Expand Down

0 comments on commit 68e77cc

Please sign in to comment.