From 6651b45545ce3d2700635e2941f087b69288a509 Mon Sep 17 00:00:00 2001
From: Pierre Rudloff
Date: Fri, 28 Apr 2017 14:43:20 +0200
Subject: [PATCH] Use --flat-playlist to get playlists more efficiently
---
classes/Config.php | 2 +-
templates/playlist.tpl | 20 ++++++++++++++------
2 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/classes/Config.php b/classes/Config.php
index 1f73e6b..be22a3e 100644
--- a/classes/Config.php
+++ b/classes/Config.php
@@ -38,7 +38,7 @@ class Config
*
* @var array
*/
- public $params = ['--no-warnings', '--ignore-errors'];
+ public $params = ['--no-warnings', '--ignore-errors', '--flat-playlist'];
/**
* Enable audio conversion.
diff --git a/templates/playlist.tpl b/templates/playlist.tpl
index 670bc36..f6c9f22 100644
--- a/templates/playlist.tpl
+++ b/templates/playlist.tpl
@@ -8,12 +8,20 @@
{foreach $video->entries as $video}
{/foreach}