mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-23 19:55:38 +01:00
We only need pyamf for kanal5 and kanal9.
This commit is contained in:
parent
4ae1c73079
commit
925390e7d7
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user