mirror of
https://github.com/owntone/owntone-server.git
synced 2024-12-26 07:05:57 -05:00
Merge pull request #611 from whatdoineed2do/m3u-https-filescanner-fix
[filescanner] parse https streams for m3u
This commit is contained in:
commit
ab7d630395
@ -245,6 +245,7 @@ scan_playlist(const char *file, time_t mtime, int dir_id)
|
|||||||
|
|
||||||
// Protect this playlist's radio stations from purge after scan
|
// Protect this playlist's radio stations from purge after scan
|
||||||
db_pl_ping_items_bymatch("http://", pli->id);
|
db_pl_ping_items_bymatch("http://", pli->id);
|
||||||
|
db_pl_ping_items_bymatch("https://", pli->id);
|
||||||
free_pli(pli, 0);
|
free_pli(pli, 0);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -338,7 +339,7 @@ scan_playlist(const char *file, time_t mtime, int dir_id)
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
/* Check if line is an URL, will be added to library, otherwise it should already be there */
|
/* Check if line is an URL, will be added to library, otherwise it should already be there */
|
||||||
if (strncasecmp(path, "http://", 7) == 0)
|
if (strncasecmp(path, "http://", 7) == 0 || strncasecmp(path, "https://", 8) == 0)
|
||||||
ret = process_url(pl_id, path, &mfi);
|
ret = process_url(pl_id, path, &mfi);
|
||||||
else
|
else
|
||||||
ret = process_regular_file(pl_id, path);
|
ret = process_regular_file(pl_id, path);
|
||||||
|
Loading…
Reference in New Issue
Block a user