iiEpic / wco-dl

Educational Use Only
MIT License
31 stars 11 forks source link

TypeError: must be str, not bytes #25

Open IngwiePhoenix opened 3 years ago

IngwiePhoenix commented 3 years ago

The error:

Traceback (most recent call last):
  File "C:\Users\ingwi\anime\wco-dl\__main__.py", line 13, in <module>
    class Main:
  File "C:\Users\ingwi\anime\wco-dl\__main__.py", line 119, in Main
    Lifter(url=args.input[0].replace('https://wcostream.com', 'https://www.wcostream.com'), resolution=args.highdef, logger=logger, season=args.season,
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 62, in __init__
    self.download_show(url)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 265, in download_show
    source_url, backup_url = self.find_download_link(item)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 109, in find_download_link
    return self.get_download_url(hidden_url)
  File "C:\Users\ingwi\anime\wco-dl\Lifter.py", line 349, in get_download_url
    backup_match = stream_pattern.search(html[html.find(b'jw.onError'):])
TypeError: must be str, not bytes

The command: python.exe .\__main__.py -i "https://www.wcostream.com/anime/jojo-s-bizarre-adventure-phantom-blood-english-dubbed"

Python version: 3.9.5 Platform: Windows 10

Sadly, I am not very good at python so this trace doesn't tell me a whole lot about the arguments being passed around so all I can do is leave this with you. :)

Have a nice day!