This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import asyncio | |
import websockets | |
import logging | |
import json | |
logger = logging.getLogger('websockets') | |
logger.setLevel(logging.INFO) | |
logger.addHandler(logging.StreamHandler()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import codecs | |
import sys | |
UTF8Writer = codecs.getwriter('utf8') | |
sys.stdout = UTF8Writer(sys.stdout) | |
import tempfile | |
import mysql.connector | |
from smb.SMBConnection import SMBConnection | |
from smb.smb_structs import OperationFailure |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/rtorrent/__init__.py b/lib/rtorrent/__init__.py | |
index 7044f71..1bd28b0 100644 | |
--- a/lib/rtorrent/__init__.py | |
+++ b/lib/rtorrent/__init__.py | |
@@ -74,7 +74,9 @@ class RTorrent: | |
if m.is_retriever() and m.is_available(self)] | |
m = rtorrent.rpc.Multicall(self) | |
- m.add("d.multicall", view, "d.get_hash=", | |
+ # multicall2 wants .. something .. as its first argument. It accepts a blank string, so let's go with that. |