mirror of
https://github.com/Tzahi12345/YoutubeDL-Material.git
synced 2026-04-12 06:01:28 +03:00
Working with encryption!
This commit is contained in:
@@ -12,15 +12,22 @@ export class PostsService {
|
||||
audioFolder: string = "";
|
||||
videoFolder: string = "";
|
||||
startPath: string = "http://localhost:17442/";
|
||||
startPathSSL: string = "https://localhost:17442/"
|
||||
handShakeComplete: boolean = false;
|
||||
|
||||
constructor(private http: Http){
|
||||
console.log('PostsService Initialized...');
|
||||
}
|
||||
|
||||
startHandshake(): Observable<string>
|
||||
startHandshake(url: string): Observable<string>
|
||||
{
|
||||
return this.http.get(this.startPath + "url")
|
||||
return this.http.get(url + "geturl")
|
||||
.map(res => res.json());
|
||||
}
|
||||
|
||||
startHandshakeSSL(url: string): Observable<string>
|
||||
{
|
||||
return this.http.get(url + "geturl")
|
||||
.map(res => res.json());
|
||||
}
|
||||
|
||||
@@ -57,6 +64,14 @@ export class PostsService {
|
||||
return this.http.post(this.path + "mp4fileexists",{name: name})
|
||||
.map(res => res.json());
|
||||
}
|
||||
|
||||
loadNavItems() {
|
||||
return this.http.get("../../backend/config/default.json")
|
||||
.map(res => res.json());
|
||||
//This is optional, you can remove the last line
|
||||
// if you don't want to log loaded json in
|
||||
// console.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user