Skip to content

Commit

Permalink
v0.3e
Browse files Browse the repository at this point in the history
v0.3e
  • Loading branch information
ttop32 committed Dec 20, 2020
1 parent 4d4a2e5 commit 9a6b707
Show file tree
Hide file tree
Showing 465 changed files with 1,997 additions and 49 deletions.
11 changes: 9 additions & 2 deletions src/download_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,15 @@ def __init__(self, ):

def downloadUrl(self, url):
self.checkExCred(url)
p = subprocess.Popen(('./lib_/gallery-dl.exe', url))
p.wait()
p=None
try:
p = subprocess.Popen(('./lib_/gallery-dl.exe', url))
p.wait()
finally:
if p:
p.terminate()


print("download done")
downloadFileList,mangaName=self.getDownloadedFilePathList()
return downloadFileList,mangaName
Expand Down
27 changes: 18 additions & 9 deletions src/gui_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
from ini_handler import IniHandler
from text_ocr import TextOcr
import admin
import subprocess




Expand All @@ -30,6 +32,7 @@ def __init__(self, browser):
self.downloadLock = threading.Lock()
self.browser=browser
self.textOcr=TextOcr("")


self.detectDict=dict()
self.detectDict["credFileDetected"]=False
Expand All @@ -46,8 +49,17 @@ def __init__(self, browser):
if os.path.exists(listItemFolder):
shutil.rmtree(listItemFolder)

self.runGoodByeDpi()






def runGoodByeDpi(self,):
def runGoodByeDpiThreadFunc():
admin.runAsAdmin(["lib_\\goodbyedpi\\goodbyedpi.exe "])
t = threading.Thread(target=runGoodByeDpiThreadFunc, args=(), daemon=True).start()

def filterText(self, text):
text = re.sub('[^0-9a-zA-Z]+', '', text)
Expand Down Expand Up @@ -133,9 +145,8 @@ def processInputUrl(self, url):


def checkClipboardChanged(self,):
t = threading.Thread(target=self.checkClipboardChangedLoop, args=())
t.daemon = True
t.start()
t = threading.Thread(target=self.checkClipboardChangedLoop, args=(), daemon=True).start()


def get_download_path(self,):
"""Returns the default downloads path for linux or windows"""
Expand Down Expand Up @@ -193,9 +204,8 @@ def checkInstall(self,slideNum):
checkFunc=self.checkWindowOcrLoop


t = threading.Thread(target=checkFunc, args=())
t.daemon = True
t.start()
t = threading.Thread(target=checkFunc, args=(), daemon=True).start()


def installWinOcr(self,):
admin.runAsAdmin(["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe ","""
Expand Down Expand Up @@ -248,9 +258,8 @@ def startDownloadThreadFunc(self,url):

def startDownload(self,url):
if self.checkIsRunnableEvn():
t = threading.Thread(target=self.startDownloadThreadFunc, args=(url,))
t.daemon = True
t.start()
t = threading.Thread(target=self.startDownloadThreadFunc, args=(url,), daemon=True).start()



def setItemProgressFunc(self,id,progress,time):
Expand Down
Binary file added src/lib_/goodbyedpi/WinDivert.dll
Binary file not shown.
Binary file added src/lib_/goodbyedpi/WinDivert64.sys
Binary file not shown.
Binary file added src/lib_/goodbyedpi/goodbyedpi.exe
Binary file not shown.
Binary file added src/lib_/winocr/API-MS-Win-core-xstate-l2-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/Microsoft.CSharp.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/Microsoft.VisualBasic.Core.dll
Binary file not shown.
Binary file added src/lib_/winocr/Microsoft.VisualBasic.dll
Binary file not shown.
Binary file added src/lib_/winocr/Microsoft.Win32.Primitives.dll
Binary file not shown.
Binary file added src/lib_/winocr/Microsoft.Win32.Registry.dll
Binary file not shown.
5 changes: 5 additions & 0 deletions src/lib_/winocr/SOS_README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
SOS and other diagnostic tools now ship of band and work with any version of the .NET Core runtime.

SOS has moved to the diagnostics repo here: https://github.com/dotnet/diagnostics.git.

Instructions to install SOS: https://github.com/dotnet/diagnostics#installing-sos.
Binary file added src/lib_/winocr/System.AppContext.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Buffers.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Collections.Immutable.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Collections.NonGeneric.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Collections.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.ComponentModel.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Configuration.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Console.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Core.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Data.Common.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Data.DataSetExtensions.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Data.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.Contracts.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.Debug.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.Process.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.StackTrace.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.Tools.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Diagnostics.Tracing.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Drawing.Primitives.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Drawing.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Dynamic.Runtime.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Globalization.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.Compression.Brotli.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.Compression.ZipFile.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.Compression.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.FileSystem.Watcher.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.FileSystem.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.IsolatedStorage.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.MemoryMappedFiles.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.Pipes.AccessControl.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.Pipes.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.IO.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Linq.Expressions.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Linq.Parallel.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Linq.Queryable.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Linq.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Memory.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Http.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.HttpListener.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Mail.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.NameResolution.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Ping.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Primitives.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Requests.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Security.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.ServicePoint.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.Sockets.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.WebClient.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.WebProxy.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.WebSockets.Client.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.WebSockets.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Net.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Numerics.Vectors.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Numerics.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.ObjectModel.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Private.CoreLib.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Private.Uri.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Private.Xml.Linq.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Private.Xml.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Reflection.Emit.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Reflection.Extensions.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Reflection.Metadata.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Reflection.Primitives.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Reflection.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Resources.Reader.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Resources.Writer.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Extensions.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Handles.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Intrinsics.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Loader.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Numerics.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.Serialization.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Runtime.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Security.Claims.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Security.Principal.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Security.SecureString.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Security.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.ServiceModel.Web.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.ServiceProcess.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Text.Encoding.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Text.Encodings.Web.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Text.Json.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.Channels.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.Overlapped.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.Tasks.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.Thread.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.ThreadPool.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.Timer.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Threading.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Transactions.Local.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Transactions.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.ValueTuple.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Web.HttpUtility.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Web.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Windows.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.Linq.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.ReaderWriter.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.Serialization.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.XDocument.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.XPath.XDocument.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.XPath.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.XmlDocument.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.XmlSerializer.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.Xml.dll
Binary file not shown.
Binary file added src/lib_/winocr/System.dll
Binary file not shown.
Binary file added src/lib_/winocr/WindowsBase.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-debug-l1-1-0.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-file-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-file-l1-2-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-file-l2-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-handle-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-heap-l1-1-0.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-memory-l1-1-0.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-string-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-synch-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-synch-l1-2-0.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-core-util-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-conio-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-convert-l1-1-0.dll
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-heap-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-locale-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-math-l1-1-0.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-private-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-process-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-runtime-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-stdio-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-string-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-time-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/api-ms-win-crt-utility-l1-1-0.dll
Binary file not shown.
Binary file added src/lib_/winocr/clrcompression.dll
Binary file not shown.
Binary file added src/lib_/winocr/clretwrc.dll
Binary file not shown.
Binary file added src/lib_/winocr/clrjit.dll
Binary file not shown.
Binary file added src/lib_/winocr/coreclr.dll
Binary file not shown.
Binary file added src/lib_/winocr/dbgshim.dll
Binary file not shown.
Binary file added src/lib_/winocr/hostfxr.dll
Binary file not shown.
Binary file added src/lib_/winocr/hostpolicy.dll
Binary file not shown.
Binary file added src/lib_/winocr/mscordaccore.dll
Binary file not shown.
Binary file not shown.
Binary file added src/lib_/winocr/mscordbi.dll
Binary file not shown.
Binary file added src/lib_/winocr/mscorlib.dll
Binary file not shown.
Binary file added src/lib_/winocr/mscorrc.debug.dll
Binary file not shown.
Binary file added src/lib_/winocr/mscorrc.dll
Binary file not shown.
Binary file added src/lib_/winocr/netstandard.dll
Binary file not shown.
Binary file added src/lib_/winocr/ucrtbase.dll
Binary file not shown.
Loading

0 comments on commit 9a6b707

Please sign in to comment.