Fails with exit value 0
On failure, it is important that the exit value is not 0
If the program fails because of `ERROR: Can't read HDS playlist. permission denied`
(and possible at other times to), the exit value is 0.

diff --git a/lib/svtplay_dl/__init__.py b/lib/svtplay_dl/__init__.py
index 798050b..4157b8f 100644
--- a/lib/svtplay_dl/__init__.py
+++ b/lib/svtplay_dl/__init__.py
@@ -215,9 +215,11 @@ def get_one_media(stream, options):
         if options.force_subtitle:
             return
 
-    if len(videos) == 0:
-        if len(error) > 0:
-            log.error(error[0].args[0])
+    for exc in error:
+        log.error(str(exc))
+    if (len(videos) == 0):
+        sys.exit(2)
+
     else:
         if options.list_quality:
             list_quality(videos)
['lib/svtplay_dl/__init__.py']