lossless1024 / StreaMonitor

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

while adding streamate account -> TypeError: unsupported operand type(s) for |: 'dict' and 'dict' #60

Closed keeskroket closed 1 year ago

keeskroket commented 1 year ago

Hi,

when adding a streamate account I get the error message below, any idea whats going wrong?

2023-02-13 23:50:07,152 - ERROR - [SM] https://streamate.com/cam/Gina_Gold: unsupported operand type(s) for |: 'dict' and 'dict' Traceback (most recent call last): File "/home/xxxx/stream/StreaMonitor/streamonitor/bot.py", line 125, in run self.sc = self.getStatus() File "/home/xxxx/stream/StreaMonitor/streamonitor/sites/streamate.py", line 21, in getStatus headers = self.headers | { TypeError: unsupported operand type(s) for |: 'dict' and 'dict'

DerBunteBall commented 1 year ago

Which Python Version do you use?

That's a failing operation on two dictonaries. Most likely something like this occurs because the Python version doesn't support this. The codebase has no special handling for different Python versions. So it's likely that the codebase only works with very recent versions.

DerBunteBall commented 1 year ago

Works on fresh pyenv based on 3.11.1

> add Gina_Gold SM
2023-02-14 00:15:28,067 - INFO - manager_cli: Added [SM] Gina_Gold
2023-02-14 00:15:32,446 - INFO - [SM] Gina_Gold: Channel online
2023-02-14 00:15:32,446 - INFO - [SM] Gina_Gold: Selected 1280x720 resolution
2023-02-14 00:15:32,446 - INFO - [SM] Gina_Gold: Started downloading show
> 

Check your Python version.

keeskroket commented 1 year ago

Thank you for answering, I updated my python version to 3.11.1 and it works fine!