From 42280462d9c8acae39bca997b588ed5783a7f1e0 Mon Sep 17 00:00:00 2001 From: apples <31050569+nathanapples@users.noreply.github.com> Date: Sun, 3 Sep 2017 00:26:13 -0600 Subject: [PATCH 1/4] Update searcher.py --- headphones/searcher.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/headphones/searcher.py b/headphones/searcher.py index 0dc81b546..8a2f8f304 100644 --- a/headphones/searcher.py +++ b/headphones/searcher.py @@ -39,6 +39,11 @@ from headphones import utorrent, transmission, notifiers, rutracker, deluge, qbittorrent from bencode import bencode, bdecode +# encoding=utf8 +import sys +reload(sys) +sys.setdefaultencoding('utf8') + # Magnet to torrent services, for Black hole. Stolen from CouchPotato. TORRENT_TO_MAGNET_SERVICES = [ # 'https://zoink.it/torrent/%s.torrent', From 9fb4ac1aa5591f1680e4578c31c411dac9c00f80 Mon Sep 17 00:00:00 2001 From: apples <31050569+nathanapples@users.noreply.github.com> Date: Sun, 3 Sep 2017 00:27:11 -0600 Subject: [PATCH 2/4] Update librarysync.py --- headphones/librarysync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index ba246ff0e..c221d31e4 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -20,6 +20,10 @@ from beets.mediafile import MediaFile, FileTypeError, UnreadableFileError from headphones import db, logger, helpers, importer, lastfm +# encoding=utf8 +import sys +reload(sys) +sys.setdefaultencoding('utf8') # You can scan a single directory and append it to the current library by # specifying append=True, ArtistID and ArtistName. From 76d64b02e2d080635915d61a40e07acdd4158223 Mon Sep 17 00:00:00 2001 From: "Get your own 'tots. Geez!" Date: Tue, 10 Apr 2018 21:51:15 -0600 Subject: [PATCH 3/4] Update librarysync.py --- headphones/librarysync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index c221d31e4..8289f2d16 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -20,8 +20,11 @@ from beets.mediafile import MediaFile, FileTypeError, UnreadableFileError from headphones import db, logger, helpers, importer, lastfm + # encoding=utf8 import sys + + reload(sys) sys.setdefaultencoding('utf8') From 27d6f82c2807234e48cb72b94423180b84f0001d Mon Sep 17 00:00:00 2001 From: "Get your own 'tots. Geez!" Date: Tue, 10 Apr 2018 21:58:25 -0600 Subject: [PATCH 4/4] Update librarysync.py --- headphones/librarysync.py | 1 + 1 file changed, 1 insertion(+) diff --git a/headphones/librarysync.py b/headphones/librarysync.py index 8289f2d16..4bb9d0da6 100644 --- a/headphones/librarysync.py +++ b/headphones/librarysync.py @@ -28,6 +28,7 @@ reload(sys) sys.setdefaultencoding('utf8') + # You can scan a single directory and append it to the current library by # specifying append=True, ArtistID and ArtistName. def libraryScan(dir=None, append=False, ArtistID=None, ArtistName=None,