Coder Social home page Coder Social logo

arnaudlevaufre / cinema Goto Github PK

View Code? Open in Web Editor NEW
28.0 28.0 12.0 612 KB

Cinema is a web application which provide a fancy movie library. Wether you run it on your local network or on a public server it gives you access to your movie database from any device by direct download or streaming.

License: MIT License

Python 45.07% CSS 10.01% JavaScript 30.07% HTML 14.85%

cinema's People

Contributors

arnaudlevaufre avatar eijebong avatar stephanepechard 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  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cinema's Issues

Movie URLs are guessable

Movie URLs are guessable, allowing circumvention of access control to some degree.
I'd suggest making files available via a random URL and sending a Content-Disposition header with the original filename.

Login

LOGIN_REQUIRED

Setting this to True will ensure only logged user can access the different pages.

How do I create a account? or is there default admin username and pass?

Adding Movies Error

So I got the site up and running on local machine but no films added.

When i try to add a movie directory and update as said in ready i get following issues.

MacBook-Pro:Cinema-master Vinnie$ ./manage.py add /Users/Vinnie/Public
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 350, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 195, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 39, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named management.commands.add

MacBook-Pro:Cinema-master Vinnie$ ./manage.py update
Traceback (most recent call last):
File "./manage.py", line 10, in
execute_from_command_line(sys.argv)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 350, in execute_from_command_line
utility.execute()
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 342, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 195, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/Library/Python/2.7/site-packages/django/core/management/init.py", line 39, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/init.py", line 37, in import_module
import(name)
ImportError: No module named management.commands.update

"ValueError: Set of coroutines/Futures is empty" on update

On a directory update with only one file (marked as SAMPLE), I get a ValueError and the script crashes. I don't know asyncio to look further down into the problem.
I try to play a bit with your code, so you should know that the file used is not a genuine one. It's in fact a 0kb file made with touch to test Cinema. I don't know if you try to open the file, so maybe it is the reason of the crash, but still, it should not crash :-)
Tell me if you need more information. Here is the stack trace:

(venv) ➜  Cinema git:(master) ✗ ./manage.py update
Creating a client session outside of coroutine
client_session: <aiohttp.client.ClientSession object at 0x103281940>
[            SAMPLE             ] /tmp/cine/North.by.Northwest.1959.720p.BluRay.x264-CtrlHD.mkv
Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/tmp/Cinema/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 367, in execute_from_command_line
    utility.execute()
  File "/tmp/Cinema/venv/lib/python3.6/site-packages/django/core/management/__init__.py", line 359, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/tmp/Cinema/venv/lib/python3.6/site-packages/django/core/management/base.py", line 294, in run_from_argv
    self.execute(*args, **cmd_options)
  File "/tmp/Cinema/venv/lib/python3.6/site-packages/django/core/management/base.py", line 345, in execute
    output = self.handle(*args, **options)
  File "/tmp/Cinema/application/management/commands/update.py", line 142, in handle
    loop.run_until_complete(asyncio.wait(tasks))
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/base_events.py", line 467, in run_until_complete
    return future.result()
  File "/usr/local/Cellar/python3/3.6.4_2/Frameworks/Python.framework/Versions/3.6/lib/python3.6/asyncio/tasks.py", line 304, in wait
    raise ValueError('Set of coroutines/Futures is empty.')
ValueError: Set of coroutines/Futures is empty.
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x103281940>

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.