mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
fix: playlist upload for mac os #6
This commit is contained in:
1 parent
8e8cdf0095
commit
78ca56f2b6
1 file changed
+7
@@ -29,7 +29,11 @@ export class PlaylistUploaderComponent {
|
||||
allowedContentTypes: [
|
||||
'application/x-mpegurl',
|
||||
'application/octet-stream',
|
||||
'application/mpegurl',
|
||||
'application/vnd.apple.mpegurl',
|
||||
'application/vnd.apple.mpegurl.audio',
|
||||
'audio/x-mpegurl',
|
||||
'audio/mpegurl',
|
||||
],
|
||||
concurrency: 1,
|
||||
maxUploads: 1,
|
||||
@@ -55,6 +59,9 @@ export class PlaylistUploaderComponent {
|
||||
this.setRendererListeners();
|
||||
}
|
||||
|
||||
/**
|
||||
* Set electrons main process listeners
|
||||
*/
|
||||
setRendererListeners(): void {
|
||||
this.renderer.on('parse-response', (event, response) => {
|
||||
this.ngZone.run(() => this.setPlaylist(response.payload));
|
||||
|
||||
Reference in new issue
Block a user