1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +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 shlex
__version__ = "0.5.2012.01.26"
class Common(object):
def getdata(self, url, method="GET", header="", data=""):
""" Get the page to parse it for streams """
@ -447,7 +449,7 @@ class Svtplay(Common):
def main():
""" Main program """
usage = "usage: %prog [options] url"
parser = OptionParser(usage=usage)
parser = OptionParser(usage=usage, version=__version__)
parser.add_option("-o", "--output",
metavar="OUTPUT", help="Outputs to the given filename.")
parser.add_option("-r", "--resume",