Bad URL indicator, auto-remove player_embedded crap
This commit is contained in:
parent
de2294d3ab
commit
877b125766
2 changed files with 14 additions and 0 deletions
|
|
@ -181,6 +181,14 @@ function queue(pos) {
|
|||
}
|
||||
links.forEach(function(link) {
|
||||
var data = parseMediaLink(link);
|
||||
if(data.id === null || data.type === null) {
|
||||
makeAlert("Error", "Invalid link. Please double check it and remove extraneous information", "alert-error")
|
||||
.addClass("span12")
|
||||
.insertBefore($("#extended_controls"));
|
||||
}
|
||||
else {
|
||||
$("#mediaurl").val("");
|
||||
}
|
||||
socket.emit("queue", {
|
||||
id: data.id,
|
||||
type: data.type,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue