Fixed #60 .
This commit is contained in:
Xonshiz 2017-12-26 17:23:42 +05:30
parent 304e7bea9d
commit 223dd2bf9c
4 changed files with 8 additions and 5 deletions

1
.gitignore vendored
View File

@ -71,3 +71,4 @@ comic_dl/build/__main__/warn__main__.txt
*.pdf *.pdf
*.old2 *.old2
comic_dl/build/__main__/xref-__main__.html comic_dl/build/__main__/xref-__main__.html
*.xml___jb_tmp___

View File

@ -57,4 +57,5 @@
- Fix conversion filepath of cbz format [2017.11.15] - @dsanchezseco [#55] - Fix conversion filepath of cbz format [2017.11.15] - @dsanchezseco [#55]
- Fix For #50 [2017.11.26] - @Tyroc [#56] - Fix For #50 [2017.11.26] - @Tyroc [#56]
- Added Support for [MangaReader.net](http://mangareader.net/) (#43) [2017.12.22] - Added Support for [MangaReader.net](http://mangareader.net/) (#43) [2017.12.22]
- Added Support for [readcomicbooksonline.net](http://readcomicbooksonline.net/) (#57) [2017.12.26] - Added Support for [readcomicbooksonline.net](http://readcomicbooksonline.net/) (#57) [2017.12.26]
- Fix For #60 [2017.12.26]

View File

@ -178,14 +178,14 @@ class GlobalFunctions(object):
def conversion_cleaner(self, file_path): def conversion_cleaner(self, file_path):
print("Cleaning Up...") print("Cleaning Up...")
path_breaker = str(file_path).split("/") path_breaker = str(file_path).split(os.sep)
path_breaker.pop() path_breaker.pop()
old_path = '/'.join(path_breaker) old_path = os.sep.join(path_breaker)
path_breaker = str(old_path).split(os.sep) path_breaker = str(old_path).split(os.sep)
path_breaker.pop() path_breaker.pop()
new_path = str('/'.join(path_breaker)) + "/" new_path = str(os.sep.join(path_breaker)) + os.sep
try: try:
shutil.move(file_path, new_path) shutil.move(file_path, new_path)

View File

@ -57,4 +57,5 @@
- Fix conversion filepath of cbz format [2017.11.15] - @dsanchezseco [#55] - Fix conversion filepath of cbz format [2017.11.15] - @dsanchezseco [#55]
- Fix For #50 [2017.11.26] - @Tyroc [#56] - Fix For #50 [2017.11.26] - @Tyroc [#56]
- Added Support for [MangaReader.net](http://mangareader.net/) (#43) [2017.12.22] - Added Support for [MangaReader.net](http://mangareader.net/) (#43) [2017.12.22]
- Added Support for [readcomicbooksonline.net](http://readcomicbooksonline.net/) (#57) [2017.12.26] - Added Support for [readcomicbooksonline.net](http://readcomicbooksonline.net/) (#57) [2017.12.26]
- Fix For #60 [2017.12.26]