Compare commits

..

No commits in common. "584f9d104aa2f41b7d953bbf78bd80209a5979ff" and "b3394358178c75d0b0a0015f35e05f4feb33ddbf" have entirely different histories.

3 changed files with 1 additions and 37 deletions

View file

@ -1,4 +1,3 @@
# usenet_anime_poster # usenet_anime_poster
Downloads anime from Nyaa.si and posts it to Usenet. Requires Usenet account with posting capability. This is an attempt Downloads anime from Nyaa.si and posts it to Usenet. Requires Usenet account with posting capability.
at recreating what AnimeTosho is doing, use Usenet only.

View file

@ -1,32 +0,0 @@
# -*- coding: utf-8 -*-
from datetime import datetime
import colorama
class Logger(object):
def __init__(self, module: str, datefmt: str = '%m/%d/%Y %I:%M:%S %p'):
colorama.init()
self.module = module
self.datefmt = datefmt
def info(self, msg: str, levelname: str = 'INFO'):
asctime = datetime.now().strftime(self.datefmt)
print(f'\033[92m[{asctime}] - {levelname} - {self.module} - {msg}\033[39m')
def debug(self, msg: str, levelname: str = 'DEBUG'):
asctime = datetime.now().strftime(self.datefmt)
print(f'\033[93m[{asctime}] - {levelname} - {self.module} - {msg}\033[39m')
def verbose(self, msg: str, levelname: str = 'VERBOSE'):
asctime = datetime.now().strftime(self.datefmt)
print(f'\033[96m[{asctime}] - {levelname} - {self.module} - {msg}\033[39m')
def error(self, msg: str, levelname: str = 'ERROR'):
asctime = datetime.now().strftime(self.datefmt)
print(f'\033[91m[{asctime}] - {levelname} - {self.module} - {msg}\033[39m')

View file

@ -1,3 +0,0 @@
colorama==0.4.6
feedparser==6.0.10
sgmllib3k==1.0.0