mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
Fixed issues with pastebin attachments for issue submitter.
This commit is contained in:
parent
5fe4d74316
commit
476350aa7a
@ -9,7 +9,7 @@
|
|||||||
#set global $sbPath = ".."
|
#set global $sbPath = ".."
|
||||||
|
|
||||||
#set global $topmenu="home"#
|
#set global $topmenu="home"#
|
||||||
#import os.path
|
#import os.pat
|
||||||
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
#include $os.path.join($sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.tmpl")
|
||||||
|
|
||||||
#set $myDB = $db.DBConnection()
|
#set $myDB = $db.DBConnection()
|
||||||
|
@ -17,17 +17,8 @@
|
|||||||
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
|
# along with SickRage. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import traceback
|
|
||||||
import re
|
|
||||||
import sickbeard
|
|
||||||
import six
|
|
||||||
import chardet
|
import chardet
|
||||||
import unicodedata
|
import sickbeard
|
||||||
|
|
||||||
from string import ascii_letters, digits
|
|
||||||
from sickbeard import logger
|
|
||||||
from unidecode import unidecode
|
|
||||||
|
|
||||||
|
|
||||||
def _toUnicode(x):
|
def _toUnicode(x):
|
||||||
try:
|
try:
|
||||||
|
@ -26,6 +26,7 @@ import platform
|
|||||||
|
|
||||||
import sickbeard
|
import sickbeard
|
||||||
from sickbeard import classes
|
from sickbeard import classes
|
||||||
|
from sickbeard.encodingKludge import ek
|
||||||
from github import Github
|
from github import Github
|
||||||
from pastebin import PastebinAPI
|
from pastebin import PastebinAPI
|
||||||
|
|
||||||
@ -149,10 +150,11 @@ class Logger(object):
|
|||||||
pastebin_url = None
|
pastebin_url = None
|
||||||
try:
|
try:
|
||||||
if self.logFile and os.path.isfile(self.logFile):
|
if self.logFile and os.path.isfile(self.logFile):
|
||||||
with ek.ek(open, self.logFile) as f:
|
with ek(open, self.logFile) as f:
|
||||||
data = f.readlines(50)
|
data = f.readlines()
|
||||||
|
data = "".join(data[len(data) - 100:])
|
||||||
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', data)
|
pastebin_url = PastebinAPI().paste('f59b8e9fa1fc2d033e399e6c7fb09d19', data)
|
||||||
except:
|
except Exception as e:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user