Skip to content

Commit

Permalink
修复cookies选项无效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
auqhjjqdo committed Jan 11, 2024
1 parent 871ba10 commit ecd6364
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions live_recorder.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ def get_streamlink(self):
proxy = proxy.replace('://', 'h://')
session.set_option('http-proxy', proxy)
if self.headers:
session.set_option('http-header', self.headers)
session.set_option('http-headers', self.headers)
if self.cookies:
session.set_option('http-cookie', self.headers)
session.set_option('http-cookies', self.cookies)
return session

def run_record(self, stream: Union[StreamIO, HTTPStream], url, title, format):
Expand Down

0 comments on commit ecd6364

Please sign in to comment.