summaryrefslogtreecommitdiff
path: root/plugins/m3u/m3u.c
diff options
context:
space:
mode:
authorGravatar Lithopsian <deadbeef@nartowicz.co.uk>2014-07-06 17:04:02 +0100
committerGravatar Lithopsian <deadbeef@nartowicz.co.uk>2014-07-06 17:04:02 +0100
commit3c8b29056cb4e68067f475ee6653640b199087df (patch)
treeaa9e019475dc3e5183c4c8440ea7c0d8c91ee001 /plugins/m3u/m3u.c
parent6cd87a40c3a3da1ff8ecdc0f8b980cec38de84aa (diff)
parentd012d39f4d256d43cd5e2d95a96f4868fbedd464 (diff)
Merge pull request #8 from Alexey-Yakovenko/master
Resync
Diffstat (limited to 'plugins/m3u/m3u.c')
-rw-r--r--plugins/m3u/m3u.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/m3u/m3u.c b/plugins/m3u/m3u.c
index 56602c4c..ff3320b5 100644
--- a/plugins/m3u/m3u.c
+++ b/plugins/m3u/m3u.c
@@ -322,16 +322,9 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
}
const uint8_t *e;
int n;
- if (!strncasecmp (p, "numberofentries=", 16) || !strncasecmp (p, "version=", 8)) {
- while (p < end && *p >= 0x20) {
- p++;
- }
- continue;
- }
- else if (!strncasecmp (p, "file", 4)) {
+ if (!strncasecmp (p, "file", 4)) {
int idx = atoi (p + 4);
if (uri[0] && idx != lastidx && lastidx != -1) {
- trace ("uri%d\n", idx);
DB_playItem_t *it = pls_insert_file (plt, after, fname, uri, pabort, cb, user_data, title, length);
if (it) {
after = it;
@@ -350,6 +343,9 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
p++;
}
p++;
+ while (p < end && *p <= 0x20) {
+ p++;
+ }
if (p >= end) {
break;
}
@@ -387,6 +383,9 @@ load_pls (ddb_playlist_t *plt, DB_playItem_t *after, const char *fname, int *pab
p++;
}
p++;
+ while (p < end && *p <= 0x20) {
+ p++;
+ }
if (p >= end) {
break;
}