mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-10 01:56:16 -08:00
fix: allow file:// protocol for epg source
This commit is contained in:
1 parent
9756a76a90
commit
c4e107681e
1 file changed
+1
-1
@@ -129,7 +129,7 @@ export class SettingsComponent implements OnInit {
|
||||
* @param epgUrls urls of the EPG sources
|
||||
*/
|
||||
setEpgUrls(epgUrls: string[] | string): void {
|
||||
const URL_REGEX = /^(http|https):\/\/[^ "]+$/;
|
||||
const URL_REGEX = /^(http|https|file):\/\/[^ "]+$/;
|
||||
|
||||
if (!Array.isArray(epgUrls)) {
|
||||
epgUrls = [epgUrls];
|
||||
|
||||
Reference in new issue
Block a user