From bc6504088fca6be7249f47f86aa0d6b7d32b60d2 Mon Sep 17 00:00:00 2001 From: Ajurna Date: Thu, 26 Apr 2018 11:54:37 +0100 Subject: [PATCH] fix for breadcrumbs not linking correctly. --- README.md | 4 ++-- comic/util.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 44f03c6..2c2488f 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ This is for if you have a collection of comics on a media server and want to rea # Requirments -- [Django 1.10](https://www.djangoproject.com/) -- [python 3.5](https://www.python.org/) +- [Django 2.0](https://www.djangoproject.com/) +- [python 3.5+](https://www.python.org/) - [rarfile python library by Marko Kreen](https://github.com/markokr/rarfile) (included) - [Unrar by winrar](http://rarlabs.com) - [django-recaptcha by praekelt](https://github.com/praekelt/django-recaptcha) diff --git a/comic/util.py b/comic/util.py index ccf118e..e430d46 100644 --- a/comic/util.py +++ b/comic/util.py @@ -56,12 +56,12 @@ def generate_breadcrumbs_from_path(directory=False, book=False): for item in folders[::-1]: bc = Breadcrumb() bc.name = item.name - bc.url = b'/comic/' + urlsafe_base64_encode(item.selector.bytes) + bc.url = '/comic/' + urlsafe_base64_encode(item.selector.bytes).decode() output.append(bc) if book: bc = Breadcrumb() bc.name = book.file_name - bc.url = b'/read/' + urlsafe_base64_encode(book.selector.bytes) + bc.url = '/read/' + urlsafe_base64_encode(book.selector.bytes).decode() output.append(bc) return output