diff --git a/anime_dl/animeName.py b/anime_dl/animeName.py index ae85f01..def5bb4 100644 --- a/anime_dl/animeName.py +++ b/anime_dl/animeName.py @@ -11,7 +11,7 @@ def nameEdit(self, animeName, episodeNumber, resolution): rawName = str(animeName).title().strip().replace("Season ", "S") + " - " +\ str(episodeNumber).strip() + " [" + str(resolution) + "]" file_name = str(re.sub(r'[^A-Za-z0-9\ \-\' \\]+', '', str(animeName))).title().strip().replace("Season ", "S")\ - + " - " + str(episodeNumber).strip() + " [" + str(resolution) + "].mp4" + + " - " + str(episodeNumber.zfill(2)).strip() + " [" + str(resolution) + "].mp4" try: max_path = int(subprocess.check_output(['getconf', 'PATH_MAX', '/'])) @@ -30,7 +30,7 @@ def nameEditFuni(self, animeName, seasonNumber, episodeNumber, resolution): str(episodeNumber).strip())\ + " [" + str(resolution) + "]" file_name = str(re.sub(r'[^A-Za-z0-9\ \-\' \\]+', '', str(animeName))).title().strip().replace("Season ", "S") \ - + " - " + str(episodeNumber).strip() + " [" + str(resolution) + "].mp4" + + " - " + str(episodeNumber.zfill(2)).strip() + " [" + str(resolution) + "].mp4" try: max_path = int(subprocess.check_output(['getconf', 'PATH_MAX', '/'])) @@ -41,4 +41,4 @@ def nameEditFuni(self, animeName, seasonNumber, episodeNumber, resolution): if len(file_name) > max_path: file_name = file_name[:max_path] - return file_name \ No newline at end of file + return file_name diff --git a/anime_dl/sites/__init__.py b/anime_dl/sites/__init__.py index 3d914b1..fb785d5 100644 --- a/anime_dl/sites/__init__.py +++ b/anime_dl/sites/__init__.py @@ -1,3 +1,3 @@ -import crunchyroll -import funimation -import vrv \ No newline at end of file +import sites.crunchyroll +import sites.funimation +import sites.vrv