diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index dbd093e..cd4a568 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,6 +1,6 @@ { "name": "hazetv-alfatube-1", - "version": "0.1.0", + "version": "0.1.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -5879,13 +5879,11 @@ }, "balanced-match": { "version": "1.0.0", - "bundled": true, - "optional": true + "bundled": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, - "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -5898,18 +5896,15 @@ }, "code-point-at": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "concat-map": { "version": "0.0.1", - "bundled": true, - "optional": true + "bundled": true }, "console-control-strings": { "version": "1.1.0", - "bundled": true, - "optional": true + "bundled": true }, "core-util-is": { "version": "1.0.2", @@ -6012,8 +6007,7 @@ }, "inherits": { "version": "2.0.3", - "bundled": true, - "optional": true + "bundled": true }, "ini": { "version": "1.3.5", @@ -6023,7 +6017,6 @@ "is-fullwidth-code-point": { "version": "1.0.0", "bundled": true, - "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -6036,20 +6029,17 @@ "minimatch": { "version": "3.0.4", "bundled": true, - "optional": true, "requires": { "brace-expansion": "^1.1.7" } }, "minimist": { "version": "0.0.8", - "bundled": true, - "optional": true + "bundled": true }, "minipass": { "version": "2.2.4", "bundled": true, - "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -6066,7 +6056,6 @@ "mkdirp": { "version": "0.5.1", "bundled": true, - "optional": true, "requires": { "minimist": "0.0.8" } @@ -6139,8 +6128,7 @@ }, "number-is-nan": { "version": "1.0.1", - "bundled": true, - "optional": true + "bundled": true }, "object-assign": { "version": "4.1.1", @@ -6150,7 +6138,6 @@ "once": { "version": "1.4.0", "bundled": true, - "optional": true, "requires": { "wrappy": "1" } @@ -6256,7 +6243,6 @@ "string-width": { "version": "1.0.2", "bundled": true, - "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", diff --git a/package.json b/package.json index 11de2af..83a340d 100644 --- a/package.json +++ b/package.json @@ -43,7 +43,7 @@ "browserslist": [ ">0.2%", "not dead", - "not ie <= 11", + "not ie <= 8", "not op_mini all" ] } diff --git a/src/TopBar.js b/src/TopBar.js index 4705dae..e85f4f1 100644 --- a/src/TopBar.js +++ b/src/TopBar.js @@ -22,7 +22,7 @@ class TopBar extends Component { } handleSubmit = event => { event.preventDefault(); - event.target.reset(); + // event.target.reset(); this.props.history.push('/search/' + this.state.query); } render() { @@ -87,7 +87,7 @@ class TopBar extends Component { className="mr-sm-2" onChange={this.handleChange} /> - + diff --git a/src/VideoInfo.js b/src/VideoInfo.js index c629a1d..fcb9159 100644 --- a/src/VideoInfo.js +++ b/src/VideoInfo.js @@ -53,8 +53,8 @@ class VideoInfo extends React.Component { }), error => { console.error(error); this.setState({ - isLoaded: true, - error + error, + isLoaded: true }); }); } @@ -64,10 +64,11 @@ class VideoInfo extends React.Component { const momentDuration = this.momentDuration; const ISO_8601parse = this.ISO_8601parse; if (error) { + let htmlRegEx = /<\/?\w+((\s+\w+(\s*=\s*(?:".*?"|'.*?'|[\^'">\s]+))?)+\s*|\s*)\/?>/gm; return ( {} - Error: {error.message} -- Cannot get {error.config.url} + Error: {error.message} -- {error.response.data && error.response.data.error.message.replace(htmlRegEx,'')} ); } else if (!isLoaded) { diff --git a/src/VideoList.js b/src/VideoList.js index 7126b56..6141423 100644 --- a/src/VideoList.js +++ b/src/VideoList.js @@ -114,7 +114,7 @@ class VideoList extends React.Component { ); } else if (!isLoaded) { return
{item.name}
+{item.lastSelected}
+Reccomender: fvitali
+