1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54:17 +01:00
svtplay-dl/svtplay-dl
Markus Helgesson 0f71269e65 Restructure so the script to be included and used from other Python scripts.
* Renamed 'svtplay-dl' to 'svtplay_dl.py' which conforms with the Python
  guidelines and can be imported from other scripts (names with '-' cannot).
* Created the wrapper 'svtplay-dl' for backward compatability.
* Broke out the major parts of main() into get_media()
* New Options class corresponding to the command line parameters.
* Modified how the log used and progress information written so they can be
  easily configured by the caller.
2012-12-23 16:52:07 +01:00

12 lines
372 B
Python
Executable File

#!/usr/bin/env python
import sys
try:
import svtplay_dl
except ImportError:
print("This is an wrapper to svtplay_dl.py")
print("The script has changed name, so it can be included and used from other Python scripts")
print("Goto http://github.com/spaam/svtplay-dl to download svtplay_dl.py")
sys.exit(2)
if __name__ == "__main__":
svtplay_dl.main()