Code Monkey home page Code Monkey logo

chocolate's People

Contributors

atomsforpeace avatar clach04 avatar impre-visible 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  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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

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

chocolate's Issues

Virtual environment

Hey, I was looking at the install.sh file and see that it doesn't use a virtualenv. I think it would be better to do so in case the requirements conflict with requirements elsewhere. I can open a pull request for this if so desired. I suppose it could be located under /etc/chocolate/ or maybe you have a better suggestion?

Naming of project

It would be incredible if different versions were named after different types of chocolate. Like for a Mac Variant can be White chocolate. Linux? Milk chocolate. Windows Could be Cookies and cream. Server version with all the fixings? Chocolate with nuts. Installer? Call that sucker the wrapper! The food based names are vast and the opportunities to exploit these are even more so.

readme.md wakatime link

[![wakatime](https://wakatime.com/badge/user/4cf4132a-4ced-411d-b714-67bdbdc84527/project/ecce3f45-dba9-4e4b-8f78-693c6d237d1c.svg)](https://wakatime.com/badge/user/4cf4132a-4ced-411d-b714-67bdbdc84527/project/ecce3f45-dba9-4e4b-8f78-693c6d237d1c)

link for wakatime in readme.md doesnt work
redirects to a page

Not Found
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

Chocolate fail read media path

INFO:werkzeug:10.0.2.100 - - [25/Mar/2024 17:48:08] "GET /favicon.ico HTTP/1.1" 200 -
ERROR:chocolate_app:Exception on /rescan_all [POST]
Traceback (most recent call last):
  File "/home/docker/.local/lib/python3.11/site-packages/flask/app.py", line 2525, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docker/.local/lib/python3.11/site-packages/flask/app.py", line 1822, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docker/.local/lib/python3.11/site-packages/flask_cors/extension.py", line 165, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^
  File "/home/docker/.local/lib/python3.11/site-packages/flask/app.py", line 1820, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docker/.local/lib/python3.11/site-packages/flask/app.py", line 1796, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/docker/.local/lib/python3.11/site-packages/chocolate_app/routes/libraries.py", line 261, in rescan_all
    type_to_call[library["lib_type"]](library["lib_name"])
  File "/home/docker/.local/lib/python3.11/site-packages/chocolate_app/scans.py", line 1793, in getOthersVideos
    getOthersVideos(library, directoryPath)
  File "/home/docker/.local/lib/python3.11/site-packages/chocolate_app/scans.py", line 1799, in getOthersVideos
    print_loading(allVideos, index, title)
  File "/home/docker/.local/lib/python3.11/site-packages/chocolate_app/scans.py", line 268, in print_loading
    terminal_size = os.get_terminal_size().columns - 1
                    ^^^^^^^^^^^^^^^^^^^^^^
OSError: [Errno 25] Inappropriate ioctl for device
INFO:werkzeug:10.0.2.100 - - [25/Mar/2024 17:48:42] "POST /rescan_all HTTP/1.1" 500 -

2024-03-25-175139_766x420_scrot

Maybe just some clunkyness of react apps passing to chocolate.

Linux Bookworm
Personal docker build

Break up app.py

As mentioned in #7 (comment)

I was also looking at maybe breaking it up. Maybe use this issue to reference it in the future.

Docker?

When docker will get fixed?

Scanning not working

Hello, i just installed Choclate in a docker Container.
Everything works, but the Library Scan seems not to work.
By pressing the Button "Rescan all libraries" i receive these logs:

/mnt/video/test\Annihilation.mkv: No such file or directory
[2023-04-16 17:23:47,341] ERROR in app: Exception on /rescanAll [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 2525, in wsgi_app
response = self.full_dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1822, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/local/lib/python3.10/site-packages/flask_cors/extension.py", line 165, in wrapped_function
return cors_after_request(app.make_response(f(*args, **kwargs)))
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1820, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.10/site-packages/flask/app.py", line 1796, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/local/lib/python3.10/site-packages/flask_login/utils.py", line 290, in decorated_view
return current_app.ensure_sync(func)(*args, **kwargs)
File "/chocolate/app.py", line 2840, in rescanAll
getMovies(lib["libName"])
File "/chocolate/app.py", line 693, in getMovies
length = length_video(video_path)
File "/chocolate/app.py", line 1438, in length_video
return float(seconds.stdout)
ValueError: could not convert string to float: ''

is there an bug with the Path? it seems to have an "" instead of an "/".

Thanks

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.