summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tirante/__main__.py2
-rw-r--r--tirante/chapter_images_manager.py (renamed from tirante/chim_man.py)6
-rw-r--r--tirante/chapters_manager.py (renamed from tirante/ch_man.py)0
-rw-r--r--tirante/create_database.py (renamed from tirante/cr_dat.py)10
-rw-r--r--tirante/down_man.py6
-rw-r--r--tirante/download_manager.py (renamed from tirante/do_man.py)0
-rw-r--r--tirante/get_chapter_image_list.py (renamed from tirante/gcil.py)0
-rw-r--r--tirante/get_chapters_list.py (renamed from tirante/gcl.py)0
-rw-r--r--tirante/update_database.py (renamed from tirante/up_dat.py)8
9 files changed, 16 insertions, 16 deletions
diff --git a/tirante/__main__.py b/tirante/__main__.py
index 3a639c6..60cda28 100644
--- a/tirante/__main__.py
+++ b/tirante/__main__.py
@@ -20,7 +20,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
-from cr_dat import create_database
+from create_database import create_database
# Main manga source.
MAIN_URL = 'https://manganelo.com/manga/'
diff --git a/tirante/chim_man.py b/tirante/chapter_images_manager.py
index bafb368..c589ca5 100644
--- a/tirante/chim_man.py
+++ b/tirante/chapter_images_manager.py
@@ -20,10 +20,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
"""
-from gcil import get_chapter_image_list
+from get_chapter_image_list import get_chapter_image_list
-def chapter_image_list_to_csv(chapter_data):
+def chapter_images_list_to_csv(chapter_data):
"""
Creates csv file for a chapter, given the list.
chapter_data: A list containing a url and a title.
@@ -38,7 +38,7 @@ def chapter_image_list_to_csv(chapter_data):
outcsv.write(''.join([image[0], ',', image[1], '\n']))
-def chapter_image_csv_to_list(chapter_image_csv):
+def chapter_images_csv_to_list(chapter_image_csv):
"""
Returns a list given the csv file.
chapter_image_csv: csv containing data for the chapter.
diff --git a/tirante/ch_man.py b/tirante/chapters_manager.py
index ee39248..ee39248 100644
--- a/tirante/ch_man.py
+++ b/tirante/chapters_manager.py
diff --git a/tirante/cr_dat.py b/tirante/create_database.py
index 37a98af..20a91df 100644
--- a/tirante/cr_dat.py
+++ b/tirante/create_database.py
@@ -23,10 +23,10 @@ SOFTWARE.
import os
# Project specific imports.
-from gcl import get_chapters_list
-from ch_man import chapters_list_to_csv
-from ch_man import chapters_csv_to_list
-from chim_man import chapter_image_list_to_csv
+from get_chapters_list import get_chapters_list
+from chapters_manager import chapters_list_to_csv
+from chapters_manager import chapters_csv_to_list
+from chapter_images_manager import chapter_images_list_to_csv
def create_database(main_url,
@@ -82,6 +82,6 @@ def create_database(main_url,
# Get the list for the images of each chapter.
chapter_name_ext = ''.join([chapter[1], '.csv'])
if chapter_name_ext not in data_list_dir:
- chapter_image_list_to_csv(chapter)
+ chapter_images_list_to_csv(chapter)
else:
print(''.join([chapter_name_ext, ' already exists.']))
diff --git a/tirante/down_man.py b/tirante/down_man.py
index 171a5f2..2c17617 100644
--- a/tirante/down_man.py
+++ b/tirante/down_man.py
@@ -23,9 +23,9 @@ SOFTWARE.
import os
# Project specific imports.
-from ch_man import chapters_csv_to_list
-from chim_man import chapter_image_csv_to_list
-from do_man import download_chapter
+from chapters_manager import chapters_csv_to_list
+from chapter_images_manager import chapter_image_csv_to_list
+from download_manager import download_chapter
def download_manga(manga_name,
diff --git a/tirante/do_man.py b/tirante/download_manager.py
index c72e62f..c72e62f 100644
--- a/tirante/do_man.py
+++ b/tirante/download_manager.py
diff --git a/tirante/gcil.py b/tirante/get_chapter_image_list.py
index dbe4572..dbe4572 100644
--- a/tirante/gcil.py
+++ b/tirante/get_chapter_image_list.py
diff --git a/tirante/gcl.py b/tirante/get_chapters_list.py
index 6956e7c..6956e7c 100644
--- a/tirante/gcl.py
+++ b/tirante/get_chapters_list.py
diff --git a/tirante/up_dat.py b/tirante/update_database.py
index 5834563..0950cda 100644
--- a/tirante/up_dat.py
+++ b/tirante/update_database.py
@@ -24,9 +24,9 @@ SOFTWARE.
import os
# Project specific imports.
-from gcl import get_chapters_list
-from ch_man import chapters_csv_to_list
-from chim_man import chapter_image_list_to_csv
+from get_chapters_list import get_chapters_list
+from chapters_manager import chapters_csv_to_list
+from chapter_images_manager import chapter_images_list_to_csv
def update_database(main_url,
@@ -96,6 +96,6 @@ def update_database(main_url,
# Get the list for the images of each chapter.
chapter_name_ext = ''.join([chapter[1], '.csv'])
if chapter_name_ext not in data_list_dir:
- chapter_image_list_to_csv(chapter)
+ chapter_images_list_to_csv(chapter)
else:
print(''.join([chapter_name_ext, ' already exists.']))