diff --git a/src/app/app.module.ts b/src/app/app.module.ts index b9f07cf64..341cad954 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -22,7 +22,6 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { RecentPlaylistsComponent } from './recent-playlists/recent-playlists.component'; import { ChannelListContainerComponent } from './channel-list-container/channel-list-container.component'; import { FilterPipeModule } from 'ngx-filter-pipe'; -import { M3uService } from './services/m3u-service.service'; // AoT requires an exported function for factories export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader { @@ -55,7 +54,7 @@ export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader { }), NgxUploaderModule, ], - providers: [M3uService], + providers: [], bootstrap: [AppComponent], }) export class AppModule {} diff --git a/src/app/services/m3u-service.service.spec.ts b/src/app/services/m3u-service.service.spec.ts deleted file mode 100644 index ca75b0739..000000000 --- a/src/app/services/m3u-service.service.spec.ts +++ /dev/null @@ -1,16 +0,0 @@ -/* tslint:disable:no-unused-variable */ - -import { TestBed, async, inject } from '@angular/core/testing'; -import { M3uServiceService } from './m3u-service.service'; - -describe('Service: M3uService', () => { - beforeEach(() => { - TestBed.configureTestingModule({ - providers: [M3uServiceService] - }); - }); - - it('should ...', inject([M3uServiceService], (service: M3uServiceService) => { - expect(service).toBeTruthy(); - })); -}); diff --git a/src/app/services/m3u-service.service.ts b/src/app/services/m3u-service.service.ts deleted file mode 100644 index a8294c389..000000000 --- a/src/app/services/m3u-service.service.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Injectable } from '@angular/core'; -import { parse } from 'iptv-playlist-parser'; - -@Injectable({ - providedIn: 'root', -}) -export class M3uService { - /** - * Parses string based array to playlist object - * @param m3uArray m3u playlist as array with strings - */ - parsePlaylist(m3uArray: any[]): any { - const playlistAsString = m3uArray.join('\n'); - return parse(playlistAsString); - } -}