lossless1024 / StreaMonitor

Adult live stream downloader for advanced people. I could have chosen a better name.
GNU General Public License v3.0
172 stars 42 forks source link

List Index out Of Range Error #138

Closed MoeBile closed 3 months ago

MoeBile commented 3 months ago

Tried to stat up the downloadr and got this error:

\StreaMonitor-master>python Controller.py Traceback (most recent call last): File "C:\Users\Donald\Documents\StreaMonitor-master\Controller.py", line 5, in if sys.argv[1].startswith("-h"):


IndexError: list index out of range

That was on Arch, it had worked a few days ago. Tried to it get it working on Windows and got the same error.
DerBunteBall commented 3 months ago

You have called Controller.py without any parameters. The IndexError then always occurs because no exception handling is implemented.

sys.argv simply does not contain an index 1 when called without any parameters, but only the index 0 with Controller.py as the value.

To start the downloader, call Downloader.py in a suitable Python environment. Then you end up in the CLI or can control the downloader via Controller.py.

MoeBile commented 3 months ago

OK, got it working. Thanks.