Skip to content

[BUG] wtwitch v causes infinite loop when there is no internet connection #35

@jfsen

Description

@jfsen

Describe the bug
The while loop in line 1787 iterates infinitely, if the vodData variable is empty:

/usr/bin/wtwitch: line 1858: vodData[1]: unbound variable
/usr/bin/wtwitch: line 1865: vodData[2]: unbound variable

To Reproduce
Execute wtwitch v {stream} on a known stream in the follow list while offline.

Expected behavior
The script should exit with an error message.

Logs/system info (please complete the following information):

  • EndeavourOS with current wtwitch (installed through AUR)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions