Giter Site home page Giter Site logo

jeeveshn / media-hub Goto Github PK

View Code? Open in Web Editor NEW
24.0 2.0 7.0 4.09 MB

A Django based Web app that allows users to access information about movies present in their computer even when offline(Initial Setup requires Internet)

Python 61.33% CSS 9.10% JavaScript 2.07% HTML 27.49%
imdb django movie-management

media-hub's Introduction

Media-Hub

A Django based Web application that indexes all movies in your computer and fetches information from Imdb and save it in a Database.
It also fetches a Youtube Trailer link for the movie.

After initial setup requires no internet connection can be accesed when offline.

Installations

sudo apt-get install python-django
sudo pip install imdbpy

Setting Up

Inside Media-Hub
python Shelf.py "Media Directory(Suggested) or leave blank to search the whole hard drive"
python manage.py populate

Shelf.py goes through the given directory or the whole hard drive(depending on choice) looking for potential movie files and then stores the movie object returned by Imdbpy in a file.
This file is then accesed by populate command which then populates the database with relevent entires

Note:

  1. Once Shelf.py starts indexing do not stop the program or else next time it'll start indexing from the start.The process will take a lot of time depending upon movie files present in the specified directory and the net speed.
    (Can run it multiple times on smaller directories before proceeding to next step too)
    2.The populate command will take time depending on net speed as it fetches movie Posters.This task need not be done in one go you can stop the program and when you run it again it will not process movies that have already been put in Database.

Let's Start

python manage.py runserver or python manage.py runserver 0.0.0.0:8000
go to 127.0.0.1:8000

By using runserver 0.0.0.0:8000 user can access it from any device connected to the same network

Demo:

Click on any Movie to know more Details or Play it or Watch Trailer.

Its your own personalized IMdb and Youtube for movies.

Users can watch/unwatch movies also and then filter their results based on it too.

Search:
User can search movies based on Title,Year and Genre.
Add -w after the search item and the search would give results filtering through all the unwatched movies.
Only -w without any search item will display all the unwatched movies.

Admin Access

Movies can be deleted or edited through the admin panel at 127.0.0.1:8000/admin But for that you will need to set up a superuser

python manage.py createsuperuser

And now you can delete or edit movies from the admin panel using the username and password you set.

API

This allows user to get get relevent movie information in form of JSON. All requests should be made to: 127.0.0.1:8000/movies/api
Movies data can be requested based on Name or Year or both.
127.0.0.1:8000/movies/api/name=nm&y=yr
Both these parameters are optional

Response:

media-hub's People

Contributors

jeeveshn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

media-hub's Issues

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.