1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00

Adding version number

This commit is contained in:
Johan Andersson 2012-01-26 00:18:06 +01:00
parent 8ea9d5de08
commit e21fd620a9

View File

@ -16,6 +16,8 @@ from optparse import OptionParser
import xml.etree.ElementTree as ET import xml.etree.ElementTree as ET
import shlex import shlex
__version__ = "0.5.2012.01.26"
class Common(object): class Common(object):
def getdata(self, url, method="GET", header="", data=""): def getdata(self, url, method="GET", header="", data=""):
""" Get the page to parse it for streams """ """ Get the page to parse it for streams """
@ -447,7 +449,7 @@ class Svtplay(Common):
def main(): def main():
""" Main program """ """ Main program """
usage = "usage: %prog [options] url" usage = "usage: %prog [options] url"
parser = OptionParser(usage=usage) parser = OptionParser(usage=usage, version=__version__)
parser.add_option("-o", "--output", parser.add_option("-o", "--output",
metavar="OUTPUT", help="Outputs to the given filename.") metavar="OUTPUT", help="Outputs to the given filename.")
parser.add_option("-r", "--resume", parser.add_option("-r", "--resume",