From 925390e7d72b43d8bbfb3ad605843e23617d3351 Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Wed, 2 Nov 2011 09:49:55 +0100 Subject: [PATCH] We only need pyamf for kanal5 and kanal9. --- svtplay-dl | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/svtplay-dl b/svtplay-dl index 0310e31..447dc25 100755 --- a/svtplay-dl +++ b/svtplay-dl @@ -9,7 +9,6 @@ from optparse import OptionParser import urlparse import xml.etree.ElementTree as ET import shlex -from pyamf import remoting class Common(object): def getdata(self, url, method="GET", header="", data=""): @@ -79,6 +78,13 @@ class Kanal5(Common): self.other = other def get(self, url): + try: + from pyamf import remoting + except ImportError: + print "You need to install pyamf to download content from kanal5 and kanal9" + print "In debian the package is called python-pyamf" + sys.exit(2) + player_id = 811317479001 publisher_id = 22710239001 const = "9f79dd85c3703b8674de883265d8c9e606360c2e"