smmoth-dl.py: if there is a Clip element use its manifest
[smooth-dl.git] / smooth-dl.py
index 9530392..e3fa256 100755 (executable)
@@ -136,7 +136,8 @@ def get_manifest(url, dest_dir=tempfile.gettempdir()):
         # if some intermediate client Manifest is used, like in Rai Replay
         clip = manifest.find("Clip")
         manifest_url = clip.attrib["Url"]
-    except:
+        manifest = download_file(manifest_url, None, None)
+    except AttributeError:
         pass
 
     manifest_pattern = re.compile("/manifest$", re.IGNORECASE)