Giter VIP home page Giter VIP logo

fimfic_opds's Introduction

Introduction

This is a heavily modified Pathagar book server made using the Django framework. It is designed to - only - serve fimfiction.net ebook meta-data using the fimfiction.net api v2. It focuses on OPDS views. HTML views and book management are removed.

See the orginal code this project is based on.

This project depends on an online fimfic2epub service.

Requirements

Python dependencies

Run the following commands. You might need to run it as administrator if your packages are stored in a privileged place.

pip install "django>=1.11.4"
pip install "oauthlib>=2.0.2"
pip install "requests_oauthlib>=0.8.0"
pip install "jsonapi_requests>=0.3.2"
pip install "ciso8601>=1.0.3" #ISO 8601 datetime parser

Quickstart

  • Edit settings.py to suite your needs and environment.

    It is crucial to change CLIENT_ID and CLIENT_SECRET to valid values obtained from a fimfiction site admin.

  • To run the server in development mode, run

    python manage.py runserver

    This starts a server listening on localhost, port 8000

  • With your browser, access http://localhost:8000/fimfic/opds/

  • To run the server in a production environment, look at Django deployment docs

OPDS

This server adheres to the OPDS specification:

http://opds-spec.org

License

GPLv2

fimfic_opds's People

Contributors

benny- avatar kushaldas avatar lionaneesh avatar manuq avatar migonzalvar avatar rajbot avatar sayamindu avatar sethwoodworth avatar shizzz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

fimfic_opds's Issues

Pre-fetch pagination

If a user navigates to a page the server should pre-fetch the next page in the background.

Initial fixture on mysql database creates additional ratings with wrong PK

The initial fixture creates the following Rating object with the wrong primary key:

    {
        "pk": 0,
        "model": "books.Rating",
        "fields": {
          "description": "Everyone"
        }
    },

Expected when doing a python manage.py syncdb:
The above rating is created in the database with PK zero. Running the command does not create this rating again.

Actual results:
Every time python manage.py syncdb is run, the above rating is created with a incrementing PK. Starting with 5. No rating with PK zero exists.

This caused problems when importing books, as no valid rating was found for rating id zero.

Caching

At the moment nothing is cached or pre-fetched.

This issue is about implementing a caching mechanism.

Title is too long

Some fimfic titles are very long. At the moment we have a limit on the titles (200 characters).

We could increase the limit or cut something from the long titles.

About ~15 stories now have long titles.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.