mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-08 17:06:15 -08:00
2 files changed
+6
-3
No files matched your search
@@ -44,10 +44,12 @@ export class HomeComponent {
|
||||
},
|
||||
{
|
||||
id: 'error',
|
||||
execute: (response: { message: string; status: number }) =>
|
||||
execute: (response: { message: string; status: number }) => {
|
||||
this.isLoading = false;
|
||||
this.showNotification(
|
||||
`Error: ${response.status} ${response.message}. Please check the entered playlist URL again.`
|
||||
),
|
||||
);
|
||||
},
|
||||
},
|
||||
];
|
||||
|
||||
@@ -124,6 +126,7 @@ export class HomeComponent {
|
||||
* @param playlistUrl url of the added playlist
|
||||
*/
|
||||
sendPlaylistsUrl(playlistUrl: string): void {
|
||||
this.isLoading = true;
|
||||
this.electronService.ipcRenderer.send('parse-playlist-by-url', {
|
||||
title: this.getLastUrlSegment(playlistUrl),
|
||||
url: playlistUrl,
|
||||
|
||||
@@ -20,7 +20,7 @@ export class UrlUploadComponent implements OnInit {
|
||||
constructor(private fb: FormBuilder) {}
|
||||
|
||||
ngOnInit(): void {
|
||||
const urlRegex = '(https?://.*?.(m3u|m3u8))';
|
||||
const urlRegex = '(https?://.*?)';
|
||||
this.form = this.fb.group({
|
||||
playlistUrl: [
|
||||
'',
|
||||
|
||||
Reference in new issue
Block a user