-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closes #229, add Youtube playlist for ZAP #247
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
448f622
Add Zen Audio Player YouTube private playlist under the user authenti…
i-radwan 49c4a99
Add videos to playlists if they don't exist
i-radwan 7526e02
Reuse already made Zap playlist instead of creating one in case of lo…
i-radwan 9b3b3bb
Fix some styling
i-radwan 05910d9
Handle remote Zap playlist delete.
i-radwan aea5ea2
Add queue div to html file which will display user videos
i-radwan 267aa94
Confirm before deleting from zap plylist videos queue
i-radwan a44e831
Fix style.css formatting
i-radwan 17c2d45
Style everything.js
i-radwan 9703ecf
add comments for keys
i-radwan f3bef03
Replace rgba with rgb
i-radwan 655abcf
Merge branch 'master' into master
i-radwan 92e0445
Merge 2 functions (the one which gets the youtube playlist videos and…
i-radwan aa5f50a
Merge branch 'master' of https://github.com/hemoali/zen-audio-player.…
i-radwan 5ea8b61
Load the playlist queue immediately after signing in
i-radwan 2d8ab2c
Add missing javascript api file
i-radwan f09ed5d
Remove api.js
i-radwan 7837ba7
Allow Google API calls only on http
i-radwan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file isn't checked in
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sry about that, just checked it in.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any clues on how to get rid of this error (which occurs when including this js file or
https://apis.google.com/js/api.js?onload=handleClientLoad
)1) should have required HTML elements
!?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well, I think I've figured out the problem 😩. The Google Client ID configurations allow requests from certain domains only, the authentication request has to come from one of these domains only, the test uses file:// protocol, which in turn gets rejected from Google and Zombie receives 400 bad request response.
To bypass this error, I replaced this line:
var indexHTMLURL = "file://" + path.join(__dirname, "..", "index.html");
by
var indexHTMLURL = "http://localhost/open-source/zen-audio-player.github.io/index.html";
in
test/index.js
But now after this error is bypassed, another error appears 😫. The empty search form check, which applies a submit button press and waits for the
local site test
error message. Due to using the HTTP protocol, the function isFileProtocol will return false which won't show the error messagelocal site test
, thus the assert fails. I hope I didn't miss anything and I think it makes sense now 😄** To solve both issues I restricted Google API calls to http only and kept the indexHTMLURL to the original one...