|
|
@ -1,10 +1,8 @@
|
|
|
|
import { PlatformLocation, APP_BASE_HREF } from "@angular/common";
|
|
|
|
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
|
|
import { HttpClient, HttpHeaders } from "@angular/common/http";
|
|
|
|
|
|
|
|
import { Injectable, Inject } from "@angular/core";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { Observable } from "rxjs";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import { IPlexPin } from "../../interfaces";
|
|
|
|
import { IPlexPin } from "../../interfaces";
|
|
|
|
|
|
|
|
import { Injectable } from "@angular/core";
|
|
|
|
|
|
|
|
import { Observable } from "rxjs";
|
|
|
|
|
|
|
|
|
|
|
|
@Injectable()
|
|
|
|
@Injectable()
|
|
|
|
export class PlexTvService {
|
|
|
|
export class PlexTvService {
|
|
|
@ -13,7 +11,7 @@ export class PlexTvService {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public GetPin(clientId: string, applicationName: string): Observable<IPlexPin> {
|
|
|
|
public GetPin(clientId: string, applicationName: string): Observable<IPlexPin> {
|
|
|
|
const headers = new HttpHeaders({"Content-Type": "application/json",
|
|
|
|
const headers = new HttpHeaders({"Content-Type": "application/json; charset=ISO-8859-1",
|
|
|
|
"X-Plex-Client-Identifier": clientId,
|
|
|
|
"X-Plex-Client-Identifier": clientId,
|
|
|
|
"X-Plex-Product": applicationName,
|
|
|
|
"X-Plex-Product": applicationName,
|
|
|
|
"X-Plex-Version": "3",
|
|
|
|
"X-Plex-Version": "3",
|
|
|
|