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:
parent
8ea9d5de08
commit
e21fd620a9
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user