diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
index b2bf6fd..1f84816
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,5 @@ promotion
.working
extension
client/tags
+NYoutubeDL
+tags
diff --git a/client/.angular-cli.json b/client/.angular-cli.json
old mode 100644
new mode 100755
diff --git a/client/.editorconfig b/client/.editorconfig
old mode 100644
new mode 100755
diff --git a/client/.gitignore b/client/.gitignore
old mode 100644
new mode 100755
diff --git a/client/.npmrc b/client/.npmrc
old mode 100644
new mode 100755
diff --git a/client/.vscode/launch.json b/client/.vscode/launch.json
old mode 100644
new mode 100755
diff --git a/client/README.md b/client/README.md
old mode 100644
new mode 100755
diff --git a/client/package-lock.json b/client/package-lock.json
old mode 100644
new mode 100755
index 1ecf354..285e093
--- a/client/package-lock.json
+++ b/client/package-lock.json
@@ -1,6 +1,6 @@
{
"name": "pod-noms.web",
- "version": "0.16.0",
+ "version": "0.17.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
@@ -309,6 +309,12 @@
}
}
},
+ "@types/applicationinsights-js": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/@types/applicationinsights-js/-/applicationinsights-js-1.0.5.tgz",
+ "integrity": "sha512-/obMaLeIWrL6FDYJC8v9VE2BrQJ2Y6iHgT/9UI6Xd30S/x0uDkJv/DGt1wMMJEmu+ShkR2KiR9L9OaJ1d91uoA==",
+ "dev": true
+ },
"@types/jasmine": {
"version": "2.8.6",
"resolved": "https://registry.npmjs.org/@types/jasmine/-/jasmine-2.8.6.tgz",
@@ -568,6 +574,11 @@
"default-require-extensions": "1.0.0"
}
},
+ "applicationinsights-js": {
+ "version": "1.0.15",
+ "resolved": "https://registry.npmjs.org/applicationinsights-js/-/applicationinsights-js-1.0.15.tgz",
+ "integrity": "sha512-lxO7LOIkK38q3VE8covJMsGS3O04hPGgPaA8BmGyR3SYQhuIYX9qy14KMojqx239TlPR9YuPexVXTHdrGBATow=="
+ },
"aproba": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/aproba/-/aproba-1.2.0.tgz",
diff --git a/client/package.json b/client/package.json
old mode 100644
new mode 100755
index 4655bd6..ad50256
--- a/client/package.json
+++ b/client/package.json
@@ -1,6 +1,6 @@
{
"name": "pod-noms.web",
- "version": "0.17.0",
+ "version": "0.18.0",
"license": "MIT",
"scripts": {
"ng": "ng",
@@ -31,6 +31,7 @@
"@qontu/ngx-inline-editor": "^0.2.0-alpha.12",
"angular2-jwt": "^0.2.3",
"angular2-moment": "^1.8.0",
+ "applicationinsights-js": "^1.0.15",
"auth0": "^2.9.1",
"auth0-lock": "^11.3.1",
"bootstrap": "4.0.0",
@@ -54,6 +55,7 @@
"@angular/cli": "1.6.8",
"@angular/compiler-cli": "^5.2.6",
"@angular/language-service": "^5.2.6",
+ "@types/applicationinsights-js": "^1.0.5",
"@types/jasmine": "^2.8.6",
"@types/node": "~9.4.6",
"codelyzer": "^4.2.1",
diff --git a/client/src/app/actions/entries.actions.ts b/client/src/app/actions/entries.actions.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/actions/podcast.actions.ts b/client/src/app/actions/podcast.actions.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/actions/profile.actions.ts b/client/src/app/actions/profile.actions.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/app.component.css b/client/src/app/app.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/app.component.html b/client/src/app/app.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts
old mode 100644
new mode 100755
index 1a7e742..c50d54d
--- a/client/src/app/app.component.ts
+++ b/client/src/app/app.component.ts
@@ -2,6 +2,7 @@ import { GlobalsService } from './services/globals.service';
import { Component, HostBinding } from '@angular/core';
import { Store } from '@ngrx/store';
import { AuthService } from 'app/services/auth.service';
+import { AppInsightsService } from 'app/services/app-insights.service';
@Component({
selector: 'app-root',
@@ -9,7 +10,7 @@ import { AuthService } from 'app/services/auth.service';
styleUrls: ['./app.component.css']
})
export class AppComponent {
- constructor(private _authService: AuthService) {
+ constructor(private _authService: AuthService, _appInsights: AppInsightsService) {
_authService.handleAuthentication();
_authService.scheduleRenewal();
}
diff --git a/client/src/app/app.module.ts b/client/src/app/app.module.ts
old mode 100644
new mode 100755
index 3448dfb..786b6ff
--- a/client/src/app/app.module.ts
+++ b/client/src/app/app.module.ts
@@ -49,6 +49,7 @@ import { ProfileComponent } from './components/profile/profile.component';
import { AboutComponent } from './components/about/about.component';
import { FooterComponent } from './components/footer/footer.component';
import { JobsService } from 'app/services/jobs.service';
+import { AppInsightsService } from 'app/services/app-insights.service';
export function authHttpServiceFactory(http: Http, options: RequestOptions) {
return new AuthHttp(
@@ -123,6 +124,7 @@ export function authHttpServiceFactory(http: Http, options: RequestOptions) {
PodcastService,
ImageService,
DebugService,
+ AppInsightsService,
JobsService,
GlobalsService
],
diff --git a/client/src/app/app.router.ts b/client/src/app/app.router.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/about/about.component.css b/client/src/app/components/about/about.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/about/about.component.html b/client/src/app/components/about/about.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/about/about.component.ts b/client/src/app/components/about/about.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/callback/callback.component.css b/client/src/app/components/callback/callback.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/callback/callback.component.html b/client/src/app/components/callback/callback.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/callback/callback.component.ts b/client/src/app/components/callback/callback.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/debug/debug.component.css b/client/src/app/components/debug/debug.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/debug/debug.component.html b/client/src/app/components/debug/debug.component.html
old mode 100644
new mode 100755
index b175847..17f2f69
--- a/client/src/app/components/debug/debug.component.html
+++ b/client/src/app/components/debug/debug.component.html
@@ -28,6 +28,10 @@
+
+
diff --git a/client/src/app/components/debug/debug.component.ts b/client/src/app/components/debug/debug.component.ts
old mode 100644
new mode 100755
index 16eab78..da5aa41
--- a/client/src/app/components/debug/debug.component.ts
+++ b/client/src/app/components/debug/debug.component.ts
@@ -1,14 +1,14 @@
-import { Observable } from 'rxjs/Observable';
-import { SignalRService } from 'app/services/signalr.service';
-import { Component, OnInit } from '@angular/core';
-import { DebugService } from 'app/services/debug.service';
-import { environment } from 'environments/environment';
-import { JobsService } from 'app/services/jobs.service';
+import { Observable } from "rxjs/Observable";
+import { SignalRService } from "app/services/signalr.service";
+import { Component, OnInit } from "@angular/core";
+import { DebugService } from "app/services/debug.service";
+import { environment } from "environments/environment";
+import { JobsService } from "app/services/jobs.service";
@Component({
- selector: 'app-debug',
- templateUrl: './debug.component.html',
- styleUrls: ['./debug.component.css']
+ selector: "app-debug",
+ templateUrl: "./debug.component.html",
+ styleUrls: ["./debug.component.css"]
})
export class DebugComponent implements OnInit {
realtimeMessage: string;
@@ -17,35 +17,59 @@ export class DebugComponent implements OnInit {
debugInfo$: Observable;
apiHost = environment.API_HOST;
signalrHost = environment.SIGNALR_HOST;
- pingPong = '';
+ pingPong = "";
- constructor(private _debugService: DebugService, private _jobsService: JobsService,
- private _signalrService: SignalRService) {}
+ constructor(
+ private _debugService: DebugService,
+ private _jobsService: JobsService,
+ private _signalrService: SignalRService
+ ) {}
ngOnInit() {
this._signalrService
.init(`${environment.SIGNALR_HOST}hubs/debug`)
.then(() => {
- this._signalrService.connection.on('Send', data => {
- console.log('DebugService', 'signalr', data);
+ this._signalrService.connection.on("Send", data => {
+ console.log("DebugService", "signalr", data);
this.messagesReceived.push(data);
- this.realtimeMessage = '';
+ this.realtimeMessage = "";
});
this.debugInfo$ = this._debugService.getDebugInfo();
})
- .catch(err => console.error('debug.component.ts', '_signalrService.init', err));
+ .catch(err =>
+ console.error("debug.component.ts", "_signalrService.init", err)
+ );
this._debugService.ping().subscribe(r => (this.pingPong = r));
}
sendMessage() {
- this._debugService.sendRealtime(this.realtimeMessage).subscribe(r => console.log(r));
+ this._debugService
+ .sendRealtime(this.realtimeMessage)
+ .subscribe(r => console.log(r));
}
doSomething() {
- alert('doSomething was did');
+ alert("doSomething was did");
}
- processOrphans(){
- this._jobsService.processOrphans()
- .subscribe(e => console.log('debug.component.ts', 'processOrphans', e));
+ processOrphans() {
+ this._jobsService
+ .processOrphans()
+ .subscribe(e =>
+ console.log("debug.component.ts", "processOrphans", e)
+ );
+ }
+ processPlaylists() {
+ this._jobsService
+ .processPlaylists()
+ .subscribe(e =>
+ console.log("debug.component.ts", "processPlaylists", e)
+ );
+ }
+ updateYouTubeDl() {
+ this._jobsService
+ .updateYouTubeDl()
+ .subscribe(e =>
+ console.log("debug.component.ts", "updateYouTubeDl", e)
+ );
}
}
diff --git a/client/src/app/components/footer/footer.component.css b/client/src/app/components/footer/footer.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/footer/footer.component.html b/client/src/app/components/footer/footer.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/footer/footer.component.ts b/client/src/app/components/footer/footer.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/home/home.component.css b/client/src/app/components/home/home.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/home/home.component.html b/client/src/app/components/home/home.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/home/home.component.ts b/client/src/app/components/home/home.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/login/login.component.css b/client/src/app/components/login/login.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/login/login.component.html b/client/src/app/components/login/login.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/login/login.component.ts b/client/src/app/components/login/login.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/navbar/navbar.component.css b/client/src/app/components/navbar/navbar.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/navbar/navbar.component.html b/client/src/app/components/navbar/navbar.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/navbar/navbar.component.ts b/client/src/app/components/navbar/navbar.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/entry-list-item/entry-list-item.component.css b/client/src/app/components/podcast/entry-list-item/entry-list-item.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/entry-list-item/entry-list-item.component.html b/client/src/app/components/podcast/entry-list-item/entry-list-item.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/entry-list-item/entry-list-item.component.ts b/client/src/app/components/podcast/entry-list-item/entry-list-item.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.css b/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.html b/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.ts b/client/src/app/components/podcast/podcast-add-form/podcast-add-form.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.css b/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.html b/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.ts b/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.ts
old mode 100644
new mode 100755
index 7cf7740..72da584
--- a/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.ts
+++ b/client/src/app/components/podcast/podcast-add-url-form/podcast-add-url-form.component.ts
@@ -8,6 +8,7 @@ import {
ViewChild
} from '@angular/core';
import { PodcastService } from 'app/services/podcast.service';
+import { debounceTime } from 'rxjs/operator/debounceTime';
@Component({
selector: 'app-podcast-add-url-form',
@@ -41,7 +42,7 @@ export class PodcastAddUrlFormComponent implements AfterViewInit {
this._service.addEntry(entry).subscribe(
e => {
if (e) {
- if (e.ProcessingStatus == 6) {
+ if (e.processingStatus == 6) {
this.onUploadDeferred.emit(e);
} else {
this.onUrlAddComplete.emit(e);
diff --git a/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.css b/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.html b/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.html
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.ts b/client/src/app/components/podcast/podcast-upload-form/podcast-upload-form.component.ts
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast.component.css b/client/src/app/components/podcast/podcast.component.css
old mode 100644
new mode 100755
diff --git a/client/src/app/components/podcast/podcast.component.html b/client/src/app/components/podcast/podcast.component.html
old mode 100644
new mode 100755
index 7ffbc20..a0c0442
--- a/client/src/app/components/podcast/podcast.component.html
+++ b/client/src/app/components/podcast/podcast.component.html
@@ -1,89 +1,68 @@
-